mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-11 15:38:12 +00:00
Merge branch 'master' into mobile_hacks
This commit is contained in:
commit
fa04ba3676
@ -153,6 +153,9 @@ void DLLEXPORT CAM_Think( void )
|
||||
#endif
|
||||
vec3_t viewangles;
|
||||
|
||||
if( gEngfuncs.GetMaxClients() > 1 && CL_IsThirdPerson() )
|
||||
CAM_ToFirstPerson();
|
||||
|
||||
switch( (int)cam_command->value )
|
||||
{
|
||||
case CAM_COMMAND_TOTHIRDPERSON:
|
||||
|
@ -571,7 +571,8 @@ void CBaseMonster::MonsterThink( void )
|
||||
//=========================================================
|
||||
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;
|
||||
}
|
||||
|
||||
//=========================================================
|
||||
|
@ -695,7 +695,7 @@ void ScriptEntityCancel( edict_t *pentCine )
|
||||
if( pTarget )
|
||||
{
|
||||
// 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
|
||||
pTarget->m_scriptState = CCineMonster::SCRIPT_CLEANUP;
|
||||
|
Loading…
Reference in New Issue
Block a user