Custom Wrecks with loot - Why limit it to heli crashes :p

With 1.7.7 all loot spawns right under the wreck in one pile.
Something to do with helicrash loot spread change in 1.7.7?
 
No idea dude, ive been so busy getting my dedi set up, ive barely had time to check over the new coding, Once i find a fix, Original posts will be updated
 
thankz to you I have plenty of crash sites with all my custom loot. thankz
also thankz to your add remove weapons I have well some silly stuff on my server. thankz
I have taken your posts and twisted em into my own scripts like my quad with guns
anywayz I have 2 questions for yah (more to come im sure)
1. I place crash sites like vehicles where I want em but how can I get em to loot like a real crash site.
2.on my taviana server all my crash sites are up north any way to get em to spawn everywhere ?
( I found a post here on how but its verry incomplete post) says change center with somewhere in the water.
between 2 islands.
could you elaborate this? your posts are abit more detailed imho...
 
have a look in your server_monitor 'center' '4000' try increasing the 4000 and see what happens :p I dont have much time these days to keep my threads upto date or test things not related to my servers, me and p2, mainly p2 if im honest lol recently fixed this one to work on 1.7.7, but not quite ready to release it yet, until i get it working fully optimised. plus servers stealing our PBO's and copy pasting our name, kinda make me wonder if i shud freely share anything any more.

But then comes along nice guys like you, which make me think maybe its not all bad sharing and helping :p
 
so in dayz.st on the map I can place a wreck like its a vehicle spawn. is there a way I can get loot to spawn with these wrecks ???
 
this is not what I was looking to do. But it is still awsome and glad you posted it.

what I am trying to do is this...
I manually place a wreck like a vehicle. I wanted loot to spawn at them
this way I could place loot wherever I wanted. not in random crash sites.

but this is still great I added a c130 the hmmv and the ural wreck thankz alot....
 
1:25:56 Error in expression <find _iClass;
_weights = dayz_CLChances select _index;
_cntWeights = count _weig>
1:25:56 Error position: <select _index;
_cntWeights = count _weig>
1:25:56 Error Zero divisor
1:25:56 File z\addons\dayz_code\compile\spawn_loot.sqf, line 22
1:26:03 "infiSTAR.de Log: 0h 7min | SERVER ALERT! (SerPerCallArr modified!) | |DayZ Instance: 11|"
1:26:06 Error in expression <find _iClass;
_weights = dayz_CLChances select _index;
_cntWeights = count _weig>
1:26:06 Error position: <select _index;
_cntWeights = count _weig>
1:26:06 Error Zero divisor
1:26:06 File z\addons\dayz_code\compile\spawn_loot.sqf, line 22
1:26:09 Error in expression <find _iClass;
_weights = dayz_CLChances select _index;
_cntWeights = count _weig>
1:26:09 Error position: <select _index;
_cntWeights = count _weig>
1:26:09 Error Zero divisor
1:26:09 File z\addons\dayz_code\compile\spawn_loot.sqf, line 22

I dont know but i think that i get this error from your script maybe i have do something wrong can you help me?
 
trying this on my overwatch server...
getting this error

7:07:05 "CAREPACKAGE URAL: rv: '', pos: '',vlt :''"
7:07:05 ""
7:07:05 Error in expression <CarePackages.sqf"
_veh = createVehicle [_randomvehicle,_position, [], 0, "CAN_CO>
7:07:05 Error position: <_randomvehicle,_position, [], 0, "CAN_CO>
7:07:05 Error Undefined variable in expression: _randomvehicle
7:07:05 File z\addons\dayz_server\compile\server_spawnYellowCarePackages.sqf, line 1
7:07:05 Error in expression <peCount;
sleep 1;
 
well yes it does. but for some reason in that code the selectrandom isnt returning a valid classname. Is that call in the spawning loop so its called every time?
 
maybe UralWreck is not a valid classname for overwatch ?

private["_position","_veh","_num","_config","_itemType","_itemChance","_weights","_index","_iArray"];


if (isDedicated) then {
diag_log(format["CAREPACKAGE URAL: IN FILE"]);
_position = [getMarkerPos "center",0,4000,10,0,2000,0] call BIS_fnc_findSafePos;
_randomvehicle = ["UralWreck","UralWreck","UralWreck"] call BIS_fnc_selectRandom;
_vehicleloottype = ["Industrial"] call BIS_fnc_selectRandom;

_veh = createVehicle [_randomvehicle,_position, [], 0, "CAN_COLLIDE"];
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_veh];
_veh setVariable ["ObjectID",1,true];

if (_randomvehicle == "UralWreck") then { _num = round(random 3) + 3; };
if (_randomvehicle == "UralWreck") then { _num = round(random 6) + 4; };
if (_randomvehicle == "UralWreck") then { _num = round(random 12) + 5; };

diag_log(format["CAREPACKAGE URAL: rv: '%1', pos: '%2',vlt :'%3'", str(_randomvehicle), str(_position), str(_vehicleloottype)]);
switch (_vehicleloottype) do {
case "Industrial": {
_itemType = [["WeaponHolder_PartGeneric", "object"], ["WeaponHolder_PartFueltank", "object"], ["WeaponHolder_PartWheel", "object"], ["WeaponHolder_PartEngine", "object"], ["WeaponHolder_PartGlass", "object"], ["WeaponHolder_PartVRotor", "object"], ["ItemToolbox", "weapon"], ["ItemToolbox", "weapon"], ["ItemToolbox", "weapon"], ["WeaponHolder_ItemJerrycan", "object"], ["", "Industrial"], ["ItemGPS", "weapon"]];
};
};
 
I was pretty sure was
http://www.armatechsquad.com/ArmA2Class151656165165341654165165165165f/A2/Objects/Wrecks/
they are spawned all over the place ... Unless the class is being overridden in dayz to uralwreck_dz or something like that. You can check the classname of one with infistar or if you dont have it then use this code at the bottom of your init.sqf for testing
/*
TEST RADIO TRIGGER Press backspace then reply to get to radio alpha
*/
_this = createTrigger ["EmptyDetector", [7024.4883, 7660.3794, 0]];
_this setTriggerActivation ["ALPHA", "PRESENT", true];
_this setTriggerStatements ["this", "hint format[""Classname is %1"",typeof cursortarget ];", ""];


How about you add a log output to see exactly what is being returned?
_randomvehicle = ["UralWreck","UralWreck","UralWreck"] call BIS_fnc_selectRandom;
diag_log format ["DEBUG: _randomvehicle = %1",_randomvehicle];
 
Back
Top