Newbie Spellweaver
- Joined
- Nov 15, 2014
- Messages
- 26
- Reaction score
- 7
Replace the line:
Code:call dbLoadPlayer;
With all code from the file dbLoadPlayer.sqf. Then you can change what you spawn with directly in the init file (without editing the PBO and getting signature errors).
Theres no need to comment call dbLoadPlayer; and put code from this file.
We only need to copy dbloadplayer and put in mission folder (dayz_auto.ChernarusPlus)
Then we replace line
Code:
[COLOR=#000000]call dbLoadPlayer[/COLOR];
with this
Code:
[I]call compile preprocessFileLineNumbers "dbLoadPlayer.sqf";
[/I]
Wow, nice! thanks for help, so i must get a program who can open PBO files?
Any good programs for WIN10?
And if you know how i must edite u can help me?
Anyways i want make only one spawn in cherno and random gear like
1. Mosin + ammo + TTSKO complet
2. AKM + ammo + Gorka complet etc.
- - - Updated - - -
When i edited this file i have error: Corrupted data detected
signature of addons /server_data.pbo is wrong.
:/ How to fix this i only edited rags 4 than 1
And add one more flar. lel...
Programm to editing PBOs is PBO Manager
To make randomize start loot and spawnpoints
--
Open dbLoadPlayer.sqf and find this
Code:
{null = _agent createInInventory _x} forEach [_myTop,_myBottom,_myShoe];
Then comment or delete all lines with _v prefix (_v = _agent createInInventory "Map_Chernarus"; for example)
After you must add this code
Code:
_min = 1;
_diff = 2;
_loudout1 = round (_min + (random _diff));
switch (_loudout1) do
{
case 1: {
_v = _agent createInInventory "AKM";
_v = _agent createInInventory "ttsko_pants_Beige";
_v = _agent createInInventory "TTsKO_Jacket_Camo";
_v = _agent createInInventory "BagHunting";
_v = _agent createInInventory "MilitaryBoots_Black";
_v = _agent createInInventory "m_akm_palm30_green";
_v = _agent createInInventory "M_akm_drum";
_v = _agent createInInventory "m_akm_palm30_green";
_v = _agent createInInventory "M_akm_drum";
_v = _agent createInInventory "Att_Suppressor_AK";
_v = _agent createInInventory "Att_Optic_PSO1";
_v = _agent createInInventory "Att_Optic_Kashtan";
_v = _agent createInInventory "Att_Handguard_AK_Rail_Black";
_v = _agent createInInventory "Att_Buttstock_AK_Wood";
};
case 2: {
_v = _agent createInInventory "mosin9130";
_v = _agent createInInventory "Gorka_up_summer";
_v = _agent createInInventory "Gorka_pants_summer";
_v = _agent createInInventory "BagHunting";
_v = _agent createInInventory "Att_Optic_PUScope";
_v = _agent createInInventory "MilitaryBoots_Black";
_v = _agent createInInventory "Att_Compensator_Mosin";
_v = _agent createInInventory "Att_Optic_Hunting";
_v = _agent createInInventory "CLIP_762_5Rnd";
_v = _agent createInInventory "CLIP_762_5Rnd";
_v = _agent createInInventory "CLIP_762_5Rnd";
_v = _agent createInInventory "CLIP_762_5Rnd";
_v = _agent createInInventory "CLIP_762_5Rnd";
_v = _agent createInInventory "CLIP_762_5Rnd";
_v = _agent createInInventory "CLIP_762_5Rnd";
_v = _agent createInInventory "CLIP_762_5Rnd";
};
};
this must look like this
And save file.
Now we have random loot after spawn.
Now let's edit spawnpoints(credits to Quackster)
In dbLoadPlayer find this
Code:
DZ_spawnpointsfile = "spawnpoints_players.bin";
Code:
[COLOR=#666666]DZ_positions = [ [/COLOR][ 6529.1 , 2906.31 , 5.97936 ],
[ 6533.27 , 2895.42 , 5.94128 ],
[ 6608.88 , 2910.72 , 5.99997 ],
[ 6618.82 , 2918.51 , 6.0068 ],
[ 6628.12 , 2925.58 , 6.09259 ] [COLOR=#666666]];
[/COLOR]
this is my old chernogorsk spawnpoints. maybe some of them not correct.
lets continue
Find this line
Code:
[COLOR=#666666]
_pos = findCachedSpawnPoint [ DZ_spawnpointsfile, DZ_spawnpass3params ];
[/COLOR]
Code:
[COLOR=#666666]
_spawnPos = DZ_positions select (floor (random (count DZ_positions)));
_pos = [_spawnPos select 0, _spawnPos select 1, _spawnPos select 2];
[/COLOR]
It's real 0.60 server filesis it real 0.60 or its another 0.45 based server?
Attachments
You must be registered for see attachments list