[SUPPORT] Matt's Customizable Humanity Loadouts on Respawn

wouldn't it be easier to add:

Code:
_adminUID = ["37314054","58434118","118450566"];

if ((getPlayerUID player) in _adminUID) then {} else {

if ((player getVariable ["humanity",0] < 5000)) then {

To the rdmspwn.sqf ?
 
wouldn't it be easier to add:

Code:
_adminUID = ["37314054","58434118","118450566"];

if ((getPlayerUID player) in _adminUID) then {} else {

if ((player getVariable ["humanity",0] < 5000)) then {

To the rdmspwn.sqf ?
yeah but for some reason my brain always picks the harder ways to do things, so this didn't even cross my mind
 
hey Matt, I've got it working with the additions we talked about. However, it just keeps selecting 1.sqf, and not randomizing it at all. Any idea?

my files: http://s000.tinyupload.com/?file_id=73276853553193684900

Plus, I get a lot of:

Code:
12:17:40 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:17:40 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:17:50 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:17:50 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:18:00 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:18:00 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:18:10 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:18:10 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:18:20 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:18:20 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:18:24 "LinkCleaning: Start cleaning"
12:18:24 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:18:24 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:18:24 "LinkCleaning: Stop cleaning"
12:18:30 "DEBUG FPS  : 50"
12:18:34 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:18:34 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:18:36 "CLEANUP:TOTAL 40 LOOT BAGS"
12:18:44 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:18:44 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:18:54 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:18:54 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:19:04 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:19:04 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:19:14 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:19:14 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:19:25 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:19:25 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:19:35 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:19:35 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:19:36 "CLEANUP:TOTAL 40 LOOT BAGS"
12:19:45 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:19:45 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:19:55 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:19:55 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:20:05 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:20:05 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:20:15 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:20:15 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:20:25 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:20:25 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:20:35 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:20:35 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:20:36 "CLEANUP:TOTAL 40 LOOT BAGS"
12:20:45 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:20:45 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:20:55 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:20:55 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:21:05 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:21:05 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
 
hey Matt, I've got it working with the additions we talked about. However, it just keeps selecting 1.sqf, and not randomizing it at all. Any idea?

my files: http://s000.tinyupload.com/?file_id=73276853553193684900

Plus, I get a lot of:

Code:
12:17:40 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:17:40 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:17:50 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:17:50 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:18:00 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:18:00 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:18:10 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:18:10 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:18:20 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:18:20 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:18:24 "LinkCleaning: Start cleaning"
12:18:24 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:18:24 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:18:24 "LinkCleaning: Stop cleaning"
12:18:30 "DEBUG FPS  : 50"
12:18:34 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:18:34 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:18:36 "CLEANUP:TOTAL 40 LOOT BAGS"
12:18:44 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:18:44 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:18:54 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:18:54 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:19:04 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:19:04 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:19:14 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:19:14 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:19:25 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:19:25 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:19:35 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:19:35 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:19:36 "CLEANUP:TOTAL 40 LOOT BAGS"
12:19:45 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:19:45 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:19:55 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:19:55 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:20:05 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:20:05 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:20:15 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:20:15 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:20:25 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:20:25 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:20:35 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:20:35 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:20:36 "CLEANUP:TOTAL 40 LOOT BAGS"
12:20:45 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:20:45 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:20:55 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:20:55 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
12:21:05 Cannot use magazine 5x_22_LR_17_HMR in muzzle PMC_ied_v4_muzzle
12:21:05 Cannot use magazine 8Rnd_9x18_Makarov in muzzle huntingrifle
someone else had that same issue and I have no clue what it's about! I've poured over his files and can find absolutely nothing! All I can say is double, and triple check your filepaths :(
 
Probably the fact that I added two types of ammo (side arm and rifle ammo) and arma is too retarded to differentiate between the two
 
ok, removed the other weapon so that error is gone. However, still only get #1 (1.sqf) loadout when I die. Any ideas? Paths are all good
 
another thingy, cant add primary weapons if I don't add a sidearm.

(no shottie without a makarov)
No clue man, using the exact same files in testing showed all was good but then on live servers it all bugs right the hell out. I've been trying to figure it out for awhile now but can't get it!
 
another thingy, cant add primary weapons if I don't add a sidearm.

(no shottie without a makarov)
Here's something to try, I havn't tested it myself as i'm busy but you could just put the .sqf's in the array so change it from
Code:
    _pathToScriptsHero1 = "Custom\Addons\HLSpawn\Gear\Hero\One\";

    _scriptArrayHero1 = "1.sqf","2.sqf","3.sqf","4.sqf","5.sqf";

    _randomScriptHero1 = [_scriptArrayHero1] call BIS_fnc_selectRandom;

    [] execVM format["%1%2",_pathToScriptsHero1,_randomScriptHero1];
to
Code:
    _pathToScriptsHero1 = "Custom\Addons\HLSpawn\Gear\Hero\One\";

    _randomScriptHero1 = ["1.sqf","2.sqf","3.sqf","4.sqf","5.sqf"] call BIS_fnc_selectRandom;

    [] execVM format["%1%2",_pathToScriptsHero1,_randomScriptHero1];
 
works great - thank you Matt.
One problem - is it possible when you start as female that gives you a female skin?
Hope you know what I mean - like in Origins Mod :)
 
works great - thank you Matt.
One problem - is it possible when you start as female that gives you a female skin?
Hope you know what I mean - like in Origins Mod :)
It is possible, but I would have no idea how to implement it. I'm sure someone out there has knowledge of how to do it, but unfortunately, I am not one of them :(
 
It is possible, but I would have no idea how to implement it. I'm sure someone out there has knowledge of how to do it, but unfortunately, I am not one of them :(

no problem - I will add an female skin to the gear :) May someone will know this step...anyway...love this script.
 
Just wish I knew more about Overwatch and could help you more

its in the loadout scripts , overwatch dooesnt have dayz_combat defined so
if ( dayz_combat = 1) then {
does nothing and stops there
replace it with
_timeout = player getVariable["combattimeout", 0];
_inCombat = if (_timeout >= diag_tickTime) then { true } else { false };

if (_inCombat) then {

got this out of ebays code http://opendayz.net/threads/release-scroll-menu-pick-your-spawn-point-and-loadout.13149/page-7
 
its in the loadout scripts , overwatch dooesnt have dayz_combat defined so
if ( dayz_combat = 1) then {
does nothing and stops there
replace it with
_timeout = player getVariable["combattimeout", 0];
_inCombat = if (_timeout >= diag_tickTime) then { true } else { false };

if (_inCombat) then {

got this out of ebays code http://opendayz.net/threads/release-scroll-menu-pick-your-spawn-point-and-loadout.13149/page-7
If someone can confirm, will add this to OP in release thread
 
i think it does work before it did nothing now , when spawning you get the message : example [you are hero level ]

but not the gear
any thoughts on why
 
//Written by Matt L http://opendayz.net/members/matt-l.7134/
// 5/12/2014
//Feel free to edit to your liking, just give credit where it is due!
//Thanks to Armbot for the idea && test server
private ["_incombat","_timeout"];

_timeout = player getVariable["combattimeout", 0];
_inCombat = if (_timeout >= diag_tickTime) then { true } else { false };

if (_inCombat) then {
titleText ["WTF.", "PLAIN DOWN", 3];
sleep 5;
titleFadeOut 1;
} else {

player addWeapon 'MakarovSD';
player selectWeapon 'MakarovSD';
player addMagazine '8Rnd_9x18_MakarovSD';
player addMagazine 'ItemMorphine';
player addMagazine 'ItemSodaMdew';
player addMagazine 'FoodCanBakedBeans';
player addMagazine 'ItemPainkiller';
player addMagazine 'ItemBandage';
player addMagazine 'ItemBandage';
player addWeapon 'ItemMap';
player addWeapon 'ItemKnife';
player addWeapon 'ItemEtool';
removeBackpack player;
player addBackPack "CZ_VestPouch_Ep1";
reload player;

cuttext ["you are a hero level 2", "PLAIN DOWN"];

sleep 2;

};
 
//Written by Matt L http://opendayz.net/members/matt-l.7134/
// 5/12/2014
//Feel free to edit to your liking, just give credit where it is due!
//Thanks to Armbot for the idea && test server
private ["_incombat","_timeout"];

_timeout = player getVariable["combattimeout", 0];
_inCombat = if (_timeout >= diag_tickTime) then { true } else { false };

if (_inCombat) then {
titleText ["WTF.", "PLAIN DOWN", 3];
sleep 5;
titleFadeOut 1;
} else {

player addWeapon 'MakarovSD';
player selectWeapon 'MakarovSD';
player addMagazine '8Rnd_9x18_MakarovSD';
player addMagazine 'ItemMorphine';
player addMagazine 'ItemSodaMdew';
player addMagazine 'FoodCanBakedBeans';
player addMagazine 'ItemPainkiller';
player addMagazine 'ItemBandage';
player addMagazine 'ItemBandage';
player addWeapon 'ItemMap';
player addWeapon 'ItemKnife';
player addWeapon 'ItemEtool';
removeBackpack player;
player addBackPack "CZ_VestPouch_Ep1";
reload player;

cuttext ["you are a hero level 2", "PLAIN DOWN"];

sleep 2;

};
if you're seeing the hero level 2 text but not recieving the gear check your antihack, if using infistar I would try disabling the remove items check in the AHconfig.sqf
Code:
_RAI =  false;
 
Back
Top