X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fcl_player.qc;h=520fe77dcde83c50eeb36fbe28a561361670b0ba;hb=a78aef04c4dcb416d041564e656da105eff84558;hp=1227a3e9da8329e3982224836710f5d0f4c3b85c;hpb=00530e36d4c33eea2deffc8d528cb8904d3dc2b1;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/cl_player.qc b/qcsrc/server/cl_player.qc index 1227a3e9d..520fe77dc 100644 --- a/qcsrc/server/cl_player.qc +++ b/qcsrc/server/cl_player.qc @@ -1,6 +1,3 @@ -.entity accuracy; -.float accuracy_frags[WEP_MAXCOUNT]; - float weaponstats_buffer; void WeaponStats_Init() @@ -567,7 +564,7 @@ void PlayerDamage (entity inflictor, entity attacker, float damage, float deatht frag_deathtype = deathtype; MUTATOR_CALLHOOK(PlayerDies); - weapon_action(self.weapon, WR_PLAYERDEATH); + WEP_ACTION(self.weapon, WR_PLAYERDEATH); RemoveGrapplingHook(self); @@ -667,7 +664,7 @@ void PlayerDamage (entity inflictor, entity attacker, float damage, float deatht // reset fields the weapons may use just in case for (j = WEP_FIRST; j <= WEP_LAST; ++j) { - weapon_action(j, WR_RESETPLAYER); + WEP_ACTION(j, WR_RESETPLAYER); ATTACK_FINISHED_FOR(self, j) = 0; } }