Browse Source

Merge branch 'master' into mobile_hacks

mobile_hacks
Andrey Akhmichin 3 years ago
parent
commit
fa04ba3676
  1. 3
      cl_dll/in_camera.cpp
  2. 3
      dlls/monsters.cpp
  3. 2
      dlls/scripted.cpp

3
cl_dll/in_camera.cpp

@ -153,6 +153,9 @@ void DLLEXPORT CAM_Think( void )
#endif #endif
vec3_t viewangles; vec3_t viewangles;
if( gEngfuncs.GetMaxClients() > 1 && CL_IsThirdPerson() )
CAM_ToFirstPerson();
switch( (int)cam_command->value ) switch( (int)cam_command->value )
{ {
case CAM_COMMAND_TOTHIRDPERSON: case CAM_COMMAND_TOTHIRDPERSON:

3
dlls/monsters.cpp

@ -571,7 +571,8 @@ void CBaseMonster::MonsterThink( void )
//========================================================= //=========================================================
void CBaseMonster::MonsterUse( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value ) void CBaseMonster::MonsterUse( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value )
{ {
m_IdealMonsterState = MONSTERSTATE_ALERT; if (m_MonsterState == MONSTERSTATE_IDLE)
m_IdealMonsterState = MONSTERSTATE_ALERT;
} }
//========================================================= //=========================================================

2
dlls/scripted.cpp

@ -695,7 +695,7 @@ void ScriptEntityCancel( edict_t *pentCine )
if( pTarget ) if( pTarget )
{ {
// make sure their monster is actually playing a script // make sure their monster is actually playing a script
if( pTarget->m_MonsterState == MONSTERSTATE_SCRIPT ) if( pTarget->m_MonsterState == MONSTERSTATE_SCRIPT || pTarget->m_IdealMonsterState == MONSTERSTATE_SCRIPT )
{ {
// tell them do die // tell them do die
pTarget->m_scriptState = CCineMonster::SCRIPT_CLEANUP; pTarget->m_scriptState = CCineMonster::SCRIPT_CLEANUP;

Loading…
Cancel
Save