mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-26 23:05:30 +03:00
Added proper ACT_IDLE_ON_FIRE handling for Combine soldiers
This commit is contained in:
parent
0bd1f5fb59
commit
051a217670
@ -1557,6 +1557,13 @@ Activity CNPC_Combine::NPC_BackupActivity( Activity eNewActivity )
|
||||
else if (eNewActivity == ACT_RUN)
|
||||
return ACT_RUN_RIFLE;
|
||||
|
||||
// Some models might not contain ACT_COMBINE_BUGBAIT, which the soldier model uses instead of ACT_IDLE_ON_FIRE.
|
||||
// Contrariwise, soldiers may be called to use ACT_IDLE_ON_FIRE in other parts of the AI and need to translate to ACT_COMBINE_BUGBAIT.
|
||||
if (eNewActivity == ACT_COMBINE_BUGBAIT)
|
||||
return ACT_IDLE_ON_FIRE;
|
||||
else if (eNewActivity == ACT_IDLE_ON_FIRE)
|
||||
return ACT_COMBINE_BUGBAIT;
|
||||
|
||||
return BaseClass::NPC_BackupActivity( eNewActivity );
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user