mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
- Merged Source Code from MP branch Revision 2972
enable intro videos in VFS mode workaround for original intro hack allow to get real path of a file (only CVFSFile) streamline Allocator usage in VFile small non-VFS mode fixes in MPHostScreen.cpp Synced "Cutting Fences" in a multiplayer game git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2973 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+13
-10
@@ -3023,30 +3023,33 @@ void send_changestate (EV_S_CHANGESTATE * SChangeState)
|
||||
|
||||
void recieveSTATE(RPCParameters *rpcParameters)
|
||||
{
|
||||
|
||||
EV_S_CHANGESTATE* new_state = (EV_S_CHANGESTATE*)rpcParameters->input;
|
||||
|
||||
|
||||
//ScreenMsg( FONT_YELLOW, MSG_MPSYSTEM, L"recieved state");
|
||||
|
||||
|
||||
SOLDIERTYPE * pSoldier=MercPtrs[ new_state->usSoldierID ];
|
||||
|
||||
if(pSoldier->bActive)
|
||||
{
|
||||
if(new_state->usNewState==93)
|
||||
// Start first AID
|
||||
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 );
|
||||
|
||||
}
|
||||
//if(new_state->usNewState==95)ScreenMsg( FONT_YELLOW, MSG_MPSYSTEM, L"All Bandaged.");
|
||||
// Start cutting fence
|
||||
else if (new_state->usNewState==CUTTING_FENCE)
|
||||
{
|
||||
// The usTargetGridNo holds the GridNo of the fence tile
|
||||
pSoldier->sTargetGridNo = new_state->usTargetGridNo;
|
||||
|
||||
pSoldier->EVENT_InternalSetSoldierPosition( new_state->sXPos, new_state->sYPos ,FALSE, FALSE, FALSE );
|
||||
pSoldier->ChangeSoldierStance( ANIM_CROUCH );
|
||||
pSoldier->EVENT_SetSoldierDirection( new_state->usNewDirection );
|
||||
}
|
||||
|
||||
pSoldier->EVENT_InitNewSoldierAnim( new_state->usNewState, new_state->usStartingAniCode, new_state->fForce );
|
||||
}
|
||||
//AddGameEvent( S_CHANGESTATE, 0, &SChangeState );
|
||||
//someday ;)
|
||||
}
|
||||
}
|
||||
|
||||
void send_death( SOLDIERTYPE *pSoldier )
|
||||
|
||||
Reference in New Issue
Block a user