Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.75 KB | None | 0 0
  1. #include "basicdefines_A3.hpp"
  2. class DefaultEventhandlers;
  3.  
  4. #include "CfgPatches.hpp"
  5.  
  6. class WeaponFireGun;
  7. class WeaponCloudsGun;
  8. class WeaponFireMGun;
  9. class WeaponCloudsMGun;
  10.  
  11. class CfgVehicles
  12. {
  13. class Car;
  14. class Car_F: Car
  15. {
  16. class HitPoints
  17. {
  18. class HitLFWheel;
  19. class HitLF2Wheel;
  20. class HitRFWheel;
  21. class HitRF2Wheel;
  22. class HitBody;
  23. class HitGlass1;
  24. class HitGlass2;
  25. class HitGlass3;
  26. class HitGlass4;
  27. };
  28. class EventHandlers;
  29. class Animationsources;
  30. };
  31.  
  32. class Maisha_Bus: Car_F
  33. {
  34. picture = "\A3\soft_f_gamma\Hatchback_01\Data\UI\portrait_car_CA.paa";
  35. Icon = "\A3\soft_f_gamma\Hatchback_01\Data\UI\map_car_CA.paa";
  36. hiddenSelections[] = {"camo1","","Lettre1","Lettre2","Chiffre1","Chiffre2","Chiffre3","Lettre3","Lettre4"};
  37. hiddenSelectionsTextures[]={};
  38. model= "\Guillaume_Maisha_bus_ratp\Bus";
  39. displayName = "Bus De Ville";
  40. author = "Guillaume9545";
  41. terrainCoef = 3;
  42. turnCoef = 2.5;
  43. precision = 10;
  44. brakeDistance = 3;
  45. acceleration = 15;
  46. fireResistance = 5;
  47. armor = 50;
  48. cost = 50000;
  49. scope = 2;
  50. scopeCurator=2;
  51. crew = "C_man_1";
  52. side = 3;
  53. faction = CIV_F;
  54. transportMaxBackpacks = 3;
  55. transportSoldier = 3;
  56. wheelDamageRadiusCoef = 0.9;
  57. wheelDestroyRadiusCoef = 0.4;
  58. maxFordingDepth = 0.5;
  59. waterResistance = 1;
  60. crewCrashProtection = 0.25;
  61. driverLeftHandAnimName = "drivewheel";
  62. driverRightHandAnimName = "drivewheel";
  63. class Turrets{};
  64. class HitPoints: HitPoints
  65. {
  66. class HitLFWheel: HitLFWheel {armor=0.125; passThrough=0;};
  67. class HitLF2Wheel: HitLF2Wheel {armor=0.125; passThrough=0;};
  68. class HitRFWheel: HitRFWheel {armor=0.125; passThrough=0;};
  69. class HitRF2Wheel: HitRF2Wheel {armor=0.125; passThrough=0;};
  70. class HitFuel {armor=0.50; material=-1; name="fueltank"; visual=""; passThrough=0.2;};
  71. class HitEngine {armor=0.50; material=-1; name="engine"; visual=""; passThrough=0.2;};
  72. class HitBody: HitBody {name = "body"; visual="camo1"; passThrough=1;};
  73. class HitGlass1: HitGlass1 {armor=0.25;};
  74. class HitGlass2: HitGlass2 {armor=0.25;};
  75. class HitGlass3: HitGlass3 {armor=0.25;};
  76. class HitGlass4: HitGlass4 {armor=0.25;};
  77. };
  78. driverAction = driver_offroad01;
  79. cargoAction[] = {passenger_low01, passenger_generic01_leanleft, passenger_generic01_foldhands};
  80. getInAction = GetInLow;
  81. getOutAction = GetOutLow;
  82. cargoGetInAction[] = {"GetInLow"};
  83. cargoGetOutAction[] = {"GetOutLow"};
  84. #include "sounds.hpp"
  85. #include "pip.hpp"
  86. #include "physx.hpp"
  87. class PlayerSteeringCoefficients
  88. {
  89. turnIncreaseConst = 0.3;
  90. turnIncreaseLinear = 1.0;
  91. turnIncreaseTime = 1.0;
  92. turnDecreaseConst = 5.0;
  93. turnDecreaseLinear = 3.0;
  94. turnDecreaseTime = 0.0;
  95. maxTurnHundred = 0.7;
  96. };
  97. memoryPointTrackFLL = "TrackFLL";
  98. memoryPointTrackFLR = "TrackFLR";
  99. memoryPointTrackBLL = "TrackBLL";
  100. memoryPointTrackBLR = "TrackBLR";
  101. memoryPointTrackFRL = "TrackFRL";
  102. memoryPointTrackFRR = "TrackFRR";
  103. memoryPointTrackBRL = "TrackBRL";
  104. memoryPointTrackBRR = "TrackBRR";
  105. class Damage
  106. {
  107. tex[]={};
  108. mat[]=
  109. {
  110. "A3\data_f\glass_veh_int.rvmat",
  111. "A3\data_f\Glass_veh_damage.rvmat",
  112. "A3\data_f\Glass_veh_damage.rvmat",
  113. "A3\data_f\glass_veh.rvmat",
  114. "A3\data_f\Glass_veh_damage.rvmat",
  115. "A3\data_f\Glass_veh_damage.rvmat"
  116. };
  117. };
  118. class AnimationSources : Animationsources
  119. {
  120. class Door_1
  121. {
  122. source="user";
  123. animPeriod=1;
  124. initPhase=0;
  125. };
  126.  
  127. class Door_2
  128. {
  129. source="user";
  130. animPeriod=1;
  131. initPhase=0;
  132. };
  133.  
  134. class Door_3
  135. {
  136. source="user";
  137. animPeriod=1;
  138. initPhase=0;
  139. };
  140.  
  141. class Door_4
  142. {
  143. source="user";
  144. animPeriod=1;
  145. initPhase=0;
  146. };
  147. };
  148. class UserActions {
  149.  
  150. class Porte_avant
  151. {
  152. displayName = "Ouvrir porte avant";
  153. position = "porte_avant1_trigger";
  154. radius = 3;
  155. condition = "this animationPhase ""Door_1","Door_2"" < 0.5";
  156. statement = "this animate [""Door_1","Door_2"", 1];";
  157. onlyForplayer = 0;
  158. };
  159. class Porte_avant_0 : porte_avant
  160. {
  161. displayName = "Fermer porte avant";
  162. condition = "this animationPhase ""Door_1","Door_2"" > 0.5";
  163. statement = "this animate [""Door_1","Door_2"", 0];";
  164. };
  165. class Porte_arriere
  166. {
  167. displayName = "Ouvrir porte arrière";
  168. position = "porte_avant3_trigger";
  169. radius = 3;
  170. condition = "this animationPhase ""Door_3","Door_4"" < 0.5";
  171. statement = "this animate [""Door_3","Door_4"", 1];";
  172. onlyForplayer = 0;
  173. };
  174. class Porte_arriere_0 : porte_arriere
  175. {
  176. displayName = "Fermer porte arrière";
  177. condition = "this animationPhase ""Door_3","Door_4"" > 0.5";
  178. statement = "this animate [""Door_3","Door_4"", 0];";
  179. };
  180.  
  181. };
  182. class Exhausts
  183. {
  184. class Exhaust1
  185. {
  186. position = "exhaust";
  187. direction = "exhaust_dir";
  188. effect = "ExhaustsEffect";
  189. };
  190. class Exhaust2
  191. {
  192. position = "exhaust2_pos";
  193. direction = "exhaust2_dir";
  194. effect = "ExhaustsEffect";
  195. };
  196. };
  197. class Reflectors
  198. {
  199. class LightCarHeadL01
  200. {
  201. color[] = {1900, 1800, 1700};
  202. ambient[] = {5, 5, 5};
  203. position = "LightCarHeadL01";
  204. direction = "LightCarHeadL01_end";
  205. hitpoint = "Light_L";
  206. selection = "Light_L";
  207. size = 1;
  208. innerAngle = 100;
  209. outerAngle = 179;
  210. coneFadeCoef = 10;
  211. intensity = 1;
  212. useFlare = true;
  213. dayLight = false;
  214. flareSize = 1.0;
  215. class Attenuation
  216. {
  217. start = 1.0;
  218. constant = 0;
  219. linear = 0;
  220. quadratic = 0.25;
  221. hardLimitStart = 30;
  222. hardLimitEnd = 60;
  223. };
  224. };
  225. class LightCarHeadL02: LightCarHeadL01
  226. {
  227. position = "LightCarHeadL02";
  228. direction = "LightCarHeadL02_end";
  229. FlareSize = 0.5;
  230. };
  231. class LightCarHeadR01: LightCarHeadL01
  232. {
  233. position = "LightCarHeadR01";
  234. direction = "LightCarHeadR01_end";
  235. hitpoint = "Light_R";
  236. selection = "Light_R";
  237. };
  238. class LightCarHeadR02: LightCarHeadR01
  239. {
  240. position = "LightCarHeadR02";
  241. direction = "LightCarHeadR02_end";
  242. FlareSize = 0.5;
  243. };
  244. };
  245. aggregateReflectors[] = {{"LightCarHeadL01", "LightCarHeadL02"}, {"LightCarHeadR01", "LightCarHeadR02"}};
  246. class EventHandlers: EventHandlers{};
  247. };
  248. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement