Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- THINK_FREQUENCY <- 0.5;
- m_flLastThink <- 0;
- m_bIsAlive <- true;
- function HostageThink()
- {
- if ( m_flLastThink + THINK_FREQUENCY > Time() )
- return;
- m_flLastThink = Time();
- if ( m_bIsAlive )
- {
- local nHealth = self.GetHealth();
- //printl( "Hostage health is = " + nHealth );
- if ( nHealth <= 0 )
- {
- m_bIsAlive = false;
- ScriptPrintMessageChatAll( "VIP HAS BEEN KILLED!!!" );
- EntFire( "@hostage_counter","add", "1", 0 );
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment