Merge pull request #474 from BjossiAlfreds/grenquad

Quad sound for quadded hand grenades
This commit is contained in:
Yamagi 2019-10-03 10:11:55 +02:00 committed by GitHub
commit 5fff2f3a25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -663,6 +663,9 @@ weapon_grenade_fire(edict_t *ent, qboolean held)
if (is_quad)
{
damage *= 4;
gi.sound(ent, CHAN_ITEM, gi.soundindex(
"items/damage3.wav"), 1, ATTN_NORM, 0);
}
VectorSet(offset, 8, 8, ent->viewheight - 8);