Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //When player equips AT4s
- launchIS_AT4 = {_this removeMagazines "AT4_HEAT"; _this addMagazine ["AT4_HEAT",1]};
- launchIS_AT4HEDP = {_this removeMagazines "AT4_HEDP"; _this addMagazine ["AT4_HEDP",1]};
- launchIS_AT4HP = {_this removeMagazines "AT4_HP"; _this addMagazine ["AT4_HP",1]};
- //When player puts AT4s
- launchIS_AT4_put = {if !(_this hasWeapon "launch_AT4_F") then {_this removeMagazines "AT4_HEAT"}};
- launchIS_AT4HEDP_put = {if !(_this hasWeapon "launch_AT4_HEDP_F") then {_this removeMagazines "AT4_HEDP"}};
- launchIS_AT4HP_put = {if !(_this hasWeapon "launch_AT4_HP_F") then {_this removeMagazines "AT4_HP"}};
- //When player fires AT4s
- launchIS_AT4_fired = {if (_this hasWeapon "launch_AT4_F") then {_this addWeapon "launch_AT4_EMPTY_F"; _this removeMagazines "AT4_HEAT"}};
- launchIS_AT4HEDP_fired = {if (_this hasWeapon "launch_AT4_HEDP_F") then {_this addWeapon "launch_AT4_EMPTY_F"; _this removeMagazines "AT4_HEDP"}};
- launchIS_AT4HP_fired = {if (_this hasWeapon "launch_AT4_HP_F") then {_this addWeapon "launch_AT4_EMPTY_F"; _this removeMagazines "AT4_HP"}};
- //Events
- AT4rockettake = player addEventHandler ["Take", {if (_this select 2 == "launch_AT4_F") then {(_this select 0) call launchIS_AT4}}];
- AT4HEDProckettake = player addEventHandler ["Take", {if (_this select 2 == "launch_AT4_HEDP_F") then {(_this select 0) call launchIS_AT4HEDP}}];
- AT4HProckettake = player addEventHandler ["Take", {if (_this select 2 == "launch_AT4_HP_F") then {(_this select 0) call launchIS_AT4HP}}];
- AT4rocketput = player addEventHandler ["put", {(_this select 0) call launchIS_AT4_put}];
- AT4HEDProcketput = player addEventHandler ["put", {(_this select 0) call launchIS_AT4HEDP_put}];
- AT4HProcketput = player addEventHandler ["put", {(_this select 0) call launchIS_AT4HP_put}];
- AT4rocketfired = player addEventHandler ["Fired", {if (_this select 1 == "launch_AT4_F") then {(_this select 0) call launchIS_AT4_fired}}];
- AT4HEDProcketfired = player addEventHandler ["Fired", {if (_this select 1 == "launch_AT4_HEDP_F") then {(_this select 0) call launchIS_AT4HEDP_fired}}];
- AT4HProcketfired = player addEventHandler ["Fired", {if (_this select 1 == "launch_AT4_HP_F") then {(_this select 0) call launchIS_AT4HP_fired}}];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement