|
|
@ -501,7 +501,12 @@ DEFINE_ACTION(ContextSquadTemplateVariant,GRPTMPL)
|
|
|
|
if (!groupDesc)
|
|
|
|
if (!groupDesc)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
aii->registerSquadVariant( CWorkPtr::squadVariantName(), groupDesc );
|
|
|
|
FOREACH(itAIInstance, CCont<CAIInstance>, CAIS::instance().AIList())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
CAIInstance* aiinstance = *itAIInstance;
|
|
|
|
|
|
|
|
aiinstance->registerSquadVariant( CWorkPtr::squadVariantName(), groupDesc );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CWorkPtr::groupDesc( groupDesc );
|
|
|
|
CWorkPtr::groupDesc( groupDesc );
|
|
|
|
|
|
|
|
|
|
|
|
groupDesc->setBaseBotCount(botCount);
|
|
|
|
groupDesc->setBaseBotCount(botCount);
|
|
|
|