mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
New Feature: Allow driving vehicles in tactical (by anv)
- To control vehicle, click on it or on the steering wheel in team panel under driver's portrait.
- Vehicles have two gears - slow drive and fast drive, switchable just like walking and running ('S', 'R', double-click).
- Vehicles working: Ice Cream Van, Hummer, Jeep, El Dorado and, potentially, tanks.
- Passengers can be selected and ordered to open fire from the inside
- You can also open inventory screen for passengers, pass or throw items, etc.
Normally vehicle is treated as any other merc and has its own APs. It has obvious disadvantages - it's possible to drive in the middle of the enemy group using vehicle's 100AP,
and then use all your mercs inside vehicle with their still full APs to kill everything that moves at point blank range - with even the driver participating!
- To prevent that you can set Tactical Gameplay Settings > AP_SHARED_AMONG_PASSENGERS_AND_VEHICLE_MODE with following calculation methods
more infos: http://www.bears-pit.com/board/ubbthreads.php/topics/332208/1.html
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7193 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+13
-13
@@ -4849,19 +4849,19 @@ INT32 PlotPath( SOLDIERTYPE *pSold, INT32 sDestGridNo, INT8 bCopyRoute, INT8 bPl
|
||||
}
|
||||
|
||||
// Are we a vehicle?
|
||||
if ( pSold->flags.uiStatusFlags & SOLDIER_VEHICLE )
|
||||
{
|
||||
// did we exceed WALK cost?
|
||||
if ( sPointsSwat > sAPBudget)
|
||||
{
|
||||
sFootOrderIndex = 4;
|
||||
}
|
||||
else
|
||||
{
|
||||
sFootOrderIndex = 3;
|
||||
}
|
||||
}
|
||||
else
|
||||
//if ( pSold->flags.uiStatusFlags & SOLDIER_VEHICLE )
|
||||
//{
|
||||
// // did we exceed WALK cost?
|
||||
// if ( sPointsSwat > sAPBudget)
|
||||
// {
|
||||
// sFootOrderIndex = 4;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// sFootOrderIndex = 3;
|
||||
// }
|
||||
//}
|
||||
//else
|
||||
{
|
||||
// did we exceed CRAWL cost?
|
||||
if (sFootOrderIndex == 0 && sPointsCrawl > sAPBudget)
|
||||
|
||||
Reference in New Issue
Block a user