mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Improved code to check if militia options are available.
Start radio animation when giving orders to militia. FindClosestClimbPointAvailableToAI: don't check roaming range when searching climb spot for AI. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8939 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -25991,3 +25991,25 @@ UINT16 SOLDIERTYPE::RetreatCounterValue(void)
|
||||
{
|
||||
return usSkillCounter[SOLDIER_COUNTER_RETREAT];
|
||||
}
|
||||
|
||||
void SOLDIERTYPE::StartRadioAnimation(void)
|
||||
{
|
||||
if (this->ubBodyType != REGMALE && this->ubBodyType != BIGMALE ||
|
||||
Water(this->sGridNo, this->pathing.bLevel) ||
|
||||
this->bVisible != TRUE)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
switch (gAnimControl[this->usAnimState].ubEndHeight)
|
||||
{
|
||||
case ANIM_STAND:
|
||||
this->EVENT_InitNewSoldierAnim(AI_RADIO, 0, FALSE);
|
||||
break;
|
||||
case ANIM_CROUCH:
|
||||
this->EVENT_InitNewSoldierAnim(AI_CR_RADIO, 0, FALSE);
|
||||
break;
|
||||
case ANIM_PRONE:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user