diff --git a/mod/common/weapons/chainsaw.qc b/mod/common/weapons/chainsaw.qc index 1e282dc8b..23e838966 100644 --- a/mod/common/weapons/chainsaw.qc +++ b/mod/common/weapons/chainsaw.qc @@ -161,7 +161,7 @@ void W_Chainsaw_Attack1(Weapon thiswep, entity actor, .entity weaponentity, int actor.origin + actor.view_ofs, v_forward * WEP_CVAR(chainsaw, melee_force)); - if(accuracy_isgooddamage(actor, target_victim)) { accuracy_add(actor, WEP_CHAINSAW.m_id, 0, melee_damage); } + if(accuracy_isgooddamage(actor, target_victim)) { accuracy_add(actor, WEP_CHAINSAW, 0, melee_damage); } } } @@ -240,7 +240,7 @@ void W_Chainsaw_Melee_Think(entity this) this.realowner.origin + this.realowner.view_ofs, v_forward * WEP_CVAR(chainsaw, swing_force)); - if(accuracy_isgooddamage(this.realowner, target_victim)) { accuracy_add(this.realowner, WEP_CHAINSAW.m_id, 0, swing_damage); } + if(accuracy_isgooddamage(this.realowner, target_victim)) { accuracy_add(this.realowner, WEP_CHAINSAW, 0, swing_damage); } // draw large red flash for debugging //te_customflash(targpos, 200, 2, '15 0 0'); diff --git a/mod/common/weapons/flak.qc b/mod/common/weapons/flak.qc index fe08be671..69929f911 100644 --- a/mod/common/weapons/flak.qc +++ b/mod/common/weapons/flak.qc @@ -188,7 +188,7 @@ void W_Flak_Projectile_Touch(entity this, entity toucher) Damage(toucher, this, this.realowner, damage, this.projectiledeathtype, this.weaponentity_fld, this.origin, force); if(accuracy_isgooddamage(this.realowner, toucher)) - { accuracy_add(this.realowner, WEP_FLAK.m_id, 0, damage); } + { accuracy_add(this.realowner, WEP_FLAK, 0, damage); } } //Send_Effect(EFFECT_FLAK_BOUNCE, this.origin, this.velocity, 1); diff --git a/mod/common/weapons/lightsabre.qc b/mod/common/weapons/lightsabre.qc index 5fc1fea73..cf2c688b0 100644 --- a/mod/common/weapons/lightsabre.qc +++ b/mod/common/weapons/lightsabre.qc @@ -270,7 +270,7 @@ void W_Lightsabre_Melee_Think(entity this) WarpZone_traceline_antilag(this, this.realowner.origin + this.realowner.view_ofs, targpos, false, this.realowner, ANTILAG_LATENCY(this.realowner)); if(W_Lightsabre_Melee_Block(this, NULL)) - accuracy_add(this.realowner, WEP_LIGHTSABRE.m_id, 0, (WEP_CVAR_BOTH(lightsabre, isprimary, melee_nonplayerdamage) * min(1, swing_factor + 1))); + accuracy_add(this.realowner, WEP_LIGHTSABRE, 0, (WEP_CVAR_BOTH(lightsabre, isprimary, melee_nonplayerdamage) * min(1, swing_factor + 1))); // draw lightning beams for debugging //te_lightning2(NULL, targpos, this.realowner.origin + this.realowner.view_ofs + v_forward * 5 - v_up * 5); @@ -301,7 +301,7 @@ void W_Lightsabre_Melee_Think(entity this) spamsound(this.realowner, CH_WEAPON_A, SND_LIGHTSABRE_HIT_RANDOM(), VOL_BASE, ATTN_NORM); - if(accuracy_isgooddamage(this.realowner, target_victim)) { accuracy_add(this.realowner, WEP_LIGHTSABRE.m_id, 0, swing_damage); } + if(accuracy_isgooddamage(this.realowner, target_victim)) { accuracy_add(this.realowner, WEP_LIGHTSABRE, 0, swing_damage); } } // draw large red flash for debugging