diff --git a/dlls/h_battery.cpp b/dlls/h_battery.cpp index b3e9ff09..52bb9d4f 100644 --- a/dlls/h_battery.cpp +++ b/dlls/h_battery.cpp @@ -101,7 +101,8 @@ void CRecharge::Spawn() SET_MODEL( ENT( pev ), STRING( pev->model ) ); m_iJuice = (int)gSkillData.suitchargerCapacity; #ifdef MOBILE_HACKS - m_bTriggerable = !FStringNull( pev->target ); + if( g_iModType == MOD_TOT ) + m_bTriggerable = !FStringNull( pev->target ); #endif // MOBILE_HACKS pev->frame = 0; } @@ -128,7 +129,7 @@ void CRecharge::Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE use { pev->frame = 1; #ifdef MOBILE_HACKS - if( m_bTriggerable ) + if( g_iModType == MOD_TOT && m_bTriggerable ) { FireTargets( STRING( pev->target ), pActivator, this, USE_TOGGLE, 0 ); m_bTriggerable = FALSE; @@ -189,7 +190,8 @@ void CRecharge::Recharge( void ) { m_iJuice = (int)gSkillData.suitchargerCapacity; #ifdef MOBILE_HACKS - m_bTriggerable = !FStringNull( pev->target ); + if( g_iModType == MOD_TOT ) + m_bTriggerable = !FStringNull( pev->target ); #endif // MOBILE_HACKS pev->frame = 0; SetThink( &CBaseEntity::SUB_DoNothing ); diff --git a/dlls/healthkit.cpp b/dlls/healthkit.cpp index b9eca1e1..65556b65 100644 --- a/dlls/healthkit.cpp +++ b/dlls/healthkit.cpp @@ -168,7 +168,8 @@ void CWallHealth::Spawn() SET_MODEL( ENT( pev ), STRING( pev->model ) ); m_iJuice = (int)gSkillData.healthchargerCapacity; #ifdef MOBILE_HACKS - m_bTriggerable = !FStringNull( pev->target ); + if( g_iModType == MOD_TOT ) + m_bTriggerable = !FStringNull( pev->target ); #endif // MOBILE_HACKS pev->frame = 0; } @@ -193,7 +194,7 @@ void CWallHealth::Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE u if( m_iJuice <= 0 ) { #ifdef MOBILE_HACKS - if( m_bTriggerable ) + if( g_iModType == MOD_TOT && m_bTriggerable ) { FireTargets( STRING( pev->target ), pActivator, this, USE_TOGGLE, 0 ); m_bTriggerable = FALSE; @@ -249,7 +250,8 @@ void CWallHealth::Recharge( void ) EMIT_SOUND( ENT( pev ), CHAN_ITEM, "items/medshot4.wav", 1.0, ATTN_NORM ); m_iJuice = (int)gSkillData.healthchargerCapacity; #ifdef MOBILE_HACKS - m_bTriggerable = !FStringNull( pev->target ); + if( g_iModType == MOD_TOT ) + m_bTriggerable = !FStringNull( pev->target ); #endif // MOBILE_HACKS pev->frame = 0; SetThink( &CBaseEntity::SUB_DoNothing ); diff --git a/dlls/items.cpp b/dlls/items.cpp index 7b5cf2e5..36a64960 100644 --- a/dlls/items.cpp +++ b/dlls/items.cpp @@ -72,7 +72,8 @@ void CWorldItem::Spawn( void ) break; #ifdef MOBILE_HACKS case 46: // ITEM_FLASHLIGHT: - pEntity = CBaseEntity::Create( "item_flashlight", pev->origin, pev->angles ); + if( g_iModType == MOD_TOT ) + pEntity = CBaseEntity::Create( "item_flashlight", pev->origin, pev->angles ); break; #endif // MOBILE_HACKS } diff --git a/dlls/scientist.cpp b/dlls/scientist.cpp index 79057edd..63ed7ae1 100644 --- a/dlls/scientist.cpp +++ b/dlls/scientist.cpp @@ -406,9 +406,11 @@ void CScientist::StartTask( Task_t *pTask ) //if( FOkToSpeak() ) Talk( 2 ); m_hTalkTarget = m_hTargetEnt; - if( FClassnameIs( pev, "monster_rosenberg" ) ) +#ifdef MOBILE_HACKS + if( g_iModType == MOD_BSHIFT && FClassnameIs( pev, "monster_rosenberg" ) ) PlaySentence( "RO_HEAL", 2, VOL_NORM, ATTN_IDLE ); else +#endif // MOBILE_HACKS PlaySentence( "SC_HEAL", 2, VOL_NORM, ATTN_IDLE ); TaskComplete(); break; @@ -428,7 +430,7 @@ void CScientist::StartTask( Task_t *pTask ) m_hTalkTarget = m_hEnemy; #ifdef MOBILE_HACKS - if( FClassnameIs( pev, "monster_rosenberg" ) ) + if( g_iModType == MOD_BSHIFT && FClassnameIs( pev, "monster_rosenberg" ) ) { PlaySentence( "RO_FEAR", 5, VOL_NORM, ATTN_NORM ); } @@ -620,7 +622,7 @@ void CScientist::Spawn( void ) m_bloodColor = BLOOD_COLOR_RED; #ifdef MOBILE_HACKS - if( FClassnameIs( pev, "monster_rosenberg" ) ) + if( g_iModType == MOD_BSHIFT && FClassnameIs( pev, "monster_rosenberg" ) ) pev->health = gSkillData.scientistHealth * 2; else #endif // MOBILE_HACKS @@ -657,7 +659,7 @@ void CScientist::Precache( void ) { PRECACHE_MODEL( "models/scientist.mdl" ); #ifdef MOBILE_HACKS - if( !FClassnameIs( pev, "monster_rosenberg" ) ) + if( g_iModType != MOD_BSHIFT || !FClassnameIs( pev, "monster_rosenberg" ) ) #endif // MOBILE_HACKS { PRECACHE_SOUND( "scientist/sci_pain1.wav" ); @@ -695,7 +697,7 @@ void CScientist::TalkInit() // scientists speach group names (group names are in sentences.txt) #ifdef MOBILE_HACKS - if( FClassnameIs( pev, "monster_rosenberg" ) ) + if( g_iModType == MOD_BSHIFT && FClassnameIs( pev, "monster_rosenberg" ) ) { m_szGrp[TLK_ANSWER] = "RO_ANSWER"; m_szGrp[TLK_QUESTION] = "RO_QUESTION"; @@ -769,7 +771,7 @@ int CScientist::TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, flo if( pevInflictor && pevInflictor->flags & FL_CLIENT ) { #ifdef MOBILE_HACKS - if( !FClassnameIs( pev, "monster_rosenberg" ) ) + if( g_iModType != MOD_BSHIFT && !FClassnameIs( pev, "monster_rosenberg" ) ) #endif // MOBILE_HACKS { Remember( bits_MEMORY_PROVOKED ); @@ -806,7 +808,7 @@ void CScientist::PainSound( void ) m_painTime = gpGlobals->time + RANDOM_FLOAT( 0.5f, 0.75f ); #ifdef MOBILE_HACKS - if( FClassnameIs( pev, "monster_rosenberg" ) ) + if( g_iModType == MOD_BSHIFT && FClassnameIs( pev, "monster_rosenberg" ) ) switch( RANDOM_LONG( 0, 8 ) ) { case 0: @@ -1019,7 +1021,7 @@ Schedule_t *CScientist::GetSchedule( void ) return GetScheduleOfType( SCHED_TARGET_FACE ); // Just face and follow. } #ifdef MOBILE_HACKS - else if( !FClassnameIs( pev, "monster_rosenberg" ) ) // UNDONE: When afraid, scientist won't move out of your way. Keep This? If not, write move away scared + else if( g_iModType != MOD_BSHIFT || !FClassnameIs( pev, "monster_rosenberg" ) ) // UNDONE: When afraid, scientist won't move out of your way. Keep This? If not, write move away scared #else // MOBILE_HACKS else #endif // MOBILE_HACKS diff --git a/dlls/weapons.cpp b/dlls/weapons.cpp index a0137921..73353f9b 100644 --- a/dlls/weapons.cpp +++ b/dlls/weapons.cpp @@ -297,13 +297,19 @@ void W_Precache( void ) UTIL_PrecacheOther( "item_suit" ); UTIL_PrecacheOther( "item_healthkit" ); #ifdef MOBILE_HACKS - UTIL_PrecacheOther( "item_armorvest" ); - UTIL_PrecacheOther( "item_helmet" ); + if( g_iModType == MOD_BSHIFT ) + { + UTIL_PrecacheOther( "item_armorvest" ); + UTIL_PrecacheOther( "item_helmet" ); + } #endif // MOBILE_HACKS UTIL_PrecacheOther( "item_battery" ); UTIL_PrecacheOther( "item_antidote" ); UTIL_PrecacheOther( "item_security" ); - UTIL_PrecacheOther( "item_flashlight" ); +#ifdef MOBILE_HACKS + if( g_iModType == MOD_INDUCTION ) + UTIL_PrecacheOther( "item_flashlight" ); +#endif // MOBILE_HACKS UTIL_PrecacheOther( "item_longjump" ); // shotgun