Arma 3
Smuggler DEMO
DiaZuuu 31 Jul, 2020 @ 1:32pm
Smuggler Ace 3 damage fix
I figure out how to make Smuggler inflict ace damage!

Everything thanks to this code: private _randomDamage = 1; private _bodyPart = ["head","body","arm_r","arm_l","leg_r","leg_l"] selectRandomWeighted [0.5,1,1,1,1,1]; [player, _randomDamage , _bodyPart, "punch"] call ace_medical_fnc_addDamageToUnit;

Everything you need to do is copy and paste this in teleport_effect.sqf and you done :D

In sqf file this should look like this: (That's only example don't use this!!!)

switch (_floor_dice) do
{
case 0: {_poz_1 = [getpos _obj_tele,300,-1,5,0,-1,0] call BIS_fnc_findSafePos;
[_unit_check,_poz_1] call fn_teleport;
sleep 0.1;
private _randomDamage = 1; private _bodyPart = ["head","body","arm_r","arm_l","leg_r","leg_l"] selectRandomWeighted [0.5,1,1,1,1,1]; [player, _randomDamage , _bodyPart, "punch"] call ace_medical_fnc_addDamageToUnit;
_unit_check call fn_final_scream;
};
case 1: {_poz_1 = [getpos _obj_tele,300,-1,5,0,-1,0] call BIS_fnc_findSafePos;
[_unit_check,_poz_1] call fn_teleport;
sleep 0.1;
private _randomDamage = 1; private _bodyPart = ["head","body","arm_r","arm_l","leg_r","leg_l"] selectRandomWeighted [0.5,1,1,1,1,1]; [player, _randomDamage , _bodyPart, "punch"] call ace_medical_fnc_addDamageToUnit;
_unit_check call fn_final_scream;
};
case 2: {_poz_1 = [getpos _obj_tele,300,-1,5,0,-1,0] call BIS_fnc_findSafePos;_poz_2 = [getpos _obj_tele,300,-1,5,0,-1,0] call BIS_fnc_findSafePos;
[_unit_check,_poz_1] call fn_teleport;
[_unit_check,_poz_2] call fn_teleport;
sleep 0.1;
private _randomDamage = 1; private _bodyPart = ["head","body","arm_r","arm_l","leg_r","leg_l"] selectRandomWeighted [0.5,1,1,1,1,1]; [player, _randomDamage , _bodyPart, "punch"] call ace_medical_fnc_addDamageToUnit;
_unit_check call fn_final_scream;
};
case 3: {_poz_1 = [getpos _obj_tele,300,-1,5,0,-1,0] call BIS_fnc_findSafePos;_poz_2 = [getpos _obj_tele,300,-1,5,0,-1,0] call BIS_fnc_findSafePos;_poz_3 = [getpos _obj_tele,300,-1,5,0,-1,0] call BIS_fnc_findSafePos;
[_unit_check,_poz_1] call fn_teleport;
[_unit_check,_poz_2] call fn_teleport;
[_unit_check,_poz_3] call fn_teleport;
sleep 0.1;
private _randomDamage = 1; private _bodyPart = ["head","body","arm_r","arm_l","leg_r","leg_l"] selectRandomWeighted [0.5,1,1,1,1,1]; [player, _randomDamage , _bodyPart, "punch"] call ace_medical_fnc_addDamageToUnit;
_unit_check call fn_final_scream;
};
case 4: {_poz_1 = [getpos _obj_tele,300,-1,5,0,-1,0] call BIS_fnc_findSafePos;_poz_2 = [getpos _obj_tele,300,-1,5,0,-1,0] call BIS_fnc_findSafePos;_poz_3 = [getpos _obj_tele,300,-1,5,0,-1,0] call BIS_fnc_findSafePos;_poz_4 = [getpos _obj_tele,300,-1,5,0,-1,0] call BIS_fnc_findSafePos;
[_unit_check,_poz_1] call fn_teleport;
[_unit_check,_poz_2] call fn_teleport;
[_unit_check,_poz_3] call fn_teleport;
[_unit_check,_poz_4] call fn_teleport;
sleep 0.1;
private _randomDamage = 1; private _bodyPart = ["head","body","arm_r","arm_l","leg_r","leg_l"] selectRandomWeighted [0.5,1,1,1,1,1]; [player, _randomDamage , _bodyPart, "punch"] call ace_medical_fnc_addDamageToUnit;
_unit_check call fn_final_scream;
};
case 5: {_poz_1 = [getpos _obj_tele,300,-1,5,0,-1,0] call BIS_fnc_findSafePos;_poz_2 = [getpos _obj_tele,300,-1,5,0,-1,0] call BIS_fnc_findSafePos;_poz_3 = [getpos _obj_tele,300,-1,5,0,-1,0] call BIS_fnc_findSafePos;_poz_4 = [getpos _obj_tele,300,-1,5,0,-1,0] call BIS_fnc_findSafePos;_poz_5 = [getpos _obj_tele,300,-1,5,0,-1,0] call BIS_fnc_findSafePos;
[_unit_check,_poz_1] call fn_teleport;
[_unit_check,_poz_2] call fn_teleport;
[_unit_check,_poz_3] call fn_teleport;
[_unit_check,_poz_4] call fn_teleport;
[_unit_check,_poz_5] call fn_teleport;
sleep 0.1;
private _randomDamage = 1; private _bodyPart = ["head","body","arm_r","arm_l","leg_r","leg_l"] selectRandomWeighted [0.5,1,1,1,1,1]; [player, _randomDamage , _bodyPart, "punch"] call ace_medical_fnc_addDamageToUnit;
_unit_check call fn_final_scream;
};
};
Last edited by DiaZuuu; 2 Aug, 2020 @ 3:44am