In teaming up with my wife, during times when it was just us, I'd find myself wanting to figure out an easy way to aggro the nearby zed and/or come up with a way to try and pull aggro off of her so aggro could be mitigated a bit better while she flays the lot of them (that are then chasing me) with her M249 SAW. So, I came up with an idea that I hope is a balanced one that takes on a tactic I feel would be a realistic one given the apocalyptic setting: Slice yourself with a knife (to create a hopefully attractive-to-zed bleeding wound) and start yelling at the top of your lungs.
"Taunt Nearby Zombies" is the end product of a couple of days of work and tweaking to hopefully achieve that. When coming up to a live zombie, when the player gets within 35 meters of the target, a red-coloured "Taunt Nearby Zombies (Bleed and Scream)" option will appear in the scroll-bar list. From there, it's pretty simple. The script will induce a bleeding wound of minor to moderate blood loss with your player, depending upon gender (as determined by the outfit "skin" that is worn, unfortunately), also producing screaming that repeats a few times in a couple of second intervals. There is a small random chance of the player accidentally cutting his or herself severely which will produce twice the aggro spamming, plus multiply the point-blank area of radius out, as well as yield a much greater degree of bleeding.
This add-on modifies fn_selfActions.sqf, compiles.sqf (to point to an extracted fn_selfActions.sqf file), and adds a new script file called player_tauntnearbyzed.sqf.
There are a few options that are configurable in the script towards the very top for admins directly under the "// Configurable variables" section.
Check this thread for any updates or tweaks I may do. I am also taking suggestions via PM on any modifications I should perform.
On to the installation.
Step 1) Modify fn_selfActions.sqf
Note: For those unfamiliar with modifying fn_selfActions.sqf to add more options to the scrollbar, please PM me.
On or around line 42, there will be a section of code about 10 lines or so long starting with the comment, "//Grab Flare". Directly below that section, add this (which enables our Taunt option to appear):
Step 2) Download the file player_tauntnearbyzed.sqf here -> http://www.mediafire.com/?dkb2uluc0b9its8
Note: If for some reason there's a problem with the Mediafire link, check the next post for a complete copy of the player_tauntnearbyzed.sqf file that can be re-created.
Place your newly-downloaded player_tauntnearbyzed.sqf file into a folder of your choosing (by default, I use "fixes" as reflected in the two options listed above in the code section for file fn_selfActions.sqf) within the folder \dayzinstallfolder\MPMissions\dayz_1.Chernarus. Several add-ons use the subfolders "fixes", "custom", and "scripts". Please use accordingly.
Need help? Visit the help thread here: http://opendayz.net/threads/bdcs-script-addon-help-thread.13295/
That should be it! Pretty simple.
"Taunt Nearby Zombies" is the end product of a couple of days of work and tweaking to hopefully achieve that. When coming up to a live zombie, when the player gets within 35 meters of the target, a red-coloured "Taunt Nearby Zombies (Bleed and Scream)" option will appear in the scroll-bar list. From there, it's pretty simple. The script will induce a bleeding wound of minor to moderate blood loss with your player, depending upon gender (as determined by the outfit "skin" that is worn, unfortunately), also producing screaming that repeats a few times in a couple of second intervals. There is a small random chance of the player accidentally cutting his or herself severely which will produce twice the aggro spamming, plus multiply the point-blank area of radius out, as well as yield a much greater degree of bleeding.
This add-on modifies fn_selfActions.sqf, compiles.sqf (to point to an extracted fn_selfActions.sqf file), and adds a new script file called player_tauntnearbyzed.sqf.
There are a few options that are configurable in the script towards the very top for admins directly under the "// Configurable variables" section.
Check this thread for any updates or tweaks I may do. I am also taking suggestions via PM on any modifications I should perform.
On to the installation.
Step 1) Modify fn_selfActions.sqf
Note: For those unfamiliar with modifying fn_selfActions.sqf to add more options to the scrollbar, please PM me.
On or around line 42, there will be a section of code about 10 lines or so long starting with the comment, "//Grab Flare". Directly below that section, add this (which enables our Taunt option to appear):
Code:
// 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 {
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;
};
Step 2) Download the file player_tauntnearbyzed.sqf here -> http://www.mediafire.com/?dkb2uluc0b9its8
Note: If for some reason there's a problem with the Mediafire link, check the next post for a complete copy of the player_tauntnearbyzed.sqf file that can be re-created.
Place your newly-downloaded player_tauntnearbyzed.sqf file into a folder of your choosing (by default, I use "fixes" as reflected in the two options listed above in the code section for file fn_selfActions.sqf) within the folder \dayzinstallfolder\MPMissions\dayz_1.Chernarus. Several add-ons use the subfolders "fixes", "custom", and "scripts". Please use accordingly.
Need help? Visit the help thread here: http://opendayz.net/threads/bdcs-script-addon-help-thread.13295/
That should be it! Pretty simple.