implement sh_chainspark

This commit is contained in:
Xylemon 2023-04-26 16:03:54 -07:00
parent 7638eb4b12
commit b39524854f
1 changed files with 3 additions and 0 deletions

View File

@ -111,7 +111,10 @@ void w_chainsaw_primary(player pl)
Damage_Apply(trace_ent, self, dmg, WEAPON_CHAINSAW, DMG_BLUNT);
Sound_Play(pl, CHAN_WEAPON, "weapon_chainsaw.hitflesh");
} else {
/* well, this is in the advanced options */
if (cvar("sh_chainspark") != 1)
FX_Spark(trace_endpos, trace_plane_normal);
Sound_Play(pl, CHAN_WEAPON, "weapon_chainsaw.hit");
}
pl.w_attack_next = 0.1f;