Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- File: fn_function_1.sqf
- Author: Brutalzic
- devarma3france.fr
- http://devarma3france.fr || http://www.btrteam.fr
- BTR Team / MCF Gaming / 5-DAG
- */
- player addEventHandler
- ["handleDamage",
- {
- _player = _this select 0;
- _shooter = _this select 6;
- _time = time;
- _factor = _player distance _shooter;
- if ((_this select 4) isEqualTo "cartridge_flashball") then {
- _player forceWalk true;
- if (_factor < 3) then {
- _player setDamage 0.8;
- waitUntil {_time + 0.006};
- _player forceWalk false;
- _player setfatigue 1;
- };
- if (_factor > 3) then {
- if (_factor < 10) then {
- _player setDamage 0.3;
- waitUntil {_time + 0.006};
- _player forceWalk false;
- _player setfatigue 1;
- };
- };
- if (_factor > 10) then {
- if (_factor < 30) then {
- waitUntil {_time + 0.003};
- _player forceWalk false;
- _player setfatigue 1;
- };
- };
- };
- }
- ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement