Guest User

Untitled

a guest
Mar 29th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. #include "..\..\script_macros.hpp"
  2. /*
  3. File: fn_onFired.sqf
  4. Author: Yozza
  5.  
  6. Description:
  7. Handles various different ammo types being fired.
  8. */
  9. private ["_ammoType","_projectile"];
  10. _ammoType = _this select 4;
  11. _projectile = _this select 6;
  12.  
  13. if (_ammoType isEqualTo "GrenadeHand_stone") then {
  14. _projectile spawn {
  15. private "_position";
  16. while {!isNull _this} do {
  17. _position = ASLtoATL (visiblePositionASL _this);
  18. sleep 0.1;
  19. };
  20. [_position] remoteExec ["life_fnc_flashbang",RCLIENT];
  21. };
  22. };
  23.  
  24. {
  25. if (player inArea _x) then {
  26. if !(playerSide isEqualTo west && {currentWeapon player in ["hgun_P07_snds_F", "arifle_SDAR_F"]} && {_projectile in ["B_9x21_Ball","B_556x45_dual"]}) then {
  27. deleteVehicle _projectile;
  28. ["Stop firing in the safezone!","Stop Firing!"] spawn BIS_fnc_guiMessage;
  29. };
  30. };
  31. } forEach life_safezones;
Add Comment
Please, Sign In to add comment