mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-26 23:05:30 +03:00
Fixed npc_sniper not acquiring player as target after SP respawn
This commit is contained in:
parent
8cf06b2865
commit
6945ef2468
@ -940,6 +940,14 @@ void CProtoSniper::OnScheduleChange( void )
|
|||||||
{
|
{
|
||||||
LaserOff();
|
LaserOff();
|
||||||
|
|
||||||
|
#ifdef MAPBASE
|
||||||
|
if ( m_bKilledPlayer && HasCondition( COND_SEE_PLAYER ) )
|
||||||
|
{
|
||||||
|
// IMPOSSIBLE! (possible when SP respawn is enabled)
|
||||||
|
m_bKilledPlayer = false;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
BaseClass::OnScheduleChange();
|
BaseClass::OnScheduleChange();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3439,6 +3447,18 @@ AI_BEGIN_CUSTOM_NPC( proto_sniper, CProtoSniper )
|
|||||||
|
|
||||||
//=========================================================
|
//=========================================================
|
||||||
//=========================================================
|
//=========================================================
|
||||||
|
#ifdef MAPBASE
|
||||||
|
DEFINE_SCHEDULE
|
||||||
|
(
|
||||||
|
SCHED_PSNIPER_PLAYER_DEAD,
|
||||||
|
|
||||||
|
" Tasks"
|
||||||
|
" TASK_SNIPER_PLAYER_DEAD 0"
|
||||||
|
" "
|
||||||
|
" Interrupts"
|
||||||
|
" COND_SEE_PLAYER"
|
||||||
|
)
|
||||||
|
#else
|
||||||
DEFINE_SCHEDULE
|
DEFINE_SCHEDULE
|
||||||
(
|
(
|
||||||
SCHED_PSNIPER_PLAYER_DEAD,
|
SCHED_PSNIPER_PLAYER_DEAD,
|
||||||
@ -3448,6 +3468,7 @@ AI_BEGIN_CUSTOM_NPC( proto_sniper, CProtoSniper )
|
|||||||
" "
|
" "
|
||||||
" Interrupts"
|
" Interrupts"
|
||||||
)
|
)
|
||||||
|
#endif
|
||||||
|
|
||||||
AI_END_CUSTOM_NPC()
|
AI_END_CUSTOM_NPC()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user