From 4476e2bf143323dced694f1f555874035a844fb1 Mon Sep 17 00:00:00 2001 From: Wanne Date: Sun, 18 May 2014 15:27:09 +0000 Subject: [PATCH] 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_v1.13_data@2038 4f8fa57e-7814-0410-bad4-adc449f26b7c --- gamedir/Data-1.13/TableData/Vehicles.xml | 320 ++++++++++++++++++++- gamedir/Data/Anims/structdata/ELDRDO.JSD | Bin 0 -> 3600 bytes gamedir/Data/Anims/structdata/ICECREAM.JSD | Bin 0 -> 3472 bytes gamedir/Data/Anims/structdata/JEEP.JSD | Bin 0 -> 2960 bytes 4 files changed, 319 insertions(+), 1 deletion(-) create mode 100644 gamedir/Data/Anims/structdata/ELDRDO.JSD create mode 100644 gamedir/Data/Anims/structdata/ICECREAM.JSD create mode 100644 gamedir/Data/Anims/structdata/JEEP.JSD diff --git a/gamedir/Data-1.13/TableData/Vehicles.xml b/gamedir/Data-1.13/TableData/Vehicles.xml index 4f16b9bc3..7273d7ce1 100644 --- a/gamedir/Data-1.13/TableData/Vehicles.xml +++ b/gamedir/Data-1.13/TableData/Vehicles.xml @@ -17,6 +17,19 @@ VehicleEnabled: Set to 1 if the vehicle should be available in the game. Otherw Pilot: Set to -1 for all vehicles and only to the skyrider (pilot) profile id for the helicopter VehicleArmourType: uiIndex from TableData\Items.xml + +SEAT: +SeatIndex: Index of the seat in the vehicle, corresponds to position on team panel when vehicle squad is selected. + Range: 0-9 +SeatName: Displayed in seat select menu and on team panel in skill tool tip. + Max.: 40 characters +Driver: Passenger on this seat is a driver. +Rotation: Initial rotation of passenger taking this seat, relative to rotation of the vehicle (clockwise). + Range: 0-7 +OffsetX: Offset of seat position inside vehicle (relative to middle grid) in X axis (assuming vehicle is turned north, higher = towards right of screen). +OffsetY: Offset of seat position inside vehicle (relative to middle grid) in X axis (assuming vehicle is turned north, higher = towards top of the screen). +Compartment Seats in different compartments cannot be swapped in combat. + --> @@ -33,6 +46,15 @@ VehicleArmourType: uiIndex from TableData\Items.xml 1 0 -1 + + 0 + None + 0 + 0 + 0 + 0 + 0 + 1 @@ -2434,6 +2456,77 @@ VehicleArmourType: uiIndex from TableData\Items.xml 1 1 -1 + + 0 + Driver + 1 + 0 + -1 + 1 + + + 1 + Riding Shotgun + 1 + 1 + 1 + + + 2 + Left Back Seat + 7 + -1 + 0 + + + 3 + Right Back Seat + 1 + 1 + 0 + + + 4 + Interior #1 + 0 + 1 + 1 + + + 5 + Interior #2 + 0 + 1 + 1 + + + 6 + Interior #3 + 0 + 1 + 1 + + + 7 + Interior #4 + 0 + 1 + 1 + + + 8 + Interior #3 + 0 + 1 + 1 + + + 9 + Interior #4 + 0 + 1 + 1 + @@ -2450,6 +2543,87 @@ VehicleArmourType: uiIndex from TableData\Items.xml 1 1 -1 + + 0 + Driver + 1 + 0 + -1 + 1 + + + 1 + Riding Shotgun + 1 + 1 + 1 + + + 2 + Left Back Seat + 7 + -1 + 0 + + + 3 + Right Back Seat + 1 + 1 + 0 + + + 4 + Middle Back Seat + 0 + 1 + 1 + + + 5 + Trunk + 0 + 1 + 1 + 1 + 1 + + + 6 + Trunk #2 + 0 + 1 + 1 + 1 + 1 + + + 7 + Trunk #3 + 0 + 1 + 1 + 1 + 1 + + + 8 + Trunk #4 + 0 + 1 + 1 + 1 + 1 + + + 9 + Trunk #5 + 0 + 1 + 1 + 1 + 1 + @@ -2466,6 +2640,79 @@ VehicleArmourType: uiIndex from TableData\Items.xml 1 1 -1 + + 0 + Driver + 1 + 0 + -1 + 1 + 1 + + + 1 + Riding Shotgun + 1 + 1 + 1 + 1 + + + 2 + Serving Hatch #1 + 6 + -1 + 0 + + + 3 + Serving Hatch #2 + 6 + -1 + 0 + + + 4 + Cargo #1 + 1 + 1 + 1 + + + 5 + Cargo #2 + 1 + 1 + 1 + + + 6 + Cargo #3 + 1 + 1 + 1 + + + 7 + Cargo #4 + 1 + 1 + 1 + + + 8 + Cargo #5 + 1 + 1 + 1 + + + 9 + Cargo #6 + 1 + 1 + 1 + @@ -3018,13 +3265,84 @@ VehicleArmourType: uiIndex from TableData\Items.xml Jeep 1 INTERFACE\Jeep.sti - 6 + 4 85 82 164 1 1 -1 + + 0 + Driver + 1 + 0 + -1 + 1 + + + 1 + Riding Shotgun + 1 + 1 + 1 + + + 2 + Left Back Seat + 7 + -1 + 0 + + + 3 + Right Back Seat + 1 + 1 + 0 + + + 4 + Interior #1 + 0 + 1 + 1 + + + 5 + Interior #2 + 0 + 1 + 1 + + + 6 + Interior #3 + 0 + 1 + 1 + + + 7 + Interior #4 + 0 + 1 + 1 + + + 8 + Interior #3 + 0 + 1 + 1 + + + 9 + Interior #4 + 0 + 1 + 1 + 200 diff --git a/gamedir/Data/Anims/structdata/ELDRDO.JSD b/gamedir/Data/Anims/structdata/ELDRDO.JSD new file mode 100644 index 0000000000000000000000000000000000000000..c650ad5e856387b160811667dbb5db41990bec1e GIT binary patch literal 3600 zcmb7HOS053473x5yaffUI0!2az=|zb;2@klrayA*C>d&=tD;dXt1YW7JM-)N@1Jkw zt(4D8Vf)tpeERxV>JLeX$Fo)*u-0W=@w3(n9Z%sCjfPSm90m*{QQI~`ZW>x)k4BBJ z6#`E!^k3>qY~jz?gr>bt@k!-08w}f4xTd{1DoTM;xWQUVgFTuiRs;_PrS+B8!@~-w z##*2oe-{jeR_|#vl~UUF4vz?^Dh!UU@^1u6`H30P4L-h*4|u)EM>CNdvR0B%zRJR7 zmOJ5mF4+rVL}R`iS7|E6;>ga!^b9^HlT`1QWG7XpXpMVEns5NwLi5lng(s}k5;qG#MaT2%SLobR*XGIUT zy8f2LS5Lkd?0mD<)X$ZUrXkBtOV~Mzy%JnruRmn!MLzb}zycTYidHPp*|(3T8L@aI z?VkJ2-F&sex>HuOpexUlCr$Zm;xl{F!+Zw7?EvRSWA8-p<$P*ESs*?ig6DJN*1vHs%z3p{~#5vX@2^~p{?yTi~T zBK*Yt2h*h~UtGzPHtp{`!uVYJ|L(ucXD32C48HO=K)#zf)bUNJeYA= zwR660*PIf*|95Vx@MD^K{-96wha=|2`a7K`%&ZE+f)n-aL!IWSvFm#OalmlL_xc1l zY|^+CoB4Wa%BMdUZZSF^WKgVSp;U>9Y>|unt1sX@fUK(i=Km}7nwt53h7Srz5BMG* a6kH;c7ESx%Hme>WJ4zPYMIyOlKm7yE{C$%E literal 0 HcmV?d00001 diff --git a/gamedir/Data/Anims/structdata/ICECREAM.JSD b/gamedir/Data/Anims/structdata/ICECREAM.JSD new file mode 100644 index 0000000000000000000000000000000000000000..ad7a2ccc2544e1b4bfc32e0ad84b2d3aaef7616c GIT binary patch literal 3472 zcma)8OR^gw41{_4JXb0;S>+&al>=mzZLW}mypx-#y9Edhc0!e9fsl||Ld>tX-#=f= zYkB{A6pZif&zEoSWPgwvIUkMk(WLb_Pi?|ZaQ5@@g8zEE8NGoTxsiY|wnAJVnLi8k z56a<$O@eKkQC@?8Wa%*Wo&_=88+I;ZxPsNzr4id@Z3Fki^$ zgQ0rJ`J_1!xbErLnNU42D){Ro>&pQ2h2rGoAM=$(+$8_9JlpU2G!?=S3HF+NC*qok z>s203==aNz82RpjUjCPS!-(zxC^_cyu6*eX-Vw<`mCuXazQFn{DPMrU+aLMrPyog` zgeR+d;@!c4Lo8L~3nopETeE(+UsFVm`UftM&R2|y0&g>p-yocFU%y|5#K1e9GN+7Z z=@&o>fH(o3y*ywZk}xj$fGnshA07{bN(8Btcsdn0)dTL|2}~}e;|&#omN=Hm6Mgpc zCXbUUr_lF)i+LWZ2lZ>nvJXo>=LR4-$3d-NdWy&$>_5TuBJcO>L&$f?(8|i+17&0O z23ZVRz$jjvM-pq8@zf{%5SH9u9gs|83b^eLl`>03e#(AX@0Q#!4RZ+jSnAbGxGh+q zerqzep^X3G`{wq;`zG7&E8MQ*{j$pW&->-?SI2WAYmRdqI}z6?u3Ne5+MmB)6ST<@ z56h<+ySyD(>-D>l%f9X>dBTZ}VR*j6%3y=O-mi!HF&{%+jQrd7%V57ZC_7=6l{oY- zG_Z|`YmlR#?&MH?8Q+JWLcSTwj?mwpZ|LI=Il+`;dB3=VT?kn6_T+w{U*+!+s3HQ2 zj1X=&NwYKk!jp>vn5R--r?X%7_Y0t`QF=bs#V}*PxAzN64(j>^+wrEm+~khad&isK zho1x9)7Qk&pQRu4fV>q0lU^R+vp(ev8k}cg+TdE-zh8_|-wVkqrx2g2huptupJM-h zW5e4Leot)mX@vUK@V42OK)>dw=^u&m`49U&pY&L66BiKV^GHSFspKBY^*-*@P5&=t CHLpGZ literal 0 HcmV?d00001 diff --git a/gamedir/Data/Anims/structdata/JEEP.JSD b/gamedir/Data/Anims/structdata/JEEP.JSD new file mode 100644 index 0000000000000000000000000000000000000000..4294bc7761b9b90612618562f47a0d85b56c4320 GIT binary patch literal 2960 zcmb7GOP16y474)@<^c;<9E24IV8wQ>z(MBZF;ykWR^09o^j<5D{w~Q*|Nimz>$SX= z_b*!^eQ$q0e|y*Rr#RUDjLJ@vD!!A$(9F%JRH|!t4?QjME9C{h>bA7<2#`>_7uIw% zt`SBIyn@6iDWx?EL_7EnhDb_kS(@@I%QF6*Vdq0M1nA?7>ACfxm@v!?ttXM1R>&9|zs(YHeYu6}I;@4!v91tVUF!kSm~DZ@%x;e&WRp#JuC0=Re&y z?2Hc|uVTe5R&PW!sjF1^)&0rybM<{-hW3y1Q7-O(`fn_dEm1D8L216R`@8eaqMbal z!ZW@o@`ZF5NsWG3J)w8Ec;xQ`EHl~sXUTb;<})cGFrKVYaJpCypeUN_&u=4kQ zOe($l`I}Uy`eMF6{zpH!*M43eI(@KcQNZ4@krek01)S`dZ~uFNQ$Pz!jpBSjC{4oC zPLG|SFgO2%=hFY?{ZC&c5d&voyZ&Dtc^)aYNheS9{pmKI{(p>-Kma8(Nc1_8P6}cd zBYL>KmHw%pke^8P KX^Pe%;QJT+uV#b* literal 0 HcmV?d00001