Driveable vehicle Update: Externalized vehicle seats (by anv)

- externalised vehicle seats (TableData\Vehicles.xml) influence position of passenger, field of view, ability to shoot and being hidden,
- seat can chosen by using ctrl+RMB on vehicle (ctrl + LMB just takes the first visible seat)
- seats can be changed or swapped while inside vehicle,
- remade JSD files for cars,
- vehicles aren't transparent anymore,
- vehicles are louder than people, depending how fast they move.
see: http://www.bears-pit.com/board/ubbthreads.php/topics/332790/5.html


git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7212 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2014-05-18 15:26:15 +00:00
parent cf1b9982ba
commit bbff053fc5
35 changed files with 1209 additions and 144 deletions
+10 -3
View File
@@ -1512,7 +1512,7 @@ BOOLEAN ExecuteOverhead( )
}
else if ( pSoldier->aiData.ubPendingAction == MERC_ENTER_VEHICLE )
{
pSoldier->EVENT_SoldierEnterVehicle( pSoldier->aiData.sPendingActionData2, pSoldier->aiData.bPendingActionData3 );
pSoldier->EVENT_SoldierEnterVehicle( pSoldier->aiData.sPendingActionData2, pSoldier->aiData.bPendingActionData3, pSoldier->aiData.uiPendingActionData4 );
pSoldier->aiData.ubPendingAction = NO_PENDING_ACTION;
continue;
}
@@ -3104,8 +3104,15 @@ void InternalSelectSoldier( UINT16 usSoldierID, BOOLEAN fAcknowledge, BOOLEAN fF
if( ( pSoldier->flags.uiStatusFlags & SOLDIER_VEHICLE ) )
{
pSoldier = GetDriver( pSoldier->iVehicleId );
usSoldierID = pSoldier->ubID;
pSoldier = GetDriver( pSoldier->bVehicleID );
if( pSoldier == NULL )
{
return;
}
else
{
usSoldierID = pSoldier->ubID;
}
}
// If we are dead, ignore