mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-03-22 18:40:20 +03:00
Add func_tank behavior criteria
This commit is contained in:
parent
a2a4aa3082
commit
3ce8a35567
@ -190,6 +190,24 @@ int CAI_FuncTankBehavior::SelectSchedule()
|
||||
return SCHED_IDLE_STAND;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose:
|
||||
//-----------------------------------------------------------------------------
|
||||
void CAI_FuncTankBehavior::ModifyOrAppendCriteria( AI_CriteriaSet &set )
|
||||
{
|
||||
BaseClass::ModifyOrAppendCriteria( set );
|
||||
|
||||
#ifdef MAPBASE
|
||||
set.AppendCriteria( "ft_mounted", m_bMounted ? "1" : "0" );
|
||||
|
||||
if (m_hFuncTank)
|
||||
{
|
||||
set.AppendCriteria( "ft_classname", m_hFuncTank->GetClassname() );
|
||||
m_hFuncTank->AppendContextToCriteria( set, "ft_" );
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose:
|
||||
// Input : activity -
|
||||
|
@ -55,6 +55,8 @@ public:
|
||||
bool CanManTank( CFuncTank *pTank, bool bForced );
|
||||
#endif
|
||||
|
||||
void ModifyOrAppendCriteria( AI_CriteriaSet &set );
|
||||
|
||||
Activity NPC_TranslateActivity( Activity activity );
|
||||
|
||||
// Conditions:
|
||||
|
Loading…
x
Reference in New Issue
Block a user