mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
- New Animation: Prone bandaging (by Sandro & PasHancock)
o Also available in a multiplayer game git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5264 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+15
-1
@@ -3681,10 +3681,24 @@ void recieveSTATE(RPCParameters *rpcParameters)
|
||||
if(new_state->usNewState==START_AID)
|
||||
{
|
||||
pSoldier->EVENT_InternalSetSoldierPosition( new_state->sXPos, new_state->sYPos ,FALSE, FALSE, FALSE );
|
||||
pSoldier->ChangeSoldierStance( ANIM_CROUCH );
|
||||
pSoldier->EVENT_SetSoldierDirection( new_state->usNewDirection );
|
||||
// SANDRO - we can now bandage mercs when prone, so change stance only if standing
|
||||
if ( gAnimControl[ pSoldier->usAnimState ].ubEndHeight == ANIM_STAND )
|
||||
{
|
||||
pSoldier->ChangeSoldierStance( ANIM_CROUCH );
|
||||
}
|
||||
|
||||
}
|
||||
// SANDRO - if ordered to bandage in prone position...
|
||||
else if (new_state->usNewState==START_AID_PRN)
|
||||
{
|
||||
pSoldier->EVENT_InternalSetSoldierPosition( new_state->sXPos, new_state->sYPos ,FALSE, FALSE, FALSE );
|
||||
pSoldier->EVENT_SetSoldierDirection( new_state->usNewDirection );
|
||||
if ( gAnimControl[ pSoldier->usAnimState ].ubEndHeight != ANIM_PRONE )
|
||||
{
|
||||
pSoldier->ChangeSoldierStance( ANIM_PRONE );
|
||||
}
|
||||
}
|
||||
// Start cutting fence
|
||||
else if (new_state->usNewState==CUTTING_FENCE)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user