Counter-Strike: Hostage interaction rewards. 150 dollars! Grab one now for
big big boni!
This commit is contained in:
parent
5c74aa99ab
commit
da7f06b835
1 changed files with 9 additions and 0 deletions
|
@ -78,6 +78,8 @@ enum
|
|||
|
||||
class hostage_entity:CBaseNPC
|
||||
{
|
||||
int m_iUsedOnce;
|
||||
|
||||
void(void) hostage_entity;
|
||||
|
||||
virtual void(void) Respawn;
|
||||
|
@ -117,6 +119,12 @@ hostage_entity::PlayerUse(void)
|
|||
if (m_eFollowing == world)
|
||||
Sound_Speak(this, "hostage_entity.follow");
|
||||
|
||||
/* CT reward, first time only */
|
||||
if (m_iUsedOnce == FALSE) {
|
||||
Money_AddMoney((player)eActivator, 150);
|
||||
m_iUsedOnce = TRUE;
|
||||
}
|
||||
|
||||
CBaseNPC::PlayerUse();
|
||||
}
|
||||
|
||||
|
@ -157,6 +165,7 @@ hostage_entity::Respawn(void)
|
|||
{
|
||||
CBaseNPC::Respawn();
|
||||
m_iFlags |= MONSTER_CANFOLLOW;
|
||||
m_iUsedOnce = FALSE;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue