Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
// Taunt Nearby Zombies if player has hunting knife and has a "live" zombie targeted (35 or less distance to player)
if ((cursorTarget isKindOf "zZombie_base") and (alive cursorTarget) and !_inVehicle and _canDo and (player distance CursorTarget < 36)) then {
//_pos = getPosATL player;
//_zombies = _pos nearEntities ["zZombie_Base", 35];
//_zcount = count _zombies;
//if ((s_player_tauntzed < 0) and (_zcount > 3)) then {
if (s_player_tauntzed < 0) then {
if (!_hasKnife) then {
s_player_tauntzed = player addAction [("<t color=""#A0A0A0"">" + ("Taunt nearby zombies (Bleed and Scream)") + "</t>"), "fixes\player_tauntnearbyzed.sqf",[], 1, false, true, "", ""];
} else {
s_player_tauntzed = player addAction [("<t color=""#FF3232"">" + ("Taunt nearby zombies (Bleed and Scream)") + "</t>"), "fixes\player_tauntnearbyzed.sqf",[], 1, false, true, "", ""];
};
};
} else {
player removeAction s_player_tauntzed;
s_player_tauntzed = -1;
};
if ((cursorTarget isKindOf "zZombie_base") and (alive cursorTarget) and !_inVehicle and _canDo and (player distance CursorTarget < 36))
I've just moved it above all my other scripts and still nothing. A number of people have tested it too so not sure what's wrong. I'm tempted to take out the cursorTarget and alive part, would the script still work? but obviously just allow you to taunt even if there's not a targeted zombie? If I do speed < 0 as well or something.
if ((speed player <= 1) && !_inVehicle && _canDo) then {
if (s_player_tauntzed < 0) then {
s_player_tauntzed = player addaction[("<t color=""#A0A0A0"">" + ("Taunt nearby zombies") +"</t>"),"custom\player_tauntnearbyzed.sqf","",5,false,true,"", ""];
};
} else {
player removeAction s_player_tauntzed;
s_player_tauntzed = -1;
};