Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "..\..\script_macros.hpp"
- /*
- File: fn_onFired.sqf
- Author: Yozza
- Description:
- Handles various different ammo types being fired.
- */
- private ["_ammoType","_projectile"];
- _ammoType = _this select 4;
- _projectile = _this select 6;
- if (_ammoType isEqualTo "GrenadeHand_stone") then {
- _projectile spawn {
- private "_position";
- while {!isNull _this} do {
- _position = ASLtoATL (visiblePositionASL _this);
- sleep 0.1;
- };
- [_position] remoteExec ["life_fnc_flashbang",RCLIENT];
- };
- };
- {
- if (player inArea _x) then {
- if !(playerSide isEqualTo west && {currentWeapon player in ["hgun_P07_snds_F", "arifle_SDAR_F"]} && {_projectile in ["B_9x21_Ball","B_556x45_dual"]}) then {
- deleteVehicle _projectile;
- ["Stop firing in the safezone!","Stop Firing!"] spawn BIS_fnc_guiMessage;
- };
- };
- } forEach life_safezones;
Add Comment
Please, Sign In to add comment