HollowAddiction Posted May 27, 2014 Report Share Posted May 27, 2014 Matt L's Hero Perks Version 1Everyone 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 (Text): (vehicle _x != _x and change that line to resemble something like Code (Text): if(vehicle _x != _x && (vehicle _x getVariable [""Mission"",0] != 1) && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"") then {" \n and if you're using Epoch this routine is in the server_functions.sqf, find it by searching for hacker once more then replace the vehicle line with Code (Text): 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 (Text): dayzPlayerLogin2 = [_worldspace,_state]; and replace it with Code (Text): dayzPlayerLogin2 = [_worldspace,_state,_randomSpot]; and repack your dayz_server.pbo Next open your init.sqf in your dayz_mission.pbo and at the bottom add Code (Text): //hero spawn herospawn = compile preprocessFileLineNumbers "CHANGE\FILE\PATH\HERE\heroperk.sqf"; waitUntil {!isNil ("PVDZE_plr_LoginRecord")}; if (dayzPlayerLogin2 select 2) then { player spawn herospawn; }; obviously adjust the file path to where you placed heroperk.sqf Download and edit to your liking Credits - Matt L http://opendayz.net/members/matt-l.7134/ for CodingHollowAddiction for the idea and testingCommanderRetra for helping with random skin and backpack assortment (bis_fnc_selectrandom).Ebay for server cleanup example DownloadHelp 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. MattL, Eddizzle909 and HollowAddiction 3 Link to comment Share on other sites More sharing options...
Creep Posted May 27, 2014 Report Share Posted May 27, 2014 There is a little thing in your code that needs to be changed _cratemags = [_mags,_magss,_maggs] call BIS_fnc_selectRandom; _crateweps = [_weapons,_weaponss,_weaponns] call BIS_fnc_selectRandom; wont provide to get the needed ammo for the given weapon and wouldnt make sense thatway Link to comment Share on other sites More sharing options...
HollowAddiction Posted May 27, 2014 Author Report Share Posted May 27, 2014 Strange, as its been tested and is working, We'll look into it. HollowAddiction 1 Link to comment Share on other sites More sharing options...
RimBlock Posted May 27, 2014 Report Share Posted May 27, 2014 I like the idea. Being a hero, especially solo, can be tricky. Maybe a slight change to give a small care package at the heros plot pole at reaching the hero perk stages. Maybe a weapon not available at the traders and some ammo (5 mags or something). Saying that, another alternative may be to provide different discount levels for the heros with the hero trader (could do the same with the bandit trader for bandits too) :) . Of course there is little point in giving a 1 Gold bar discount with the traders if gold is not so hard to get anyway. Thanks for the mod and nice idea. Link to comment Share on other sites More sharing options...
Genesis Posted May 27, 2014 Report Share Posted May 27, 2014 what would happen if you have custom spawn loadouts set up? Link to comment Share on other sites More sharing options...
HollowAddiction Posted May 27, 2014 Author Report Share Posted May 27, 2014 what would happen if you have custom spawn loadouts set up? It will work in conjunction, infact im also running Matt L's Humanity Based loadouts along side this without any interference on my Epoch server Link to comment Share on other sites More sharing options...
HollowAddiction Posted May 27, 2014 Author Report Share Posted May 27, 2014 I like the idea. Being a hero, especially solo, can be tricky. Maybe a slight change to give a small care package at the heros plot pole at reaching the hero perk stages. Maybe a weapon not available at the traders and some ammo (5 mags or something). Saying that, another alternative may be to provide different discount levels for the heros with the hero trader (could do the same with the bandit trader for bandits too) :) . Of course there is little point in giving a 1 Gold bar discount with the traders if gold is not so hard to get anyway. Thanks for the mod and nice idea. It is customizable, changing items given would be easy Link to comment Share on other sites More sharing options...
MattL Posted May 27, 2014 Report Share Posted May 27, 2014 There is a little thing in your code that needs to be changed _cratemags = [_mags,_magss,_maggs] call BIS_fnc_selectRandom; _crateweps = [_weapons,_weaponss,_weaponns] call BIS_fnc_selectRandom; wont provide to get the needed ammo for the given weapon and wouldnt make sense thatway If you look at the arrays we used weapons that have the same ammo for each array ie in one weapons array it gives M4 dmr and AK or some thing, so in each of the mags arrays it gives 30rnd nato, 30rnd ak, and a dmr mag Link to comment Share on other sites More sharing options...
Genesis Posted May 27, 2014 Report Share Posted May 27, 2014 I know hollowaddiction said he wouldn't be helping anyone with battleeye but, I was wondering if anyone could help me with fixing this? 27.05.2014 09:28:58: Genesis - #2 "FoodBox0" 7:66 [7004,7625,293] It's from my createvehicle.log Link to comment Share on other sites More sharing options...
HollowAddiction Posted May 27, 2014 Author Report Share Posted May 27, 2014 I know hollowaddiction said he wouldn't be helping anyone with battleeye but, I was wondering if anyone could help me with fixing this? It's from my createvehicle.log easy fix, find line in your createvehicle.txt and change 5 to 1 Link to comment Share on other sites More sharing options...
Creep Posted May 27, 2014 Report Share Posted May 27, 2014 If you look at the arrays we used weapons that have the same ammo for each array ie in one weapons array it gives M4 dmr and AK or some thing, so in each of the mags arrays it gives 30rnd nato, 30rnd ak, and a dmr mag ahh k didnt noticed that, but wouldnt it be easier to do arrays that are weaponsspecific? Link to comment Share on other sites More sharing options...
MattL Posted May 27, 2014 Report Share Posted May 27, 2014 ahh k didnt noticed that, but wouldnt it be easier to do arrays that are weaponsspecific? I did it the way I did so each player would get 3 standardized weapons to choose from, along with ammo for each weapon Link to comment Share on other sites More sharing options...
BetterDeadThanZed Posted May 29, 2014 Report Share Posted May 29, 2014 Very cool mod. I'll be testing it on my test server next week. Just a question: Instead of spawning items in a box for players, is it possible to have these hero players get a menu that they can select which items they want from a list? If you give them a box, they could store extra weapons in their backpack and sell them or give them away. I think a scroll menu where they select what they want would be pretty cool. Link to comment Share on other sites More sharing options...
MattL Posted May 29, 2014 Report Share Posted May 29, 2014 Very cool mod. I'll be testing it on my test server next week. Just a question: Instead of spawning items in a box for players, is it possible to have these hero players get a menu that they can select which items they want from a list? If you give them a box, they could store extra weapons in their backpack and sell them or give them away. I think a scroll menu where they select what they want would be pretty cool. You can, if you want to implement something like this I would recommend looking at ebays spawn / class selection script and combining the two :) HollowAddiction 1 Link to comment Share on other sites More sharing options...
HollowAddiction Posted June 11, 2014 Author Report Share Posted June 11, 2014 bump Link to comment Share on other sites More sharing options...
insertcoins Posted June 11, 2014 Report Share Posted June 11, 2014 It will work in conjunction, infact im also running Matt L's Humanity Based loadouts along side this without any interference on my Epoch server question. I had it working, kinda. only I got a shitload of rtp spam when using it and it only gave loadout 1.sqf. This familliar for you? Link to comment Share on other sites More sharing options...
HollowAddiction Posted June 11, 2014 Author Report Share Posted June 11, 2014 it only gave loadout 1.sqf. This familliar for you? Hmm interesting, On my server I am only running one loadout for each anyway. Ill see if i can reproduce that on my test server tonight. What sort of errors are in the report? Link to comment Share on other sites More sharing options...
insertcoins Posted June 11, 2014 Report Share Posted June 11, 2014 unable to add bullet bandage in muzzle or something like that. Can't open opendayz atm, but I'm zeehond23 there and posten what problems I had Link to comment Share on other sites More sharing options...
HollowAddiction Posted June 11, 2014 Author Report Share Posted June 11, 2014 unable to add bullet bandage in muzzle or something like that. Can't open opendayz atm, but I'm zeehond23 there and posten what problems I had ok, ill look into it tonight and inform Matt L if he hasn't already seen it Link to comment Share on other sites More sharing options...
insertcoins Posted June 11, 2014 Report Share Posted June 11, 2014 ok, ill look into it tonight and inform Matt L if he hasn't already seen it He has, couldn't make heads or tails of it :p Link to comment Share on other sites More sharing options...
Halvhjearne Posted June 11, 2014 Report Share Posted June 11, 2014 unable to add bullet bandage in muzzle this usually caused by ai not having the right ammo, its rarely something a player has anything to do with ... do you allow ied's on your server? Link to comment Share on other sites More sharing options...
HollowAddiction Posted June 11, 2014 Author Report Share Posted June 11, 2014 He has, couldn't make heads or tails of it :P Have you had his HumanityLoadouts working on their own prior? Link to comment Share on other sites More sharing options...
Eddizzle909 Posted June 13, 2014 Report Share Posted June 13, 2014 Any chance of a 'bandit' perks script?? Link to comment Share on other sites More sharing options...
HollowAddiction Posted June 13, 2014 Author Report Share Posted June 13, 2014 Any chance of a 'bandit' perks script?? Being worked on, expect a release soon Link to comment Share on other sites More sharing options...
Eddizzle909 Posted June 13, 2014 Report Share Posted June 13, 2014 ty sir Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now