Merge pull request #38 from BjossiAlfreds/grenquad

Quad sound for quadded hand grenades
This commit is contained in:
Yamagi 2019-10-03 10:10:40 +02:00 committed by GitHub
commit 104166f8e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -744,6 +744,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);