scylla={ params["_vic"]; comment "data for weapons"; comment"format of [weapon,weaponMagType,[[seat,ammoPerMag,MagCount],[seat,ammoPerMag,MagCount],......etc]]"; weaponData=[ ["OPTRE_bomblauncher_1000lb","OPTRE_12Rnd_1000lb_bomb",[[-1,12,2]]], ["missiles_SCALPEL","6Rnd_LG_scalpel",[[-1,6,2]]], ["Mg7_proton_torpedo_launcher","Mg7_proton_torpedo",[[-1,8,6]]], ["missiles_Jian","4Rnd_LG_Jian",[[-1,4,3]]], ["Bomb_04_Plane_CAS_01_F","4Rnd_Bomb_04_F",[[-1,4,2]]], ["weapon_rim116Launcher","magazine_Missile_rim116_x21",[[-1,4,1]]], ["PomehiLauncherXT","400Rnd_Pomehi_Mag",[[-1,400,10]]], ["Cannon_SDS","1000Rnd_Cannon_SDS",[[0,1000,4]]], ["Laserdesignator_pilotCamera","Laserbatteries",[[-1,1,1]]], ["BombCluster_01_F","PylonMissile_1Rnd_BombCluster_01_F",[[-1,2,4]]] ]; _vic removeWeaponTurret ["ProtonBombW", [-1]]; _vic removeWeaponTurret ["ProtonBombWCLUSTER", [-1]]; _vic removeWeaponTurret ["c7_airedblaster", [-1]]; comment "For each weapon"; for [{_i=0}, {_i<(count weaponData)}, {_i=_i+1}] do { itemList=weaponData select _i; itemWeapon=itemList select 0; itemMagType=itemList select 1; itemSeats=itemList select 2; comment "for each seat"; for [{_j=0}, {_j<(count itemSeats)}, {_j=_j+1}] do { seatData=itemSeats select _j; seatIndex=seatData select 0; seatAmmoPerMag=seatData select 1; seatMags=seatData select 2; _vic addWeaponTurret[itemWeapon, [seatIndex]]; comment "adds mags"; for [{_k=0}, {_k<(seatMags)}, {_k=_k+1}] do { _vic addMagazineTurret [itemMagType ,[seatIndex],seatAmmoPerMag]; }; }; }; // _vic setVariable ["namReconfigured", true, true]; // } // else {}; // function as file _vic addAction ["Smoker--------U13", {[_this select 0] execVM "scripts\zeus3denScripts\vehicleBased\actionMenu\Smoke\YWING\ywingSmokeTip.sqf";} ,[1],0,false,true,"User13"," driver _target == _this"]; comment "gets health"; _vic addAction ["Damage Report", { hint parseText format[" Hull Integrity is :%1%2",((1-(damage (_this select 0)))*100),"%"]; },[1],0,false,true,""," driver _target == _this "]; comment "Increment Throttle"; _vic addAction ["Increment Throttle--------U16", { (_this select 0) setAirplaneThrottle ((airplaneThrottle (_this select 0))+.01); },[1],0,false,true,"User16","driver _target == _this"]; comment "Decrement Throttle"; _vic addAction ["Decrement Throttle--------U17", { (_this select 0) setAirplaneThrottle ((airplaneThrottle (_this select 0))-0.01); },[1],0,false,true,"User17","driver _target == _this"]; }; ["swop_ywclones", "init",scylla, true, [], true] call CBA_fnc_addClassEventHandler;