Advertisement
Guest User

Untitled

a guest
Nov 17th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.60 KB | None | 0 0
  1. #include "basicdefines_A3.hpp"
  2.  
  3. class DefaultEventhandlers;
  4. class CfgVehicleClasses
  5. {
  6. class Police_Vehicles
  7. {
  8. displayName = "Police_Vehicles";
  9. };
  10. };
  11. class CfgPatches
  12. {
  13. class Police
  14. {
  15. units[] = {"Aus_CROWN"};
  16. weapons[] = {};
  17. requiredVersion = 0.1;
  18. requiredAddons[] = {"A3_Soft_F"};
  19. };
  20. };
  21. class CfgSounds
  22. {
  23. class Siren1
  24. {
  25. sound[] = {"\Aus_CROWN\sound\wail.wav",db+5,1};
  26. name = "siren1";
  27. titles[] = {};
  28. };
  29. class Siren2
  30. {
  31. sound[] = {"\Aus_CROWN\sound\siren2.wav",db+5,1};
  32. name = "siren2";
  33. titles[] = {};
  34. };
  35. class Siren3
  36. {
  37. sound[] = {"\Aus_CROWN\sound\pulse.wav",db+5,1};
  38. name = "siren3";
  39. titles[] = {};
  40. };
  41. };
  42. class cfgWeapons
  43. {
  44. class SportCarHorn;
  45. class Civhorn: SportCarHorn
  46. {
  47. displayname = "Civhorn";
  48. reloadTime = 4.0;
  49. drySound[] = {"\Aus_CROWN\Sound\hornciv.wav",1,1};
  50. scope = 2;
  51. };
  52. class Takedown: SportCarHorn
  53. {
  54. displayName = "Takedown";
  55. reloadtime = 4.0;
  56. drysound[] = {"\Aus_CROWN\sound\Takedown.wav",1,1};
  57. scope = 2;
  58. };
  59. class Laser: SportCarHorn
  60. {
  61. displayName = "Laser";
  62. reloadtime = 4.0;
  63. drysound[] = {"\Aus_CROWN\sound\laser.wav",1,1};
  64. scope = 2;
  65. };
  66. class Pulse: SportCarHorn
  67. {
  68. displayName = "Pulse";
  69. reloadtime = 4.0;
  70. drysound[] = {"\Aus_CROWN\sound\pulse.wav",1,1};
  71. scope = 2;
  72. };
  73. class Policehorn: SportCarHorn
  74. {
  75. displayName = "Policehorn";
  76. reloadtime = 4.0;
  77. drysound[] = {"\Aus_CROWN\sound\policehorn.wav",1,1};
  78. scope = 2;
  79. };
  80. class Airhorn: SportCarHorn
  81. {
  82. displayName = "Airhorn";
  83. reloadtime = 4.0;
  84. drysound[] = {"\Aus_CROWN\sound\Airhorn.wav",1,1};
  85. scope = 2;
  86. };
  87. };
  88. class CfgVehicles
  89. {
  90. class LandVehicle;
  91. class Car: LandVehicle
  92. {
  93. class HitPoints;
  94. class NewTurret;
  95. };
  96. class Car_F: Car
  97. {
  98. class Turrets
  99. {
  100. class MainTurret: NewTurret
  101. {
  102. class ViewOptics;
  103. };
  104. };
  105. class HitPoints
  106. {
  107. class HitLFWheel;
  108. class HitLF2Wheel;
  109. class HitRFWheel;
  110. class HitRF2Wheel;
  111. class HitBody;
  112. class HitGlass1{};
  113. class HitGlass2;
  114. };
  115. class EventHandlers;
  116. class AnimationSources;
  117. };
  118. class Offroad_01_base_F: Car_F{};
  119. class C_Offroad_01_F: Offroad_01_base_F{};
  120. class CRFT_Car_Base: C_Offroad_01_F{};
  121. class Aus_CROWNBase: CRFT_Car_Base
  122. {
  123. extCameraPosition[] = {0,0.8,-6};
  124. driverLeftHandAnimName = "drivewheel";
  125. driverRightHandAnimName = "drivewheel";
  126. mapSize = 3.56;
  127. model = "Aus_CROWN\Aus_PD.p3d";
  128. author = "Butt";
  129. displayName = "BASE";
  130. vehicleclass = "Police_Vehicles";
  131. class Library
  132. {
  133. libTextDesc = "";
  134. };
  135. weapons[] = {"AM_horn_takedown1"};
  136. // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
  137. hiddenSelections[] = {"jump","light0","light2","light3","light4","light5","light6","lb-right-takedown","lb-right-front-corner","lb-right-back-corner","lb-back-red-1","lb-back-red-2","lb-back-red-3","lb-back-blue-3","lb-back-blue-2","lb-back-blue-1","lb-left-back-corner","lb-back-yellow-1","lb-back-yellow-2","lb-back-yellow-3","lb-back-yellow-4","lb-back-yellow-5","lb-back-yellow-6","lb-left-alley","lb-right-alley","lb-ion-blue","lb-ion-red"};
  138. hiddenSelectionsTextures[] = {"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""};
  139. picture = "\Aus_CROWN\UI\iconPD_ca.paa"; /// just some icon in command bar
  140. Icon = "\Aus_CROWN\UI\iconPD_ca.paa"; /// icon in map
  141. terrainCoef = 6.5; /// different surface affects this car more, stick to tarmac
  142. turnCoef = 2.5; /// should match the wheel turn radius
  143. precision = 10; /// how much freedom has the AI for its internal waypoints - lower number means more precise but slower approach to way
  144. brakeDistance = 3.0; /// how many internal waypoints should the AI plan braking in advance
  145. acceleration = 15; /// how fast acceleration does the AI think the car has
  146.  
  147. fireResistance = 5; /// lesser protection against fire than tanks
  148. armor = 32; /// just some protection against missiles, collisions and explosions
  149. cost = 50000; /// how likely is the enemy going to target this vehicle
  150.  
  151. transportMaxBackpacks = 15; /// just some backpacks fit the trunk by default
  152. transportSoldier = 4; /// number of cargo except driver
  153.  
  154. /// some values from parent class to show how to set them up
  155. wheelDamageRadiusCoef = 0.9; /// for precision tweaking of damaged wheel size
  156. wheelDestroyRadiusCoef = 0.4; /// for tweaking of rims size to fit ground
  157. maxFordingDepth = 0.5; /// how high water would damage the engine of the car
  158. waterResistance = 1; /// if the depth of water is bigger than maxFordingDepth it starts to damage the engine after this time
  159. crewCrashProtection = 0.25; /// multiplier of damage to crew of the vehicle => low number means better protection
  160. class Exhausts
  161. {
  162. class Exhaust1
  163. {
  164. position = "exhaust1";
  165. direction = "exhaust1_dir";
  166. effect = "ExhaustEffectOffroad";
  167. };
  168. };
  169. ejectDeadCargo = 1;
  170. ejectDeadDriver = 1;
  171. class Turrets{};
  172. hideWeaponsDriver = 1;
  173. hideWeaponsCargo = 1;
  174. driverAction = "driver_offroad01";
  175. getInAction = "GetInOffroad";
  176. getOutAction = "GetOutLow";
  177. cargoAction[] = {"passenger_low01","passenger_injured_medevac_truck01","passenger_injured_medevac_truck02","passenger_injured_medevac_truck01","passenger_flatground_generic03","passenger_flatground_generic05","passenger_generic01_foldhands","passenger_apc_narrow_generic03","passenger_generic01_leanright","passenger_apc_generic03","passenger_generic01_foldhands","passenger_generic01_leanleft","passenger_apc_generic01","passenger_generic01_foldhands","passenger_apc_generic04","passenger_generic01_leanleft"};
  178. cargoGetInAction[] = {"GetInLow"};
  179. cargoGetOutAction[] = {"GetOutLow"};
  180.  
  181. #include "sounds.hpp"
  182. class RenderTargets
  183. {
  184. class LeftMirror
  185. {
  186. renderTarget = "rendertarget0";
  187. class CameraView1
  188. {
  189. pointPosition = "PIP0_pos";
  190. pointDirection = "PIP0_dir";
  191. renderQuality = 2;
  192. renderVisionMode = 0;
  193. fov = 0.7;
  194. };
  195. };
  196. class RearCam
  197. {
  198. renderTarget = "rendertarget1";
  199. class CameraView1
  200. {
  201. pointPosition = "PIP1_pos";
  202. pointDirection = "PIP1_dir";
  203. renderQuality = 2;
  204. renderVisionMode = 0;
  205. fov = 0.7;
  206. };
  207. };
  208. class FrontCam
  209. {
  210. renderTarget = "rendertarget2";
  211. class CameraView1
  212. {
  213. pointPosition = "PIP2_pos";
  214. pointDirection = "PIP2_dir";
  215. renderQuality = 2;
  216. renderVisionMode = 0;
  217. fov = 0.7;
  218. };
  219. };
  220. };
  221. #include "physx.hpp"
  222.  
  223. class Damage
  224. {
  225. tex[] = {};
  226. mat[] = {"A3\soft_F\Quadbike_01\Data\Quadbike_01_base.rvmat","A3\soft_F\Quadbike_01\Data\Quadbike_01_base_damage.rvmat","A3\soft_F\Quadbike_01\Data\Quadbike_01_base_destruct.rvmat"};
  227. };
  228. class Reflectors
  229. {
  230. class LightCarHeadL01
  231. {
  232. color[] = {1900,1800,1700};
  233. ambient[] = {5,5,5};
  234. position = "LightCarHeadL01";
  235. direction = "LightCarHeadL01_end";
  236. hitpoint = "Light_L";
  237. selection = "Light_L";
  238. size = 1;
  239. innerAngle = 100;
  240. outerAngle = 179;
  241. coneFadeCoef = 10;
  242. intensity = 1;
  243. useFlare = 1;
  244. dayLight = 0;
  245. flareSize = 1.0;
  246. class Attenuation
  247. {
  248. start = 1.0;
  249. constant = 0;
  250. linear = 0;
  251. quadratic = 0.25;
  252. hardLimitStart = 30;
  253. hardLimitEnd = 60;
  254. };
  255. };
  256. class LightCarHeadL02: LightCarHeadL01
  257. {
  258. position = "LightCarHeadL02";
  259. direction = "LightCarHeadL02_end";
  260. FlareSize = 0.5;
  261. };
  262. class LightCarHeadR01: LightCarHeadL01
  263. {
  264. position = "LightCarHeadR01";
  265. direction = "LightCarHeadR01_end";
  266. hitpoint = "Light_R";
  267. selection = "Light_R";
  268. };
  269. class LightCarHeadR02: LightCarHeadR01
  270. {
  271. position = "LightCarHeadR01";
  272. direction = "LightCarHeadR01_end";
  273. FlareSize = 0.5;
  274. };
  275. };
  276. aggregateReflectors[] = {{ "LightCarHeadL01","LightCarHeadL02" },{ "LightCarHeadR01","LightCarHeadR02"}};
  277. };
  278. class Aus_PD: Aus_CROWNBase
  279. {
  280. displayname = "Police Sheriff";
  281. model = "\Aus_CROWN\Aus_PD.p3d";
  282. picture = "\Aus_CROWN\UI\iconPD_ca.paa"; /// just some icon in command bar
  283. Icon = "\Aus_CROWN\UI\iconPD_ca.paa"; /// icon in map
  284. scope = 2;
  285. weapons[] = {"Takedown","Airhorn","Civhorn","Laser","Policehorn","Pulse"};
  286. typicalCargo[] = {"C_man_1"};
  287. cargoAction[] = {"passenger_low01","passenger_injured_medevac_truck01","passenger_injured_medevac_truck02","passenger_injured_medevac_truck01","passenger_flatground_generic03","passenger_flatground_generic05","passenger_generic01_foldhands","passenger_apc_narrow_generic03","passenger_generic01_leanright","passenger_apc_generic03","passenger_generic01_foldhands","passenger_generic01_leanleft","passenger_apc_generic01","passenger_generic01_foldhands","passenger_apc_generic04","passenger_generic01_leanleft"};
  288. // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 40 41 42 43 44 45
  289. hiddenSelections[] = {"jump","light0","light2","light3","light4","light5","light6","light7","light8","light9","light10","light11","light12","light13","light14","light15","light16","light17","light18","light19","light20","light21","light22","light23","light24","light25","light26","radar_patrol_c","radar_patrol_d","radar_patrol_u","radar_fast_c","radar_fast_d","radar_fast_u","radar_target_c","radar_target_d","radar_target_u","target1","target2","target3","lock1","lock2","lock3","patrol1","patrol2","patrol3","Camo1","Plate1","Plate2","Plate3","Plate4","Plate5","Plate6","Plate7"};
  290. hiddenSelectionsTextures[] = {"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\aus_crown\textures\yellow\0.paa","\aus_crown\textures\yellow\0.paa","\aus_crown\textures\yellow\0.paa","\aus_crown\textures\pic0.paa","\aus_crown\textures\pic0.paa","\aus_crown\textures\pic0.paa","\aus_crown\textures\green\0.paa","\aus_crown\textures\green\0.paa","\aus_crown\textures\green\0.paa"};
  291.  
  292. class eventhandlers
  293. {
  294. init = "_this execVM '\Aus_CROWN\data\Scripts\init.sqf';";
  295. };
  296.  
  297. class UserActions
  298. {
  299. class Reset
  300. {
  301. displayName = "<t color='#ff0000'>Reset Lock/Fast</t>";
  302. position = "drivewheel";
  303. radius = 10;
  304. condition = "player IN this";
  305. statement = "this setobjecttexture [31,'\aus_crown\textures\pic0.paa']; this setobjecttexture [32,'\aus_crown\textures\pic0.paa']; this setobjecttexture [33,'\aus_crown\textures\pic0.paa']; Prevspeed = 0;";
  306. onlyForplayer = 1;
  307. };
  308. class codeOne
  309. {
  310. displayName = "<t color='#760a0a'>LED OFF</t>";
  311. position = "lightbar_axis";
  312. radius = 10;
  313. condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0)";
  314. statement = "this animate ['ani_lightbar', 0], this animate ['ani_sirens', 0], this animate ['ani_directional', 0]";
  315. onlyForplayer = 1;
  316. };
  317. class LightMode1
  318. {
  319. displayName = "<t color='#aff0000'>LED Only</t>";
  320. position = "lightbar_axis";
  321. radius = 10;
  322. condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.1)";
  323. statement = "this animate ['ani_lightbar', 0.1], this animate ['ani_sirens', 0.0]";
  324. onlyForplayer = 1;
  325. };
  326. class LightMode2
  327. {
  328. displayName = "<t color='#ff5858'>LED Sirens</t>";
  329. position = "lightbar_axis";
  330. radius = 10;
  331. condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.2)";
  332. statement = "this animate ['ani_lightbar', 0.2], this animate ['ani_sirens', 0.5]";
  333. onlyForplayer = 1;
  334. };
  335. class LightMode3
  336. {
  337. displayName = "<t color='#147a00'>Pattern 2</t>";
  338. position = "lightbar_axis";
  339. radius = 10;
  340. condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.3)";
  341. statement = "this animate ['ani_lightbar', 0.3]";
  342. onlyForplayer = 1;
  343. };
  344. class LightMode4
  345. {
  346. displayName = "<t color='#147a00'>Pattern 3</t>";
  347. position = "lightbar_axis";
  348. radius = 10;
  349. condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.4)";
  350. statement = "this animate ['ani_lightbar', 0.4], this animate ['ani_lightbar', 0.8]";
  351. onlyForplayer = 1;
  352. };
  353. class Siren1
  354. {
  355. displayName = "<t color='#147a00'>Siren1</t>";
  356. position = "lightbar_axis";
  357. radius = 10;
  358. condition = "driver this == player && (this animationPhase 'ani_sirens' != 0.4)";
  359. statement = "this animate ['ani_sirens', 0.4]";
  360. onlyForplayer = 1;
  361. };
  362. class Siren2
  363. {
  364. displayName = "<t color='#147a00'>Siren2</t>";
  365. position = "lightbar_axis";
  366. radius = 10;
  367. condition = "driver this == player && (this animationPhase 'ani_sirens' != 0.6)";
  368. statement = "this animate ['ani_sirens', 0.6]";
  369. onlyForplayer = 1;
  370. };
  371. class sirentoggleon
  372. {
  373. displayName="Toggle Siren";
  374. position="pos_switches";
  375. radius=1;
  376. onlyForplayer= false;
  377. condition="this animationPhase ""ani_siren""==0.5";
  378. statement="this animate [""ani_siren"", 0.4], this exec ""\aus_crown\data\scripts\sirenr.sqf""";
  379. };
  380. class sirentoggleoff
  381. {
  382. displayName="Toggle Siren";
  383. position="pos_switches";
  384. radius=1;
  385. onlyForplayer= false;
  386. condition="this animationPhase ""ani_siren""==0.5";
  387. statement="this animate [""ani_siren"", 0],this exec ""\aus_crown\data\scripts\siren.sqf""";
  388. };
  389. class LaptopLeft
  390. {
  391. displayName = "Laptop Left";
  392. position = "Switch";
  393. radius = 6;
  394. condition = "(this animationPhase ""Ani_laptops"" > 0.2)&& (alive this)";
  395. statement = "this animate ['ani_laptops', 0]";
  396. onlyforplayer = 0;
  397. priority = 5;
  398. showWindow = 0;
  399. };
  400. class LaptopsRight
  401. {
  402. displayName = "Laptop Right";
  403. position = "Switch";
  404. radius = 6;
  405. condition = "((this animationPhase ""Ani_laptops"" < 0.3) || (this animationPhase ""Ani_laptops"" > 0.5)) && (alive this)";
  406. statement = "this animate ['ani_laptops', 0.4]";
  407. onlyforplayer = 0;
  408. priority = 5;
  409. showWindow = 0;
  410. };
  411. class SpotFlipDown
  412. {
  413. displayName = "Spot Down Off";
  414. position = "Switch";
  415. radius = 6;
  416. condition = "(this animationPhase ""Ani_spotaxle"" > 0.2)&& (alive this)";
  417. statement = "this animate ['ani_spotaxle', 0], this animate ['ani_spot', 0]";
  418. onlyforplayer = 0;
  419. priority = 5;
  420. showWindow = 0;
  421. };
  422. class SpotFlipUP
  423. {
  424. displayName = "SpotFlip_UP";
  425. position = "Switch";
  426. radius = 6;
  427. condition = "((this animationPhase ""Ani_spotaxle"" < 0.3) || (this animationPhase ""Ani_spotaxle"" > 0.5)) && (alive this)";
  428. statement = "this animate ['ani_spotaxle', 0.4], this animate ['ani_spot', 0.5]";
  429. onlyforplayer = 0;
  430. priority = 5;
  431. showWindow = 0;
  432. };
  433. class Spot_on
  434. {
  435. displayName = "<t color='#a40000'>Spotlight on</t>";
  436. position = "spot_axis";
  437. radius = 10;
  438. condition = "driver this == player && (this animationPhase 'ani_spot' != 0.5)";
  439. statement = "this animate ['ani_spot', 0.5]";
  440. onlyForplayer = 1;
  441. };
  442. class Spot_off
  443. {
  444. displayName = "<t color='#a40000'>Spotlight Off</t>";
  445. position = "spot_axis";
  446. radius = 10;
  447. condition = "driver this == player && (this animationPhase 'ani_spot' != 0.0)";
  448. statement = "this animate ['ani_spot', 0.0]";
  449. onlyForplayer = 1;
  450. };
  451. class Open
  452. {
  453. displayName = "Open";
  454. position = "drivewheel";
  455. radius = 6;
  456. condition = "(this animationPhase ""CloseCover1"" > 0.2)&& (alive this)";
  457. statement = "this animate[""CloseCover1"",0]";
  458. onlyforplayer = 0;
  459. priority = 5;
  460. showWindow = 0;
  461. };
  462. class Close
  463. {
  464. displayName = "Close";
  465. position = "lightbar_axis";
  466. radius = 6;
  467. condition = "((this animationPhase ""CloseCover1"" < 0.3) || (this animationPhase ""CloseCover1"" > 0.5)) && (alive this)";
  468. statement = "this animate[""CloseCover1"",0.4]";
  469. onlyforplayer = 0;
  470. priority = 5;
  471. showWindow = 0;
  472. };
  473. class WipersOff
  474. {
  475. displayName = "Wipers Off";
  476. position = "Switch";
  477. radius = 2.5;
  478. condition = "(player == (driver this)) && (alive this) && (this getVariable [""kyo_wipersOn"", false])";
  479. statement = "[this, false] execVM ""\aus_crown\data\scripts\animateWipers.sqf"";";
  480. onlyforplayer = 0;
  481. priority = 5;
  482. showWindow = 0;
  483. };
  484. class WipersOn
  485. {
  486. displayName = "Wipers On";
  487. position = "Switch";
  488. radius = 2.5;
  489. condition = "(player == (driver this)) && (alive this) && !(this getVariable [""kyo_wipersOn"", false])";
  490. statement = "[this, true] execVM ""\aus_crown\data\scripts\animateWipers.sqf"";";
  491. onlyforplayer = 0;
  492. priority = 5;
  493. showWindow = 0;
  494. };
  495. };
  496. class AnimationSources: AnimationSources
  497. {
  498. class Zeroanimation
  499. {
  500. source = "user";
  501. animPeriod = 0;
  502. initPhase = 0;
  503. };
  504. class LightAnim
  505. {
  506. source = "user";
  507. animPeriod = 1;
  508. initPhase = 1;
  509. };
  510. class ani_lightbar
  511. {
  512. source = "user";
  513. animPeriod = 1;
  514. initPhase = 0;
  515. };
  516. class Ani_laptops
  517. {
  518. source = "user";
  519. animPeriod = 0.5;
  520. initPhase = 0;
  521. };
  522. class Ani_spotaxle
  523. {
  524. source = "user";
  525. animPeriod = 0.5;
  526. initPhase = 0;
  527. };
  528. class Ani_wblade1
  529. {
  530. source = "user";
  531. animPeriod = 0.5;
  532. initPhase = 0;
  533. };
  534. class Ani_Sirens
  535. {
  536. source = "user";
  537. animPeriod = 0.2;
  538. initPhase = 0;
  539. };
  540. class Ani_wblade2
  541. {
  542. source = "user";
  543. animPeriod = 0.5;
  544. initPhase = 0;
  545. };
  546. class Ani_wblade3
  547. {
  548. source = "user";
  549. animPeriod = 0.5;
  550. initPhase = 0;
  551. };
  552. class CloseCover1
  553. {
  554. source = "user";
  555. initPhase = 0;
  556. animPeriod = 0.7;
  557. };
  558. class CloseCover2: CloseCover1
  559. {
  560. };
  561. class OneSecondAnim
  562. {
  563. source = "user";
  564. animPeriod = 1;
  565. initPhase=0;
  566. };
  567. class FiveSecondAnim
  568. {
  569. source = "user";
  570. animPeriod = 5;
  571. initPhase=0;
  572. };
  573. class Decal1
  574. {
  575. scope = 0;
  576. };
  577. class License1
  578. {
  579. scope = 0;
  580. };
  581. class License2
  582. {
  583. scope = 0;
  584. };
  585. class Ani_Ramp
  586. {
  587. source = "user";
  588. animPeriod = 2;
  589. initPhase = 0;
  590. };
  591. class ani_spot
  592. {
  593. source = "user";
  594. animPeriod = 0.5;
  595. initPhase = 0;
  596. };
  597. class slow_func2
  598. {
  599. source = "user";
  600. animPeriod = 0.5;
  601. initPhase = 0;
  602. };
  603. class slow_func
  604. {
  605. source = "user";
  606. animPeriod = 0.5;
  607. initPhase = 0;
  608. };
  609. class ani_directional
  610. {
  611. source = "user";
  612. animPeriod = 1;
  613. initPhase = 0;
  614. };
  615. };
  616. fuelCapacity = 125;
  617. maxSpeed = 150;
  618. enginePower = 250;
  619. maxOmega = 700;
  620. peakTorque = 669;
  621. };
  622. class Aus_PD2: Aus_CROWNBase
  623. {
  624. displayname = "Police Patrol Wheelen";
  625. model = "\Aus_CROWN\Aus_PD2.p3d";
  626. picture = "\Aus_CROWN\UI\iconPD_ca.paa"; /// just some icon in command bar
  627. Icon = "\Aus_CROWN\UI\iconPD_ca.paa"; /// icon in map
  628. scope = 2;
  629. weapons[] = {"AM_horn_airhorn","AM_horn_takedown1"};
  630. typicalCargo[] = {"C_man_1"};
  631. cargoAction[] = {"passenger_low01","passenger_injured_medevac_truck01","passenger_injured_medevac_truck02","passenger_injured_medevac_truck01","passenger_flatground_generic03","passenger_flatground_generic05","passenger_generic01_foldhands","passenger_apc_narrow_generic03","passenger_generic01_leanright","passenger_apc_generic03","passenger_generic01_foldhands","passenger_generic01_leanleft","passenger_apc_generic01","passenger_generic01_foldhands","passenger_apc_generic04","passenger_generic01_leanleft"};
  632. // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
  633. hiddenSelections[] = {"jump","light1","light2","light3","light4","light5","light6","y1","y2","y3","y4","ion1","ion2","ion3","ion4","strobe1","strobe2","inter1","inter2","strobe1","strobe2","lb-left-back-corner","lb-back-yellow-1","lb-back-yellow-2","lb-back-yellow-3","lb-back-yellow-4","lb-back-yellow-5","lb-back-yellow-6","lb-left-alley","lb-right-alley","lb-ion-blue","lb-ion-red","radar_patrol_c","radar_patrol_d","radar_patrol_u","radar_fast_c","radar_fast_d","radar_fast_u","radar_target_c","radar_target_d","radar_target_u","target1","target2","target3","lock1","lock2","lock3","patrol1","patrol2","patrol3","Camo1"};
  634. hiddenSelectionsTextures[] = {"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\aus_crown\textures\yellow\0.paa","\aus_crown\textures\yellow\0.paa","\aus_crown\textures\yellow\0.paa","a3l_client2\textures\pic0.paa","aus_crown\textures\pic0.paa","aus_crown\textures\pic0.paa","aus_crown\textures\green\0.paa","aus_crown\textures\green\0.paa","aus_crown\textures\green\0.paa","A3L_CVPI\data\skinPDSupervisor.paa"};
  635.  
  636. class eventhandlers
  637. {
  638. init = "_this execVM '\Aus_CROWN\data\Scripts\init.sqf';";
  639. };
  640.  
  641. class UserActions
  642. {
  643. class codeOne
  644. {
  645. displayName = "<t color='#ff0000'>LED OFF</t>";
  646. position = "lightbar_axis";
  647. radius = 10;
  648. condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0)";
  649. statement = "this animate ['ani_lightbar', 0], this animate ['ani_sirens', 0], this animate ['ani_wigs', 0]";
  650. onlyForplayer = 1;
  651. };
  652. class LightMode1
  653. {
  654. displayName = "<t color='#a40000'>LED/Sirens</t>";
  655. position = "lightbar_axis";
  656. radius = 10;
  657. condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.5)";
  658. statement = "this animate ['ani_lightbar', 0.5], this animate ['ani_wigs', 0.5], this animate ['ani_sirens', 0.5]";
  659. onlyForplayer = 1;
  660. };
  661. class LightMode2
  662. {
  663. displayName = "<t color='#a40000'>LEDS</t>";
  664. position = "lightbar_axis";
  665. radius = 10;
  666. condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.5)";
  667. statement = "this animate ['ani_lightbar', 0.5], this animate ['ani_wigs', 0.5], this animate ['ani_siren', 0.0]";
  668. onlyForplayer = 1;
  669. };
  670. class SPOTON
  671. {
  672. displayName = "Spot On";
  673. position = "lightbar_axis";
  674. radius = 5;
  675. onlyforplayer = 1;
  676. condition = "!(this getvariable [""SPOT"", false]) && driver this == player && alive(this)";
  677. statement = "this setvariable [""SPOT"", true]";
  678. };
  679. class SPOTOFF
  680. {
  681. displayName = "Spot Off";
  682. position = "lightbar_axis";
  683. radius = 5;
  684. onlyforplayer = 1;
  685. condition = "(this getvariable [""SPOT"", false]) && driver this == player && alive(this)";
  686. statement = "this setvariable [""SPOT"", false]";
  687. };
  688. class DIRECTLON
  689. {
  690. displayName = "Right On";
  691. position = "lightbar_axis";
  692. radius = 5;
  693. onlyforplayer = 1;
  694. condition = "!(this getvariable [""LEFT"", false]) && driver this == player && alive(this)";
  695. statement = "this setvariable [""LEFT"", true]";
  696. };
  697. class DIRECTLOFF
  698. {
  699. displayName = "Right Off";
  700. position = "lightbar_axis";
  701. radius = 5;
  702. onlyforplayer = 1;
  703. condition = "(this getvariable [""LEFT"", false]) && driver this == player && alive(this)";
  704. statement = "this setvariable [""LEFT"", false]";
  705. };
  706. class DIRECTRON
  707. {
  708. displayName = "Left On";
  709. position = "lightbar_axis";
  710. radius = 5;
  711. onlyforplayer = 1;
  712. condition = "!(this getvariable [""RIGHT"", false]) && driver this == player && alive(this)";
  713. statement = "this setvariable [""RIGHT"", true]";
  714. };
  715. class DIRECTROFF
  716. {
  717. displayName = "Left Off";
  718. position = "lightbar_axis";
  719. radius = 5;
  720. onlyforplayer = 1;
  721. condition = "(this getvariable [""RIGHT"", false]) && driver this == player && alive(this)";
  722. statement = "this setvariable [""RIGHT"", false]";
  723. };
  724. class HAZARDON
  725. {
  726. displayName = "Hazard On";
  727. position = "lightbar_axis";
  728. radius = 5;
  729. onlyforplayer = 1;
  730. condition = "!(this getvariable [""HAZARD"", false]) && driver this == player && alive(this)";
  731. statement = "this setvariable [""HAZARD"", true]";
  732. };
  733. class HAZARDOFF
  734. {
  735. displayName = "Hazard Off";
  736. position = "lightbar_axis";
  737. radius = 5;
  738. onlyforplayer = 1;
  739. condition = "(this getvariable [""HAZARD"", false]) && driver this == player && alive(this)";
  740. statement = "this setvariable [""HAZARD"", false]";
  741. };
  742. };
  743. class AnimationSources: AnimationSources
  744. {
  745. class Zeroanimation
  746. {
  747. source = "user";
  748. animPeriod = 0;
  749. initPhase = 0;
  750. };
  751. class LightAnim
  752. {
  753. source = "user";
  754. animPeriod = 1;
  755. initPhase = 1;
  756. };
  757. class ani_lightbar
  758. {
  759. source = "user";
  760. animPeriod = 1;
  761. initPhase = 0;
  762. };
  763. class ani_sirens
  764. {
  765. source = "user";
  766. animPeriod = 1;
  767. initPhase = 0;
  768. };
  769. class ani_wigs
  770. {
  771. source = "user";
  772. animPeriod = 1;
  773. initPhase = 0;
  774. };
  775. class LampL
  776. {
  777. source = "user";
  778. animPeriod = 1.5;
  779. initPhase = 0;
  780. };
  781. class LampR
  782. {
  783. source = "user";
  784. animPeriod = 1.5;
  785. initPhase = 0;
  786. };
  787. };
  788. fuelCapacity = 125;
  789. maxSpeed = 220;
  790. enginePower = 230;
  791. maxOmega = 700;
  792. peakTorque = 669;
  793. };
  794. class Aus_PDSLICK: Aus_CROWNBase
  795. {
  796. displayname = "Police Slicktop";
  797. model = "\Aus_CROWN\Aus_PDSLICK.p3d";
  798. picture = "\Aus_CROWN\UI\iconPD_ca.paa"; /// just some icon in command bar
  799. Icon = "\Aus_CROWN\UI\iconPD_ca.paa"; /// icon in map
  800. scope = 2;
  801. weapons[] = {"AM_horn_airhorn","AM_horn_takedown1"};
  802. typicalCargo[] = {"C_man_1"};
  803. cargoAction[] = {"passenger_low01","passenger_injured_medevac_truck01","passenger_injured_medevac_truck02","passenger_injured_medevac_truck01","passenger_flatground_generic03","passenger_flatground_generic05","passenger_generic01_foldhands","passenger_apc_narrow_generic03","passenger_generic01_leanright","passenger_apc_generic03","passenger_generic01_foldhands","passenger_generic01_leanleft","passenger_apc_generic01","passenger_generic01_foldhands","passenger_apc_generic04","passenger_generic01_leanleft"};
  804. // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
  805. hiddenSelections[] = {"jump","light0","light2","light3","light4","light5","light6","lb-right-takedown","lb-right-front-corner","lb-right-back-corner","lb-back-red-1","lb-back-red-2","lb-back-red-3","lb-back-blue-3","lb-back-blue-2","lb-back-blue-1","lb-left-back-corner","lb-back-yellow-1","lb-back-yellow-2","lb-back-yellow-3","lb-back-yellow-4","lb-back-yellow-5","lb-back-yellow-6","lb-left-alley","lb-right-alley","lb-ion-blue","lb-ion-red"};
  806. hiddenSelectionsTextures[] = {"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""};
  807.  
  808. class eventhandlers
  809. {
  810. init = "_this execVM '\Aus_CROWN\data\Scripts\init.sqf';";
  811. };
  812.  
  813. class UserActions
  814. {
  815. class codeOne
  816. {
  817. displayName = "<t color='#ff0000'>LED OFF</t>";
  818. position = "lightbar_axis";
  819. radius = 10;
  820. condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0)";
  821. statement = "this animate ['ani_lightbar', 0], this animate ['ani_siren', 0], this animate ['ani_directional', 0]";
  822. onlyForplayer = 1;
  823. };
  824.  
  825. class LightMode1
  826. {
  827. displayName = "<t color='#a40000'>LED ON</t>";
  828. position = "lightbar_axis";
  829. radius = 10;
  830. condition = "driver this == player && (this animationPhase 'ani_lightbar' != 0.5)";
  831. statement = "this animate ['ani_lightbar', 0.5], this animate ['ani_directional', 0.5]";
  832. onlyForplayer = 1;
  833. };
  834. class SirensOn
  835. {
  836. displayName = "<t color='#00fcff'>Siren oN</t>";
  837. position = "gen_sirens_axis";
  838. radius = 5;
  839. onlyforplayer = 1;
  840. condition = "this animationPhase ""genSirens"" < 0.5 && driver this == player";
  841. statement = "this animate [""genSirens"",1]";
  842. };
  843. class SirensOff
  844. {
  845. displayName = "<t color='#029a9c'>Siren Off</t>";
  846. position = "gen_sirens_axis";
  847. radius = 5;
  848. onlyforplayer = 1;
  849. condition = "this animationPhase ""genSirens"" >= 0.5 && driver this == player";
  850. statement = "this animate [""genSirens"",0]";
  851. };
  852. class swivelmdtright
  853. {
  854. displayName="Swivel MDT Right";
  855. position="door1_axis";
  856. radius=1;
  857. onlyforplayer = false;
  858. condition="this animationPhase ""ani_door1""<0.5";
  859. statement="this animate [""ani_door1"", 1]";
  860. };
  861. class swivelmdtleft
  862. {
  863. displayName="Swivel MDT Left";
  864. position="door1_axis";
  865. radius=1;
  866. onlyforplayer = false;
  867. condition="this animationPhase ""ani_door1""==1";
  868. statement="this animate [""ani_door1"", 0]";
  869. };
  870. class DIRECTLON
  871. {
  872. displayName = "Right On";
  873. position = "lightbar_axis";
  874. radius = 5;
  875. onlyforplayer = 1;
  876. condition = "!(this getvariable [""LEFT"", false]) && driver this == player && alive(this)";
  877. statement = "this setvariable [""LEFT"", true]";
  878. };
  879. class DIRECTLOFF
  880. {
  881. displayName = "Right Off";
  882. position = "lightbar_axis";
  883. radius = 5;
  884. onlyforplayer = 1;
  885. condition = "(this getvariable [""LEFT"", false]) && driver this == player && alive(this)";
  886. statement = "this setvariable [""LEFT"", false]";
  887. };
  888. class DIRECTRON
  889. {
  890. displayName = "Left On";
  891. position = "lightbar_axis";
  892. radius = 5;
  893. onlyforplayer = 1;
  894. condition = "!(this getvariable [""RIGHT"", false]) && driver this == player && alive(this)";
  895. statement = "this setvariable [""RIGHT"", true]";
  896. };
  897. class DIRECTROFF
  898. {
  899. displayName = "Left Off";
  900. position = "lightbar_axis";
  901. radius = 5;
  902. onlyforplayer = 1;
  903. condition = "(this getvariable [""RIGHT"", false]) && driver this == player && alive(this)";
  904. statement = "this setvariable [""RIGHT"", false]";
  905. };
  906. class HAZARDON
  907. {
  908. displayName = "Hazard On";
  909. position = "lightbar_axis";
  910. radius = 5;
  911. onlyforplayer = 1;
  912. condition = "!(this getvariable [""HAZARD"", false]) && driver this == player && alive(this)";
  913. statement = "this setvariable [""HAZARD"", true]";
  914. };
  915. class HAZARDOFF
  916. {
  917. displayName = "Hazard Off";
  918. position = "lightbar_axis";
  919. radius = 5;
  920. onlyforplayer = 1;
  921. condition = "(this getvariable [""HAZARD"", false]) && driver this == player && alive(this)";
  922. statement = "this setvariable [""HAZARD"", false]";
  923. };
  924. };
  925. class AnimationSources: AnimationSources
  926. {
  927. class Zeroanimation
  928. {
  929. source = "user";
  930. animPeriod = 0;
  931. initPhase = 0;
  932. };
  933. class OneSecondAnim
  934. {
  935. source = "user";
  936. animPeriod = 1;
  937. initPhase=0;
  938. };
  939. class FiveSecondAnim
  940. {
  941. source = "user";
  942. animPeriod = 5;
  943. initPhase=0;
  944. };
  945. class LightAnim
  946. {
  947. source = "user";
  948. animPeriod = 1;
  949. initPhase = 1;
  950. };
  951. class ani_lightbar
  952. {
  953. source = "user";
  954. animPeriod = 1;
  955. initPhase = 0;
  956. };
  957. class ani_direct
  958. {
  959. source = "user";
  960. animPeriod = 1;
  961. initPhase = 0;
  962. };
  963. class ani_siren
  964. {
  965. source = "user";
  966. animPeriod = 1;
  967. initPhase = 0;
  968. };
  969. };
  970. fuelCapacity = 125;
  971. maxSpeed = 220;
  972. enginePower = 230;
  973. maxOmega = 700;
  974. peakTorque = 669;
  975. };
  976. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement