Arma 3
WORM DEMO
Worm ace damage fix
I figure out how to make Worm inflict ace damage, that was surprisingly easy...

Everything thanks to this code: _worm_impact = ["impact_30","impact_27"] call BIS_fnc_selectRandom; 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, "vehiclecrash"] call ace_medical_fnc_addDamageToUnit;

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

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

// by ALIAS

private ["_crater_impact"];

if (!hasInterface) exitWith {};

_head_worm = _this select 0;
_tail_worm = _this select 1;

enableCamShake true;
_worm_impact = ["impact_30","impact_27"] call BIS_fnc_selectRandom; 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, "vehiclecrash"] call ace_medical_fnc_addDamageToUnit;
_head_worm say3D [_worm_impact, 500];
Editat ultima dată de DiaZuuu; 2 aug. 2020 la 3:45
< >
Se afișează 1-5 din 5 comentarii
Ritalin 16 ian. 2021 la 23:09 
This works but it isn't localized to the areas of attacks. Doesn't matter where you were on the map, you get random damage.
DiaZuuu 17 ian. 2021 la 6:12 
Thanks for finding this bug, unfortunately I don't know how to fix it
Louis 8 apr. 2022 la 3:23 
Sorry I'm late to this! But use this instead

// by ALIAS

private ["_crater_impact"];

if (!hasInterface) exitWith {};

_head_worm = _this select 0;
_tail_worm = _this select 1;

enableCamShake true;
_worm_impact = ["impact_30","impact_27"] call BIS_fnc_selectRandom;
private _randomDamage = 1;
{_selection = selectRandom ["body","head","hand_r","hand_l","leg_r","leg_l"];
[_x, 0.2, _selection, "vehiclecrash"] call ace_medical_fnc_addDamageToUnit} forEach (_head_worm nearEntities ["man", 10]);
_head_worm say3D [_worm_impact, 500];
Louis 8 apr. 2022 la 3:24 
The above script has a range you can change, its the 10 next to "man" in the nearEntities section, this can be lowered or raised to your preference, also, the damage is set low for testing. you can up this from 0.2 if you choose
Nice, thank you for fixing it!
< >
Se afișează 1-5 din 5 comentarii
Per pagină: 1530 50