From 1630ab5576fb2f1371ce29284e27ac52bee09f57 Mon Sep 17 00:00:00 2001 From: NachosChipeados <103285866+NachosChipeados@users.noreply.github.com> Date: Mon, 14 Oct 2024 10:45:57 -0400 Subject: [PATCH] Remove prints in sh_melee_human.gnut --- .../vscripts/melee/sh_melee_human.gnut | 48 ------------------- 1 file changed, 48 deletions(-) diff --git a/Northstar.Client/mod/scripts/vscripts/melee/sh_melee_human.gnut b/Northstar.Client/mod/scripts/vscripts/melee/sh_melee_human.gnut index 877f55ffd..b73eb25c7 100644 --- a/Northstar.Client/mod/scripts/vscripts/melee/sh_melee_human.gnut +++ b/Northstar.Client/mod/scripts/vscripts/melee/sh_melee_human.gnut @@ -55,11 +55,6 @@ function HumanUnsyncedMelee( entity player, bool movestunBlocked ) { if ( !movestunBlocked ) { -#if SERVER - print( "SERVER: " + player + " is calling Lunge_SetTargetEntity() from HumanUnsyncedMelee()\n" ) -#else - print( "CLIENT: " + player + " is calling Lunge_SetTargetEntity() from HumanUnsyncedMelee()\n" ) -#endif if ( player.Lunge_SetTargetEntity( lungeTarget, true ) ) { if ( lungeTarget.IsTitan() ) @@ -95,11 +90,6 @@ function HumanUnsyncedMelee( entity player, bool movestunBlocked ) function DoReactionForTitanHit( entity player, entity titan ) { -#if SERVER - print( "SERVER: " + player + " is calling Lunge_SetTargetEntity() from DoReactionForTitanHit()\n" ) -#else - print( "CLIENT: " + player + " is calling Lunge_SetTargetEntity() from DoReactionForTitanHit()\n" ) -#endif player.Lunge_SetTargetEntity( titan, true ) if ( player.Lunge_IsLungingToEntity() ) player.Lunge_EnableFlying() @@ -125,29 +115,11 @@ function HumanMeleeAttack( entity player ) if ( player.Lunge_IsGroundExecute() ) attackRange = 150 -#if SERVER - print( "SERVER: " + player + " is calling PlayerMelee_AttackTrace() from HumanMeleeAttack()\n" ) -#else - print( "CLIENT: " + player + " is calling PlayerMelee_AttackTrace() from HumanMeleeAttack()\n" ) -#endif table traceResult = PlayerMelee_AttackTrace( player, attackRange, CodeCallback_IsValidMeleeAttackTarget ) entity hitEnt = expect entity( traceResult.ent ) if ( !IsValid( hitEnt ) ) - { -#if SERVER - print( "SERVER: " + player + " call to PlayerMelee_AttackTrace() did NOT hit\n" ) -#else - print( "CLIENT: " + player + " call to PlayerMelee_AttackTrace() did NOT hit\n" ) -#endif return - } - -#if SERVER - print( "SERVER: " + player + " call to PlayerMelee_AttackTrace() hit " + hitEnt + "\n" ) -#else - print( "CLIENT: " + player + " call to PlayerMelee_AttackTrace() hit " + hitEnt + "\n" ) -#endif if ( PlayerMelee_IsServerSideEffects() ) { @@ -231,8 +203,6 @@ function HumanMeleeAttack_DoImpact( entity player, entity meleeWeapon, traceResu vector oldVelocity = target.GetVelocity() vector damageForce = AnglesToForward( angles ) * meleeWeapon.GetWeaponDamageForce() - print( "SERVER: HumanMeleeAttack_DoImpact() applying damage to " + target + "\n" ) - if ( target.IsNPC() && target.CanBeGroundExecuted() ) target.TakeDamage( target.GetHealth(), player, player, { scriptType = DF_RAGDOLL | meleeWeapon.GetWeaponDamageFlags(), damageType = DMG_MELEE_ATTACK, damageSourceId = damageSource, origin = traceResult.position, force = Vector( 0, 0, 0 ) } ) else @@ -511,28 +481,10 @@ bool function AttemptHumanMeleeExecution( entity player, entity syncedTarget, en void function PlayerTriesSyncedMelee_FallbackToHumanMeleeAttack( entity player, entity target, entity meleeWeapon, table traceResult ) { -#if SERVER - print( "SERVER: PlayerTriesSyncedMelee_FallbackToHumanMeleeAttack() for " + player + "\n" ) -#else - print( "CLIENT: PlayerTriesSyncedMelee_FallbackToHumanMeleeAttack() for " + player + "\n" ) -#endif if ( !PlayerTriesSyncedMelee( player, target ) ) { -#if SERVER - print( "SERVER: PlayerTriesSyncedMelee() for " + player + " failed\n" ) -#else - print( "CLIENT: PlayerTriesSyncedMelee() for " + player + " failed\n" ) -#endif #if SERVER HumanMeleeAttack_DoImpact( player, meleeWeapon, traceResult ) -#endif - } - else - { -#if SERVER - print( "SERVER: PlayerTriesSyncedMelee() for " + player + " succeeded\n" ) -#else - print( "CLIENT: PlayerTriesSyncedMelee() for " + player + " succeeded\n" ) #endif } }