Fixed the obnoxious grenade-bounce sound issue.
This commit is contained in:
parent
edc0f6ac8d
commit
52d08ba727
4 changed files with 15 additions and 0 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
BIN
freecs/progs.dat
BIN
freecs/progs.dat
Binary file not shown.
Loading…
Reference in a new issue