Dayz Overwatch - custom starter loadout

Jubei

New Member
can anyone give up a tutorial from start to end for custom starting loadout for overwatch 0.2.5 pls? I cant understand what needs to be changed and where?

Thank you
 
and also on our dayz.st server with overwatch 0.2.5 we dont start with taser; all we get are flares and a bandage:(
Open your Mission PBO....then open init.sqf....look for this around line 39:
Code:
//[] execVM "\ddopp_taserpack\scripts\init_Taser.sqf";
and comment (//) it out. This will disable the default Overwatch Taser loadout.

Then add this (this is my custom one, edit as you see fit) to the very bottom of your init.sqf:
Code:
//Custom New Spawn Loadouts Start//
waitUntil { !isNil ("dayz_animalCheck") and
!(player getVariable ["humanity",0] > 5000 and
typeOf player == "Survivor2_DZ") and
!(player getVariable ["humanity",0] < -2000 and
(typeOf player == "Survivor2_DZ" or
typeOf player == "SurvivorW2_DZ") ) and
!(player getVariable ["humanity",0] > 0 and
(typeOf player == "Bandit1_DZ" or
typeOf player == "BanditW1_DZ") ) };
//if they're a bambi
if (PVCDZ_plr_Login2 select 2) then
{
//customised loadout
//remove weapons
player removeWeapon "DDOPP_X26";
player removeMagazines "DDOPP_1Rnd_X26";
//add weapons
player addWeapon "RH_M9SD";
player addMagazine "15Rnd_9x19_M9SD";
player addMagazine "15Rnd_9x19_M9SD";
player addMagazine "15Rnd_9x19_M9SD";
//tools
player addWeapon "ItemCompass";
player addWeapon "ItemMatchbox";
player addWeapon "ItemKnife";
//backpack
removeBackpack player;
player addBackpack "DZ_Patrol_Pack_EP1";
};
//Custom New Spawn Loadout End//


You also need to open your SERVER PBO and open open compile\server_playerSetup.sqf and look near line 239 for:
Code:
PVCDZ_plr_Login2 = [_worldspace,_state];
and replace with:
Code:
PVCDZ_plr_Login2 = [_worldspace,_state,_randomSpot];

Now you are good to go. FYI, this is my custom starting loadout. Edit your own or use this one.

And as always, thanks to Player2 for the ori
ginal code.
 
Last edited:

Halvhjearne

Valued Member!
Open your Mission PBO....then open init.sqf....look for this around line 39:
Code:
//[] execVM "\ddopp_taserpack\scripts\init_Taser.sqf";
and comment (//) it out.
i actually told you this in another post already ... this will disable tazers!
idk why you want everyone to disable this, when you have no idea what it actually does?
it has nothing to do with loadouts ...

does this even work?
waitUntil { !isNil ("dayz_animalCheck") and
dayz_animalCheck should be either dayz_Totalzedscheck or imo earlier ... personally i use PVDZ_plr_LoginRecord
 

Chris Atkins

Valued Member!
i actually told you this in another post already ... this will disable tazers!
idk why you want everyone to disable this, when you have no idea what it actually does?
it has nothing to do with loadouts ...

does this even work?


dayz_animalCheck should be either dayz_Totalzedscheck or imo earlier ... personally i use PVDZ_plr_LoginRecord
Honestly, I told you, it didn't disable tasers! This prevents the taser default loadout. I can still use Tasers on my Overwatch server!

You are ignorant and dense aren't you?

You can argue with me till you're blue in the face but it's not going to stop the fact that I'm right and you're wrong. Get over it and quit crying. Go change your tampon, it may help...

Not to mention you're questioning Player2 from the original post as this is her code...so if you feel this wrong, take it up with her.
 

Halvhjearne

Valued Member!
Honestly, I told you, it didn't disable tasers! This prevents the taser default loadout. I can still use Tasers on my Overwatch server!
please post this tazer init script and highlight the part of code that defines default loadout.
You are ignorant and dense aren't you?

You can argue with me till you're blue in the face but it's not going to stop the fact that I'm right and you're wrong. Get over it and quit crying. Go change your tampon, it may help...
i belive you are describing yourself here, i guess?

Not to mention you're questioning Player2 from the original post as this is her code...so if you feel this wrong, take it up with her.
i could care less whoever wrote the code, im just stating here that its not optimal and might even be wrong!

now wake up and realize what you are doing chris ... its nice that you want to help ppl but giving wrong info is worse than no info imho!
 

Chris Atkins

Valued Member!
please post this tazer init script and highlight the part of code that defines default loadout.

i belive you are describing yourself here, i guess?


i could care less whoever wrote the code, im just stating here that its not optimal and might even be wrong!

now wake up and realize what you are doing chris ... its nice that you want to help ppl but giving wrong info is worse than no info imho!
I'm not giving anyone wrong info. If I was, I wouldn't post. I specifically use the code I have provided. I have no issues with this. My server runs perfect. No problems. I've been using this for the past couple months...I've had no complaints.

If you're bitter and just upset because you're wrong, then I'm sorry. Fact is, everything I provided I personally use and have had no problems. So please stop trying to discredit me because it's not going to work.
 

Halvhjearne

Valued Member!
tbh i really dont enjoy debating with idiots, but this time i guess i kinda have to do an exception ...

you also neglected to show me the part where it sets default loadout from the tazer init script, and since i cant find it either i thought i would show you this part i stumpled uppon, just to demontrate what i mean, since you aparently have a very hard time understanding:
PHP:
    // Set effects control to player
    player setVariable ["isTazed", false, true];
  
    // Add EH to player
    if (DDOPP_taser_enableEH) then {
        player addEventHandler ["HandleDamage",{_this call DDOPP_taser_handleHit}];
    };
this is the part that adds the eventhandler and sets the base variable for when you get tazed ... if that is not in place, nothing will happend when you are tazed!

you might not be using tazers and obviusly it will work fine then, but im pretty sure a lot of other overwatch server actually do use the tazers.
not to mention if someone was to pickup a tazer while looting ... pretty sure they will be very surprised to find it wont do anything when fired.
 
Last edited:

Chris Atkins

Valued Member!
tbh i really dont enjoy debating with idiots, but this time i guess i kinda have to do an exception ...

you also neglected to show me the part where it sets default loadout from the tazer init script, and since i cant find it either i thought i would show you this part i stumpled uppon, just to demontrate what i mean, since you aparently have a very hard time understanding:
PHP:
    // Set effects control to player
    player setVariable ["isTazed", false, true];
 
    // Add EH to player
    if (DDOPP_taser_enableEH) then {
        player addEventHandler ["HandleDamage",{_this call DDOPP_taser_handleHit}];
    };
this is the part that adds the eventhandler and sets the base variable for when you get tazed ... if that is not in place, nothing will happend when you are tazed!

you might not be using tazers and obviusly it will work fine then, but im pretty sure a lot of other overwatch server actually do use the tazers.
not to mention if someone was to pickup a tazer while looting ... pretty sure they will be very surprised to find it wont do anything when fired.
You're obviously as stubborn as you are ignorant. "Idiots"? Really? I'm an idiot because you're wrong about the initial post? OK dude, whatever helps you sleep better at night.

It's over. End of story.
 

Halvhjearne

Valued Member!
I'm an idiot because you're wrong about the initial post?
yes you are being an idiot now ... but where in my initial post was i wrong?
please elaborate on this ...

It's over. End of story.
well i do hope this is true ...

tbh i could care less about you, but i do care about all the guys that will have errors or problems becourse of you ... it sad that you are so convinced that what i say is wrong, that you do not even want to see the obvius error you produce, even tho i told and showed you what is wrong.
 

Chris Atkins

Valued Member!
I'm not saying you're wrong, I'm simply saying you're not 100% correct. If you put peanut butter on before the jelly, it's a Peanut Butter & Jelly sandwich, and if you put the jelly on before the peanut butter, it's still the same sandwich. If you can't understand this then I'm sorry.

I've told you, my tasers work fine. My custom loadout works fine. I have no issues or errors on my server doing what I have done. If you refuse to believe this, then that is your problem.

I'm not forcing anyone to use what I provided in the post, I'm simply sharing what works for me. If you have an alternate solution, then great. But please let go of your arrogance. You are not super-coder, master of the 1's and 0's.
 
Open your Mission PBO....then open init.sqf....look for this around line 39:
Code:
//[] execVM "\ddopp_taserpack\scripts\init_Taser.sqf";
and comment (//) it out. This will disable the default Overwatch Taser loadout.

Then add this (this is my custom one, edit as you see fit) to the very bottom of your init.sqf:
Code:
//Custom New Spawn Loadouts Start//
waitUntil { !isNil ("dayz_animalCheck") and
!(player getVariable ["humanity",0] > 5000 and
typeOf player == "Survivor2_DZ") and
!(player getVariable ["humanity",0] < -2000 and
(typeOf player == "Survivor2_DZ" or
typeOf player == "SurvivorW2_DZ") ) and
!(player getVariable ["humanity",0] > 0 and
(typeOf player == "Bandit1_DZ" or
typeOf player == "BanditW1_DZ") ) };
//if they're a bambi
if (PVCDZ_plr_Login2 select 2) then
{
//customised loadout
//remove weapons
player removeWeapon "DDOPP_X26";
player removeMagazines "DDOPP_1Rnd_X26";
//add weapons
player addWeapon "RH_M9SD";
player addMagazine "15Rnd_9x19_M9SD";
player addMagazine "15Rnd_9x19_M9SD";
player addMagazine "15Rnd_9x19_M9SD";
//tools
player addWeapon "ItemCompass";
player addWeapon "ItemMatchbox";
player addWeapon "ItemKnife";
//backpack
removeBackpack player;
player addBackpack "DZ_Patrol_Pack_EP1";
};
//Custom New Spawn Loadout End//


You also need to open your SERVER PBO and open open compile\server_playerSetup.sqf and look near line 239 for:
Code:
PVCDZ_plr_Login2 = [_worldspace,_state];
and replace with:
Code:
PVCDZ_plr_Login2 = [_worldspace,_state,_randomSpot];

Now you are good to go. FYI, this is my custom starting loadout. Edit your own or use this one.

And as always, thanks to Player2 for the ori
ginal code.
This seemed to work.......finally,

However instead of adding the code directly to the init.sqf, I created a sqf called "owloadout" and called it at the bottom of the init file.
 
Okay how do I get it to loadout from the MySQL DB instead of a .sqf? this is for Dayz Overwatch I checked everywhere in the code I have no clue the DB writes the DB loadout than goes to roadflares once the player enters the world why is this?
 
Okay how do I get it to loadout from the MySQL DB instead of a .sqf? this is for Dayz Overwatch I checked everywhere in the code I have no clue the DB writes the DB loadout than goes to roadflares once the player enters the world why is this?
I have tried both the DB and SQfs and both seem not to work at all. :/
 
Top