mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
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:
@@ -16750,7 +16750,12 @@ SOLDIERTYPE *GetSelectedAssignSoldier( BOOLEAN fNullOK )
|
||||
{
|
||||
// better be an active person, not a vehicle
|
||||
Assert( pSoldier->bActive );
|
||||
Assert( !( pSoldier->flags.uiStatusFlags & SOLDIER_VEHICLE ) );
|
||||
// anv: don't assert, handle...
|
||||
//Assert( !( pSoldier->flags.uiStatusFlags & SOLDIER_VEHICLE ) );
|
||||
if( pSoldier->flags.uiStatusFlags & SOLDIER_VEHICLE )
|
||||
{
|
||||
pSoldier = GetDriver( pSoldier->iVehicleId );
|
||||
}
|
||||
}
|
||||
|
||||
return( pSoldier );
|
||||
|
||||
Reference in New Issue
Block a user