Hero Perks
Version 1
Everyone knows it's harder to play the hero than the bandit, so why not give them some perks? What this does is runs a humanity check then if they have above 5000 humanity they spawn up north with a random skin in their inventory. Each perk is set up at 5k, 10k, 20k, and 30k, but can be easily changed. Each perk after 5k also gets a random spawn and random skin. At 10k you are given a motor bike, 20k gets you an SUV, and 30k gets you a mozzie with a box full of 3 randomly selected weapons, randomly selected item sets, and a randomly selected backpack.
To Install:
You will need PBO manager and Notepad ++
Version 1
Everyone knows it's harder to play the hero than the bandit, so why not give them some perks? What this does is runs a humanity check then if they have above 5000 humanity they spawn up north with a random skin in their inventory. Each perk is set up at 5k, 10k, 20k, and 30k, but can be easily changed. Each perk after 5k also gets a random spawn and random skin. At 10k you are given a motor bike, 20k gets you an SUV, and 30k gets you a mozzie with a box full of 3 randomly selected weapons, randomly selected item sets, and a randomly selected backpack.
To Install:
You will need PBO manager and Notepad ++
- This will conflict with any antihack, battle eye, and server cleanup routines. To fix the antihack (if using infistar) go into ahconfig and turn off the hack box check. I personally don't use battle eye so I can't help with writing exceptions. For most of you the server cleanup routine will be in the server_cleanup.fsm which is located in the dayz_server.pbo in the system folder, Ctrl + F for hacker and find the line that start with
Code:
(vehicle _x != _x
Code:if(vehicle _x != _x && (vehicle _x getVariable [""Mission"",0] != 1) && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"") then {" \n
Code:if(vehicle _x != _x && (vehicle _x getVariable ["Mission",0] != 1) && !(vehicle _x in PVDZE_serverObjectMonitor) && (isPlayer _x) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {
- Next, go into your dayz_server\compiles folder and find server_playerSetup.sqf, (note this will be different for most mods, but this is what it is for Epoch) locate the line that looks like
Code:
dayzPlayerLogin2 = [_worldspace,_state];
Code:dayzPlayerLogin2 = [_worldspace,_state,_randomSpot];
- Next open your init.sqf in your dayz_mission.pbo and at the bottom add
Code://hero spawn herospawn = compile preprocessFileLineNumbers "CHANGE\FILE\PATH\HERE\heroperk.sqf"; waitUntil {!isNil ("PVDZE_plr_LoginRecord")}; if (dayzPlayerLogin2 select 2) then { player spawn herospawn; };
- Download and edit to your liking
HollowAddiction from www.CraftDoge.com for the idea and testing
CommanderRetra for helping with random skin and backpack assortment (bis_fnc_selectrandom).
Ebay for server cleanup example
Help Thread
At some point in the future I may release a version with added bandit negative effects like a small chance to spawn infected, or randomly spawning in the middle of nowhere or losing a tiny bit of blood every couple seconds for a couple minutes etc.
Last edited: