Guest User

Untitled

a guest
Jun 3rd, 2020
16
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. player addEventHandler ["Fired",{
  2. params ["_unit", "_weapon", "_muzzle", "_mode", "_ammo", "_magazine", "_projectile", "_gunner"];
  3. if (_weapon isEqualTo 'ASN_fireextinguisher') then {
  4. private _fire = nearestObject[player, "#particlesource"];
  5. if ((!isNull _fire) AND (player distance2D _fire <5)) then {
  6. if ((damage _fire) > 0.99) then {
  7. deleteVehicle _fire;
  8. } else {
  9. _fire setdamage ((damage _fire) + ((getnumber(MissionconfigFile >> "Fire_config" >> "extinguisher_rate"))));
  10. };
  11. };
  12. };
  13. }];
RAW Paste Data