mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-06 12:04:17 +00:00
Use hack for trigger_hurt again.
This commit is contained in:
parent
50595469ec
commit
15abd8f0f1
@ -779,6 +779,20 @@ void CTargetCDAudio::Play( void )
|
||||
|
||||
void CTriggerHurt::Spawn( void )
|
||||
{
|
||||
//
|
||||
// The Gate:
|
||||
//
|
||||
// Remove to prevent a crash.
|
||||
//
|
||||
if( FStrEq( STRING( gpGlobals->mapname ), "tombtest2" ) )
|
||||
{
|
||||
if( !FStringNull( pev->targetname ) && FStrEq( STRING( pev->targetname ), "secondspikes" ) )
|
||||
{
|
||||
UTIL_Remove( this );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
InitTrigger();
|
||||
SetTouch( &CBaseTrigger::HurtTouch );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user