HollowAddiction Posted June 21, 2014 Author Report Share Posted June 21, 2014 bump Link to comment Share on other sites More sharing options...
MattL Posted June 22, 2014 Report Share Posted June 22, 2014 Any chance of a 'bandit' perks script?? Going to be updating hero perks soon, to make a bandit perks script just copy over hero perks and change the humanity levels and items and vehicles they receive. Edit: I've added a whole other level above 30k, set at 80k, where you get a 350z and the box (sorry, I run an overpoch server.) you can obviously edit this to your needs. Also adding in a better weapon rotation system that randomly selects a weapon and gives you appropriate magazines for it. Link to comment Share on other sites More sharing options...
MattL Posted June 22, 2014 Report Share Posted June 22, 2014 Updated. Changelog here : http://opendayz.net/threads/release-hero-perks-epoch-pre-configured.19901/ Link to comment Share on other sites More sharing options...
MattL Posted June 25, 2014 Report Share Posted June 25, 2014 bump Link to comment Share on other sites More sharing options...
Eddizzle909 Posted July 8, 2014 Report Share Posted July 8, 2014 Going to be updating hero perks soon, to make a bandit perks script just copy over hero perks and change the humanity levels and items and vehicles they receive. Edit: I've added a whole other level above 30k, set at 80k, where you get a 350z and the box (sorry, I run an overpoch server.) you can obviously edit this to your needs. Also adding in a better weapon rotation system that randomly selects a weapon and gives you appropriate magazines for it. i feel what ur saying sounds awesome... ill give a shot at changing the humanity levels reason i want the same thing for negative humanity my overpoch server is demanding for the samething as bandits lol in the Init.sqf would be // Bandit Perk code start - added by Bio banditspawn = compile preprocessFileLineNumbers "scripts\banditperks.sqf"; waitUntil {!isNil ("PVDZE_plr_LoginRecord")}; if (dayzPlayerLogin2 select 2) then { player spawn banditspawn; }; this is what i came up with for the i pretty much went through and changed where it said hero to bandit on the code above and below... does it look correct to u? unfortunately my server is populated and cant test right now //Written by Matt L http://opendayz.net/members/matt-l.7134/ // 5/25/2014 //Feel free to edit to your liking, just give credit where it is due! //Thanks to HollowAddiction http://www.craftdoge.com for Idea & Assistance //Thanks to CommanderRetra for fix with array selection _isBandit = (player getVariable ["humanity",0] < -5000); _isAwesomeBandit = ((player getVariable ["humanity",0] < -10000) && (player getVariable ["humanity",0] > -19999)); _isEpicBandit = ((player getVariable ["humanity",0] < -20000) && (player getVariable ["humanity",0] > -29999)); _isPerfectBandit = (player getVariable ["humanity",0] < -30000); _mags = ['20Rnd_762x51_DMR','30Rnd_545x39_AK','30Rnd_556x45_Stanag','ItemMorphine','ItemBloodbag','ItemAntibiotic','ItemPainkiller','FoodSteakCooked','ItemSodaCoke']; _weapons = ['ItemEtool','ItemKnife','ItemMatchbox','ItemGPS','ItemFishingPole','M4A1','M40A3','AKS_74_U']; _bp = ['DZ_LargeGunBag_EP1','DZ_Patrol_Pack_EP1','DZ_ALICE_Pack_EP1','DZ_British_ACU'] call BIS_fnc_selectRandom; _magss = ['20Rnd_762x51_DMR','30Rnd_545x39_AK','30Rnd_556x45_Stanag','ItemSodaPepsi','ItemTent','FoodCanCorn','FoodNutmix','ItemSodaClays','FoodCanSardines']; _weaponss = ['ItemEtool','ItemKnife','ItemMatchbox','ItemGPS','ItemFishingPole','M16a2','DMR','AK_107_pso']; _bpp = ['DZ_Assault_Pack_EP1','DZ_TK_Assault_Pack_EP1','DZ_GunBag_EP1','DZ_CompactPack_EP1'] call BIS_fnc_selectRandom; _maggs = ['20Rnd_762x51_DMR','30Rnd_545x39_AK','30Rnd_556x45_Stanag','ItemEpinephrine','FoodCanBakedBeans','FoodCanFrankBeans','FoodCanPasta','ItemSodaDrwaste','ItemSodaSmasht']; _weaponns = ['ItemEtool','ItemKnife','ItemMatchbox','ItemGPS','ItemFishingPole','M16a4_acg','M24','AK_74']; _bbp = ['DZ_CivilBackpack_EP1','DZ_Backpack_EP1','DZ_TerminalPack_EP1'] call BIS_fnc_selectRandom; _skin = ['Skin_Sniper1_DZ','Skin_Camo1_DZ','Skin_Survivor2_DZ','Skin_Soldier1_DZ','Skin_Rocket_DZ','Skin_RU_Policeman_DZ','Skin_Functionary1_EP1_DZ','Skin_GUE_Commander_DZ','Skin_Ins_Soldier_GL_DZ','Skin_Haris_Press_EP1_DZ','Skin_Pilot_EP1_DZ','Skin_Priest_DZ','Skin_Rocker1_DZ','Skin_Bandit1_DZ','Skin_Bandit2_DZ'] call BIS_fnc_selectRandom; _skinn = ['Skin_Drake_Light_DZ','Skin_Soldier_Bodyguard_AA12_PMC_DZ','Skin_FR_OHara_DZ','Skin_FR_Rodriguez_DZ','Skin_CZ_Soldier_Sniper_EP1_DZ','Skin_Graves_Light_DZ','Skin_Soldier_Sniper_PMC_DZ','Skin_Soldier_TL_PMC_DZ','Skin_TK_Special_Forces_MG_EP1_DZ','Skin_TK_Soldier_Sniper_EP1_DZ','Skin_TK_Commander_EP1_DZ','Skin_INS_Lopotev_DZ','Skin_INS_Soldier_AR_DZ','Skin_INS_Soldier_CO_DZ','Skin_INS_Bardak_DZ'] call BIS_fnc_selectRandom; _skiin = ['Skin_GUE_Soldier_MG_DZ','Skin_GUE_Soldier_Sniper_DZ','Skin_BanditW1_DZ','Skin_BanditW2_DZ','Skin_SurvivorW3_DZ','Skin_SurvivorW2_DZ','Skin_SurvivorWpink_DZ','Skin_SurvivorWsequisha_DZ','Skin_SurvivorWsequishaD_DZ','Skin_SurvivorWcombat_DZ','Skin_SurvivorWdesert_DZ','Skin_SurvivorWurban_DZ','Skin_TK_INS_Warlord_EP1_DZ','Skin_TK_INS_Soldier_EP1_DZ','Skin_CZ_Special_Forces_GL_DES_EP1_DZ'] call BIS_fnc_selectRandom; _cratemags = [_mags,_magss,_maggs] call BIS_fnc_selectRandom; _crateweps = [_weapons,_weaponss,_weaponns] call BIS_fnc_selectRandom; _cratebp = [_bp,_bpp,_bbp] call BIS_fnc_selectRandom; _skinplayer = [_skin,_skinn,_skiin] call BIS_fnc_selectRandom; if (_isbandit) then { //_bandit = [[2840.74,10159.4,0.002], [3897.95,8757.93,0.001], [13307.1,13091,0.001], [10368.3,9905.98,0.001], [4439.28,8841.53,0.001], [12241.8,11064.6,0.002], [3878.13,10903.7,0.001], [4637.62,6950.64,0.002], [10209.2,9634.9,0.002], [7968.87,11433.7,0.002], [4759.99,12505.6,0.001], [11206.6,12072.5,0.002], [7229.56,7824.12,0.002], [7008.05,7621.04,0.001], [10490,9819.16,0.001], [6136.16,7376.88,0.001], [8298.22,6731.11,0.002], [10915.4,8230.39,0.001], [10607.9,12362,0.002], [6470.61,6305.54,0.002]] call BIS_fnc_selectRandom; player setPosATL _Bandit; player addMagazine _skinplayer; systemChat ("You're a bandit!"); if (_isAwesomeBandit) then { _object = 'M1030' createVehicle (position player); _object setVariable ["Mission",1,true]; _uniqueid = str(round(random 999999)); _object setVariable ["ObjectID", _uniqueid, true]; _object setVariable ["ObjectUID", _uniqueid, true]; clearMagazineCargo _object; clearWeaponCargo _object; titleText ["Time To Fuck Someone's Day Up!! Car will not save after restart!", "PLAIN DOWN", 3]; }; if (_isEpicBandit) then { _object = 'SUV_Red' createVehicle (position player); _object setVariable ["Mission",1,true]; _uniqueid = str(round(random 999999)); _object setVariable ["ObjectID", _uniqueid, true]; _object setVariable ["ObjectUID", _uniqueid, true]; clearMagazineCargo _object; clearWeaponCargo _object; titleText ["Time To Fuck Someone's Day Up!! Car will not save after restart!", "PLAIN DOWN", 3]; }; if (_isPerfectBandit) then { _object = 'CSJ_GyroC' createVehicle (position player); _object setVariable ["Mission",1,true]; _uniqueid = str(round(random 999999)); _object setVariable ["ObjectID", _uniqueid, true]; _object setVariable ["ObjectUID", _uniqueid, true]; clearMagazineCargo _object; clearWeaponCargo _object; _pos = getPosATL player; _box = 'Foodbox0' createVehicle _pos; _box setPosATL _pos; _box setVariable ["permaLoot",true]; _box setVariable ["Mission",1,true]; clearWeaponCargoGlobal _box; clearmagazinecargoGlobal _box; {_box addWeaponCargoGlobal [_x, 1];} forEach _crateweps; {_box addMagazineCargoGlobal [_x, 3];} forEach _cratemags; _box addBackpackCargo [_cratebp, 1]; titleText ["Time To Fuck Someone's Day Up!! Car will not save after restart! Box will be deleted in 4 minutes!", "PLAIN DOWN", 3]; sleep 240; deleteVehicle _box; }; }; Link to comment Share on other sites More sharing options...
MattL Posted July 8, 2014 Report Share Posted July 8, 2014 i feel what ur saying sounds awesome... ill give a shot at changing the humanity levels reason i want the same thing for negative humanity my overpoch server is demanding for the samething as bandits lol in the Init.sqf would be // Bandit Perk code start - added by Bio banditspawn = compile preprocessFileLineNumbers "scripts\banditperk.sqf"; waitUntil {!isNil ("PVDZE_plr_LoginRecord")}; if (dayzPlayerLogin2 select 2) then { player spawn banditspawn; }; this is what i came up with for the i pretty much went through and changed where it said hero to bandit on the code above and below... does it look correct to u? unfortunately my server is populated and cant test right now //Written by Matt L http://opendayz.net/members/matt-l.7134/ // 5/25/2014 //Feel free to edit to your liking, just give credit where it is due! //Thanks to HollowAddiction http://www.craftdoge.com for Idea & Assistance //Thanks to CommanderRetra for fix with array selection _isBandit = (player getVariable ["humanity",0] > -5000); _isAwesomeBandit = ((player getVariable ["humanity",0] > -10000) && (player getVariable ["humanity",0] < -19999)); _isEpicBandit = ((player getVariable ["humanity",0] > -20000) && (player getVariable ["humanity",0] < -29999)); _isPerfectBandit = (player getVariable ["humanity",0] > -30000); _mags = ['20Rnd_762x51_DMR','30Rnd_545x39_AK','30Rnd_556x45_Stanag','ItemMorphine','ItemBloodbag','ItemAntibiotic','ItemPainkiller','FoodSteakCooked','ItemSodaCoke']; _weapons = ['ItemEtool','ItemKnife','ItemMatchbox','ItemGPS','ItemFishingPole','M4A1','M40A3','AKS_74_U']; _bp = ['DZ_LargeGunBag_EP1','DZ_Patrol_Pack_EP1','DZ_ALICE_Pack_EP1','DZ_British_ACU'] call BIS_fnc_selectRandom; _magss = ['20Rnd_762x51_DMR','30Rnd_545x39_AK','30Rnd_556x45_Stanag','ItemSodaPepsi','ItemTent','FoodCanCorn','FoodNutmix','ItemSodaClays','FoodCanSardines']; _weaponss = ['ItemEtool','ItemKnife','ItemMatchbox','ItemGPS','ItemFishingPole','M16a2','DMR','AK_107_pso']; _bpp = ['DZ_Assault_Pack_EP1','DZ_TK_Assault_Pack_EP1','DZ_GunBag_EP1','DZ_CompactPack_EP1'] call BIS_fnc_selectRandom; _maggs = ['20Rnd_762x51_DMR','30Rnd_545x39_AK','30Rnd_556x45_Stanag','ItemEpinephrine','FoodCanBakedBeans','FoodCanFrankBeans','FoodCanPasta','ItemSodaDrwaste','ItemSodaSmasht']; _weaponns = ['ItemEtool','ItemKnife','ItemMatchbox','ItemGPS','ItemFishingPole','M16a4_acg','M24','AK_74']; _bbp = ['DZ_CivilBackpack_EP1','DZ_Backpack_EP1','DZ_TerminalPack_EP1'] call BIS_fnc_selectRandom; _skin = ['Skin_Sniper1_DZ','Skin_Camo1_DZ','Skin_Survivor2_DZ','Skin_Soldier1_DZ','Skin_Rocket_DZ','Skin_RU_Policeman_DZ','Skin_Functionary1_EP1_DZ','Skin_GUE_Commander_DZ','Skin_Ins_Soldier_GL_DZ','Skin_Haris_Press_EP1_DZ','Skin_Pilot_EP1_DZ','Skin_Priest_DZ','Skin_Rocker1_DZ','Skin_Bandit1_DZ','Skin_Bandit2_DZ'] call BIS_fnc_selectRandom; _skinn = ['Skin_Drake_Light_DZ','Skin_Soldier_Bodyguard_AA12_PMC_DZ','Skin_FR_OHara_DZ','Skin_FR_Rodriguez_DZ','Skin_CZ_Soldier_Sniper_EP1_DZ','Skin_Graves_Light_DZ','Skin_Soldier_Sniper_PMC_DZ','Skin_Soldier_TL_PMC_DZ','Skin_TK_Special_Forces_MG_EP1_DZ','Skin_TK_Soldier_Sniper_EP1_DZ','Skin_TK_Commander_EP1_DZ','Skin_INS_Lopotev_DZ','Skin_INS_Soldier_AR_DZ','Skin_INS_Soldier_CO_DZ','Skin_INS_Bardak_DZ'] call BIS_fnc_selectRandom; _skiin = ['Skin_GUE_Soldier_MG_DZ','Skin_GUE_Soldier_Sniper_DZ','Skin_BanditW1_DZ','Skin_BanditW2_DZ','Skin_SurvivorW3_DZ','Skin_SurvivorW2_DZ','Skin_SurvivorWpink_DZ','Skin_SurvivorWsequisha_DZ','Skin_SurvivorWsequishaD_DZ','Skin_SurvivorWcombat_DZ','Skin_SurvivorWdesert_DZ','Skin_SurvivorWurban_DZ','Skin_TK_INS_Warlord_EP1_DZ','Skin_TK_INS_Soldier_EP1_DZ','Skin_CZ_Special_Forces_GL_DES_EP1_DZ'] call BIS_fnc_selectRandom; _cratemags = [_mags,_magss,_maggs] call BIS_fnc_selectRandom; _crateweps = [_weapons,_weaponss,_weaponns] call BIS_fnc_selectRandom; _cratebp = [_bp,_bpp,_bbp] call BIS_fnc_selectRandom; _skinplayer = [_skin,_skinn,_skiin] call BIS_fnc_selectRandom; if (_isbandit) then { //_bandit = [[2840.74,10159.4,0.002], [3897.95,8757.93,0.001], [13307.1,13091,0.001], [10368.3,9905.98,0.001], [4439.28,8841.53,0.001], [12241.8,11064.6,0.002], [3878.13,10903.7,0.001], [4637.62,6950.64,0.002], [10209.2,9634.9,0.002], [7968.87,11433.7,0.002], [4759.99,12505.6,0.001], [11206.6,12072.5,0.002], [7229.56,7824.12,0.002], [7008.05,7621.04,0.001], [10490,9819.16,0.001], [6136.16,7376.88,0.001], [8298.22,6731.11,0.002], [10915.4,8230.39,0.001], [10607.9,12362,0.002], [6470.61,6305.54,0.002]] call BIS_fnc_selectRandom; player setPosATL _Bandit; player addMagazine _skinplayer; systemChat ("You're a bandit!"); if (_isAwesomeBandit) then { _object = 'M1030' createVehicle (position player); _object setVariable ["Mission",1,true]; _uniqueid = str(round(random 999999)); _object setVariable ["ObjectID", _uniqueid, true]; _object setVariable ["ObjectUID", _uniqueid, true]; clearMagazineCargo _object; clearWeaponCargo _object; titleText ["Time To Fuck Someone's Day Up!! Car will not save after restart!", "PLAIN DOWN", 3]; }; if (_isEpicBandit) then { _object = 'SUV_Pink' createVehicle (position player); _object setVariable ["Mission",1,true]; _uniqueid = str(round(random 999999)); _object setVariable ["ObjectID", _uniqueid, true]; _object setVariable ["ObjectUID", _uniqueid, true]; clearMagazineCargo _object; clearWeaponCargo _object; titleText ["Time To Fuck Someone's Day Up!! Car will not save after restart!", "PLAIN DOWN", 3]; }; if (_isPerfectBandit) then { _object = 'CSJ_GyroC' createVehicle (position player); _object setVariable ["Mission",1,true]; _uniqueid = str(round(random 999999)); _object setVariable ["ObjectID", _uniqueid, true]; _object setVariable ["ObjectUID", _uniqueid, true]; clearMagazineCargo _object; clearWeaponCargo _object; _pos = getPosATL player; _box = 'Foodbox0' createVehicle _pos; _box setPosATL _pos; _box setVariable ["permaLoot",true]; _box setVariable ["Mission",1,true]; clearWeaponCargoGlobal _box; clearmagazinecargoGlobal _box; {_box addWeaponCargoGlobal [_x, 1];} forEach _crateweps; {_box addMagazineCargoGlobal [_x, 3];} forEach _cratemags; _box addBackpackCargo [_cratebp, 1]; titleText ["Time To Fuck Someone's Day Up!! Car will not save after restart! Box will be deleted in 4 minutes!", "PLAIN DOWN", 3]; sleep 240; deleteVehicle _box; }; }; looks fine to me, though you should download the 'newer' version because I did a small performance fix. It's only noticeable if there are loads of players online though. Removed the huge sleep to delete the box and instead did a distance check. Link to comment Share on other sites More sharing options...
Eddizzle909 Posted July 8, 2014 Report Share Posted July 8, 2014 awesome... my final init looks like this http://pastebin.com/u8RZFZQb i want to test this banditperks first that way bandits got something basic they spawn with and then if i can get that working ill upload the newer version u posted in opendayz Edit: first attempt didnt work... but its because the typo in the init u have it named herperk.. and when i made the banditperk i named it plural banditperks.. and wrote it singular in the init so it didnt find the file in the RPT lol but got that fixed... also had to have the < and > for the humanity ranges to conform to the negative values lol but got it working thank you gentlemen appreciate the help also edited the code in MY post above to show my final edits to my file thanks again NOOB question.... also noticed that in other people's post they have a lil button called "spoiler" and when u click it it opens the code box or picture they have in their post in order to condense their post how do i go about doing that for my post?? Link to comment Share on other sites More sharing options...
Chainsaw Squirrel Posted December 31, 2014 Report Share Posted December 31, 2014 Pastebin removed ?? that sux link is doa 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