Arma 3
WORM DEMO
DiaZuuu 2020 年 7 月 30 日 下午 11:25
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];
最後修改者:DiaZuuu; 2020 年 8 月 2 日 上午 3:45
< >
目前顯示第 1-5 則留言,共 5
Ritalin 2021 年 1 月 16 日 下午 11: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 2021 年 1 月 17 日 上午 6:12 
Thanks for finding this bug, unfortunately I don't know how to fix it
Louis 2022 年 4 月 8 日 上午 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 2022 年 4 月 8 日 上午 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
DiaZuuu 2022 年 4 月 8 日 上午 7:11 
Nice, thank you for fixing it!
< >
目前顯示第 1-5 則留言,共 5
每頁顯示: 1530 50