Fixed the obnoxious grenade-bounce sound issue.

This commit is contained in:
Marco Cawthorne 2017-10-27 00:22:57 -05:00
parent edc0f6ac8d
commit 52d08ba727
4 changed files with 15 additions and 0 deletions

View File

@ -119,6 +119,12 @@ void WeaponFLASHBANG_Throw( void ) {
remove( self );
}
static void Weapon_FLASHBANG_Touch( void ) {
if ( other.solid == SOLID_TRIGGER ) {
return;
}
if ( other == self.owner ) {
return;
}
if ( other.classname == "func_breakable" ) {
Damage_Apply( other, self, 10, self.origin );
}

View File

@ -101,6 +101,9 @@ void WeaponHEGRENADE_Throw( void ) {
remove( self );
}
static void Weapon_HEGRENADE_Touch( void ) {
if ( other.solid == SOLID_TRIGGER ) {
return;
}
if ( other == self.owner ) {
return;
}

View File

@ -107,6 +107,12 @@ void WeaponSMOKEGRENADE_Throw( void ) {
self.nextthink = time + 5.0f;
}
static void Weapon_SMOKEGRENADE_Touch( void ) {
if ( other.solid == SOLID_TRIGGER ) {
return;
}
if ( other == self.owner ) {
return;
}
if ( other.classname == "func_breakable" ) {
Damage_Apply( other, self, 10, self.origin );
}

Binary file not shown.