Advertisement
Guest User

Untitled

a guest
Dec 17th, 2014
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.50 KB | None | 0 0
  1.  
  2. class CfgPatches {
  3.  
  4. class tf47_m3maaws {
  5. units[] = {};
  6. weapons[] = {"tf47_m3maaws", "tf47_beret", "tf47_optic_m3maaws"};
  7. magazines[] = {"tf47_m3maaws_HEAT", "tf47_m3maaws_HEDP", "tf47_m3maaws_HE"};
  8. requiredVersion = 0.100000;
  9. requiredAddons[] = {"A3_Weapons_F", "A3_Weapons_F_Items", "A3_Characters_F_BLUFOR", "CBA_MAIN"};
  10. ammo[] = {"tf47_m3maaws_HEAT", "tf47_m3maaws_HEDP", "tf47_m3maaws_HE"};
  11. };
  12.  
  13. class Disable_XEH_Logging {
  14. units[] = {};
  15. weapons[] = {};
  16. requiredVersion = 0.100000;
  17. requiredAddons[] = {"CBA_MAIN"};
  18. };
  19. };
  20.  
  21. class CfgWeapons {
  22. /*extern*/ class HeadgearItem;
  23. /*extern*/ class H_Beret_blk;
  24.  
  25. class tf47_beret: H_Beret_blk {
  26. scope = 2;
  27. displayName = "TF47 Beret";
  28. picture = "\A3\characters_f_epb\BLUFOR\Data\UI\icon_h_beret02_ca.paa";
  29. model = "\A3\characters_f_epb\BLUFOR\headgear_beret02.p3d";
  30. hiddenSelections[] = {"camo"};
  31. hiddenSelectionsTextures[] = {"\tf47_launchers\m3maaws\data\tf47_beret.paa"};
  32. descriptionShort = "Super-Mega-Elite-Beret";
  33.  
  34. class ItemInfo: HeadgearItem {
  35. mass = 3;
  36. uniformModel = "\A3\characters_f_epb\BLUFOR\headgear_beret02.p3d";
  37. allowedSlots[] = {"UNIFORM_SLOT", "BACKPACK_SLOT", "VEST_SLOT", "HEADGEAR_SLOT"};
  38. modelSides[] = {6};
  39. armor = 1;
  40. passThrough = 1;
  41. hiddenSelections[] = {"camo"};
  42. };
  43. };
  44.  
  45. /*extern*/ class ItemCore;
  46. /*extern*/ class InventoryOpticsItem_Base_F;
  47. class tf47_optic_m3maaws: ItemCore {
  48. author = "[TaskForce 47] BlackPixxel";
  49. _generalMacro = "tf47_optic_m3maaws";
  50. scope = 2;
  51. displayName = "M3 MAAWS sight";
  52. picture = "\tf47_launchers\m3maaws\UI\gear_scope_CA.paa";
  53. model = "tf47_launchers\m3maaws\optic_m3maaws.p3d";
  54. descriptionShort = "Optical Sight for the M3 MAAWS";
  55. weaponInfoType = "RscWeaponZeroing";
  56.  
  57.  
  58. class ItemInfo: InventoryOpticsItem_Base_F {
  59. mass = 8;
  60. opticType = 1;
  61. optics = 1;
  62. modelOptics = "tf47_launchers\m3maaws\optic_m3maaws.p3d";
  63.  
  64. class OpticsModes {
  65.  
  66. class optic {
  67. distanceZoomMin = 100;
  68. distanceZoomMax = 900;
  69. opticsID = 1;
  70. opticType = 2;
  71. useModelOptics = 0;
  72. opticsZoomMin = 0.108300;
  73. opticsZoomMax = 0.108300;
  74. opticsZoomInit = 0.108300;
  75. discreteDistance[] = {100, 200, 300, 400, 500, 600, 700, 800, 900};
  76. discreteDistanceInitIndex = 0;
  77. memoryPointCamera = "eye";
  78. opticsFlare = 1;
  79. opticsDisablePeripherialVision = 1;
  80. cameraDir = "look";
  81. visionMode[] = {"Normal"};
  82. opticsPPEffects[] = {"OpticsCHAbera1", "OpticsBlur1"};
  83. };
  84. };
  85. };
  86. inertia = 0.100000;
  87. };
  88.  
  89. /*extern*/ class Launcher;
  90. class Launcher_Base_F: Launcher {
  91. /*extern*/ class WeaponSlotsInfo;
  92. };
  93.  
  94. class tf47_m3maaws: Launcher_Base_F {
  95. author = "[TaskForce 47] BlackPixxel";
  96. _generalMacro = "tf47_m3maaws";
  97. scope = 2;
  98. displayName = "M3 MAAWS";
  99. model = "tf47_launchers\m3maaws\m3maaws.p3d";
  100. picture = "\tf47_launchers\m3maaws\UI\gear_m3maaws_X_CA.paa";
  101. handAnim[] = {"OFP2_ManSkeleton", "tf47_launchers\m3maaws\anim\handanim_m3maaws.rtm"};
  102. reloadAction = "ReloadRPG";
  103. modelOptics = "-";
  104. maxZeroing = 900;
  105. weaponInfoType = "RscWeaponZeroing";
  106. distanceZoomMin = 100;
  107. distanceZoomMax = 900;
  108. discreteDistance[] = {100, 200, 300, 400, 500, 600, 700, 800, 900};
  109. discreteDistanceInitIndex = 2;
  110. optics = 1;
  111. opticsdisableperipherialvision = 0.670000;
  112. opticsflare = 0;
  113. opticsid = 0;
  114. opticsppeffects[] = {};
  115. opticszoominit = 0.750000;
  116. opticszoommax = 1.100000;
  117. memorypointcamera = "eye";
  118.  
  119. class GunParticles {
  120.  
  121. class effect1 {
  122. positionName = "BackBlast2";
  123. directionName = "BackBlast1";
  124. effectName = "RocketBackEffectsNLAW";
  125. };
  126.  
  127. class effect2 {
  128. positionName = "BackBlast2";
  129. directionName = "BackBlast1";
  130. effectName = "MortarFired";
  131. };
  132.  
  133. class effect3 {
  134. effectName = "SniperCloud";
  135. positionName = "BackBlast2";
  136. directionName = "BackBlast1";
  137. };
  138.  
  139. class effect4 {
  140. positionName = "BackBlast2";
  141. directionName = "BackBlast1";
  142. effectName = "RocketBackEffectsRPGNT";
  143. };
  144.  
  145. class effect5 {
  146. positionName = "BackBlast2";
  147. directionName = "BackBlast1";
  148. effectName = "MortarFired";
  149. };
  150. };
  151. magazines[] = {"tf47_m3maaws_HEAT", "tf47_m3maaws_HEDP", "tf47_m3maaws_HE"};
  152. sounds[] = {"StandardSound"};
  153.  
  154. class BaseSoundModeType {
  155. weaponSoundEffect = "DefaultRifle";
  156. };
  157.  
  158. class StandardSound: BaseSoundModeType {
  159. begin1[] = {"tf47_launchers\m3maaws\sound\m3_fire.ogg", "db18", 1, 900};
  160. soundBegin[] = {"begin1", 1};
  161. };
  162. drySound[] = {"A3\sounds_f\weapons\other\dry6", 0.446684, 1, 20};
  163. reloadMagazineSound[] = {"tf47_launchers\m3maaws\sound\m3_reload.ogg", 1.000000, 1, 10};
  164. soundFly[] = {"A3\sounds_f\weapons\rockets\rocket_fly_1", 0.316228, 1.500000, 900};
  165. recoil = "recoil_single_law";
  166. aiRateOfFire = 7.000000;
  167. aiRateOfFireDistance = 600;
  168. minRange = 10;
  169. minRangeProbab = 0.300000;
  170. midRange = 400;
  171. midRangeProbab = 0.800000;
  172. maxRange = 600;
  173. maxRangeProbab = 0.100000;
  174. canLock = 0;
  175. weaponLockDelay = 3.000000;
  176. lockAcquire = 0;
  177. inertia = 0.400000;
  178.  
  179. class WeaponSlotsInfo: WeaponSlotsInfo {
  180. allowedslots[] = {901};
  181. mass = 4;
  182.  
  183. class CowsSlot {
  184. access = 1;
  185. compatibleitems[] = {"tf47_optic_m3maaws"};
  186. displayname = "Optics Slot";
  187. linkproxy = "\A3\data_f\proxies\weapon_slots\TOP";
  188. scope = 2;
  189. };
  190. };
  191. descriptionShort = "84mm Anti Tank Rifle";
  192.  
  193. class Library {
  194. libTextDesc = "The Carl Gustav M3 is a very effective recoilles rifle produced by Saab";
  195. };
  196. };
  197. };
  198.  
  199. class CfgMagazines {
  200.  
  201. /*extern*/ class CA_LauncherMagazine;
  202. class tf47_m3maaws_HEAT: CA_LauncherMagazine {
  203. author = "[TaskForce 47] BlackPixxel";
  204. scope = 2;
  205. displayName = "FFV751 HEAT";
  206. model = "tf47_launchers\m3maaws\mag_m3maaws.p3d";
  207. picture = "\tf47_launchers\m3maaws\UI\gear_small_CA.paa";
  208. initSpeed = 290;
  209. descriptionShort = "High Explosive Anti tank";
  210. displaynameshort = "751 HEAT";
  211. ammo = "tf47_m3maaws_HEAT";
  212. type = "2* 256";
  213. mass = 60;
  214. };
  215.  
  216. class tf47_m3maaws_HEDP: CA_LauncherMagazine {
  217. author = "[TaskForce 47] BlackPixxel";
  218. scope = 2;
  219. displayName = "FFV502 HEDP";
  220. model = "tf47_launchers\m3maaws\mag_m3maaws.p3d";
  221. picture = "\tf47_launchers\m3maaws\UI\gear_small_CA.paa";
  222. initSpeed = 230;
  223. descriptionShort = "High Explosive Dual Purpose";
  224. displaynameshort = "502 HEDP";
  225. ammo = "tf47_m3maaws_HEDP";
  226. type = "2* 256";
  227. mass = 45;
  228. };
  229.  
  230. class tf47_m3maaws_HE: CA_LauncherMagazine {
  231. author = "[TaskForce 47] BlackPixxel";
  232. scope = 2;
  233. displayName = "FFV441 HE";
  234. model = "tf47_launchers\m3maaws\mag_m3maaws.p3d";
  235. picture = "\tf47_launchers\m3maaws\UI\gear_small_CA.paa";
  236. initSpeed = 255;
  237. descriptionShort = "High Explosive";
  238. displaynameshort = "441 HE";
  239. ammo = "tf47_m3maaws_HE";
  240. type = "2* 256";
  241. mass = 35;
  242. };
  243. };
  244.  
  245. class CfgAmmo {
  246. /*extern*/ class RocketBase;
  247. class tf47_m3maaws_HEAT: RocketBase {
  248. EffectFly = "ArtilleryTrails";
  249. soundHit[] = {"A3\Sounds_F\weapons\Rockets\explosion_missile_05", "db25", 1, 1800};
  250. soundFly[] = {"A3\Sounds_F\weapons\Rockets\new_rocket_6", "db25", 1, 400};
  251. model = "tf47_launchers\m3maaws\ammo_m3maaws.p3d";
  252. hit = 1050;
  253. indirectHit = 9;
  254. indirectHitRange = 4;
  255. cost = 800;
  256. airFriction = 0.010000;
  257. sideAirFriction = 0.000000;
  258. maxSpeed = 290;
  259. initTime = 0;
  260. thrustTime = 0.100000;
  261. thrust = 0.100000;
  262. fuseDistance = 15;
  263. CraterEffects = "ATMissileCrater";
  264. explosionEffects = "ATMissileExplosion";
  265. effectsMissileInit = "";
  266. effectsMissile = "ExhaustsEffectJet";
  267. simulationStep = 0.020000;
  268. airLock = 0;
  269. irLock = 0;
  270. timeToLive = 10;
  271. maneuvrability = 0;
  272. allowAgainstInfantry = 0;
  273.  
  274. class CamShakeExplode {
  275. power = "(55*0.2)";
  276. duration = "((round (55^0.5))*0.2 max 0.2)";
  277. frequency = 20;
  278. distance = "((5 + 55^0.5)*8)";
  279. };
  280.  
  281. class CamShakeHit {
  282. power = 110;
  283. duration = "((round (110^0.25))*0.2 max 0.2)";
  284. frequency = 20;
  285. distance = 1;
  286. };
  287.  
  288. class CamShakeFire {
  289. power = "(20^0.25)";
  290. duration = "((round (20^0.5))*0.2 max 0.2)";
  291. frequency = 20;
  292. distance = "((20^0.5)*8)";
  293. };
  294.  
  295. class CamShakePlayerFire {
  296. power = 1;
  297. duration = 0.100000;
  298. frequency = 5;
  299. distance = 1;
  300. };
  301. };
  302.  
  303. class tf47_m3maaws_HEDP: RocketBase {
  304. EffectFly = "ArtilleryTrails";
  305. soundHit[] = {"A3\Sounds_F\weapons\Rockets\explosion_missile_04", "db25", 1, 1800};
  306. soundFly[] = {"A3\Sounds_F\weapons\Rockets\new_rocket_6", "db25", 1, 400};
  307. model = "tf47_launchers\m3maaws\ammo_m3maaws.p3d";
  308. hit = 300;
  309. indirectHit = 100;
  310. indirectHitRange = 6;
  311. cost = 500;
  312. airFriction = 0.010000;
  313. sideAirFriction = 0.000000;
  314. maxSpeed = 230;
  315. initTime = 0;
  316. thrustTime = 0.100000;
  317. thrust = 0.100000;
  318. fuseDistance = 15;
  319. CraterEffects = "ATMissileCrater";
  320. explosionEffects = "ATMissileExplosion";
  321. effectsMissileInit = "";
  322. effectsMissile = "ExhaustsEffectJet";
  323. simulationStep = 0.020000;
  324. airLock = 0;
  325. irLock = 0;
  326. timeToLive = 10;
  327. maneuvrability = 0;
  328. allowAgainstInfantry = 1;
  329.  
  330. class CamShakeExplode {
  331. power = "(55*0.2)";
  332. duration = "((round (55^0.5))*0.2 max 0.2)";
  333. frequency = 20;
  334. distance = "((5 + 55^0.5)*8)";
  335. };
  336.  
  337. class CamShakeHit {
  338. power = 110;
  339. duration = "((round (110^0.25))*0.2 max 0.2)";
  340. frequency = 20;
  341. distance = 1;
  342. };
  343.  
  344. class CamShakeFire {
  345. power = "(20^0.25)";
  346. duration = "((round (20^0.5))*0.2 max 0.2)";
  347. frequency = 20;
  348. distance = "((20^0.5)*8)";
  349. };
  350.  
  351. class CamShakePlayerFire {
  352. power = 1;
  353. duration = 0.100000;
  354. frequency = 5;
  355. distance = 1;
  356. };
  357. };
  358.  
  359. class tf47_m3maaws_HE: RocketBase {
  360. EffectFly = "ArtilleryTrails";
  361. soundHit[] = {"A3\Sounds_F\weapons\Rockets\explosion_missile_01", "db25", 1, 1800};
  362. soundFly[] = {"A3\Sounds_F\weapons\Rockets\new_rocket_6", "db25", 1, 400};
  363. model = "tf47_launchers\m3maaws\ammo_m3maaws.p3d";
  364. hit = 75;
  365. indirectHit = 180;
  366. indirectHitRange = 8;
  367. cost = 300;
  368. airFriction = 0.010000;
  369. sideAirFriction = 0.000000;
  370. maxSpeed = 255;
  371. initTime = 0;
  372. thrustTime = 0.100000;
  373. thrust = 0.100000;
  374. fuseDistance = 15;
  375. CraterEffects = "ArtyShellCrater";
  376. explosionEffects = "MortarExplosion";
  377. effectsMissileInit = "";
  378. effectsMissile = "ExhaustsEffectJet";
  379. simulationStep = 0.020000;
  380. airLock = 0;
  381. irLock = 0;
  382. timeToLive = 10;
  383. maneuvrability = 0;
  384. allowAgainstInfantry = 1;
  385.  
  386. class CamShakeExplode {
  387. power = "(55*0.2)";
  388. duration = "((round (55^0.5))*0.2 max 0.2)";
  389. frequency = 20;
  390. distance = "((5 + 55^0.5)*8)";
  391. };
  392.  
  393. class CamShakeHit {
  394. power = 110;
  395. duration = "((round (110^0.25))*0.2 max 0.2)";
  396. frequency = 20;
  397. distance = 1;
  398. };
  399.  
  400. class CamShakeFire {
  401. power = "(20^0.25)";
  402. duration = "((round (20^0.5))*0.2 max 0.2)";
  403. frequency = 20;
  404. distance = "((20^0.5)*8)";
  405. };
  406.  
  407. class CamShakePlayerFire {
  408. power = 1;
  409. duration = 0.100000;
  410. frequency = 5;
  411. distance = 1;
  412. };
  413. };
  414. };
  415.  
  416. class Extended_Fired_Eventhandlers {
  417.  
  418. class CAManBase {
  419.  
  420. class tf47_m3maaws_Fired {
  421. onRespawn = 1;
  422. fired = "_this execVM '\tf47_launchers\m3maaws\scripts\m3maaws_zeroing.sqf'";
  423. };
  424. };
  425. };
  426.  
  427. enum {
  428. destructengine = 2,
  429. destructdefault = 6,
  430. destructwreck = 7,
  431. destructtree = 3,
  432. destructtent = 4,
  433. stabilizedinaxisx = 1,
  434. stabilizedinaxesxyz = 4,
  435. stabilizedinaxisy = 2,
  436. stabilizedinaxesboth = 3,
  437. destructno = 0,
  438. stabilizedinaxesnone = 0,
  439. destructman = 5,
  440. destructbuilding = 1
  441. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement