Peter Shepherd
Member
Oh my god i'm so sorry haha! I'm not really sure what to include, Can you please help?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Yip, these are 3 random positions anywhere (let my cat jump over the numblock), just exchange them with your custom 2D-Coordinates.In the case of using static cords
What exactly are 3 of these? Is this the list of crash positions?
//_staticcoords = [[6277.5605,8332.8262],[1234.5605,4321.8262],[45545.5605,1256.8262]];
And is it possible to set up the start position for any given crash position?
Also when I add the line to server_functions.sqf would I have to change the code so it is \compile\server_monitor.sqf?
Kicks will happen whenever a heli is crashing (for everyone on the server), so if you like to stay with the rocks, then delete the code from your init.sqf, otherwise you should change your scripts.txt as sarge wroteCode:5 setDamage !"\"setDamage\"," !"_vehicle setDamage 0;" !"player setdamage 0;" !"if (alive player) then { player SetDamage 1;};" !"if (_ent isKindOf \"Animal\") then {\n_ent setDamage 1;" !"player setDamage 1;\n0.1 fadeSound 0;"
thats the line causing the kick i guess, cause after removed the setdamage command from the
Code:"heliCrash" addPublicVariableEventHandler { _list = nearestObjects [_this select 1, ["CraterLong"], 100]; {_x setdamage 1; deleteVehicle _x;} foreach _list; };
kicks didnt happen anymore, it just wont clean up the craters but thats np for me
anyways.. thank you so much for this script.. love it
danke!
ps: yeah that would be epic sarge :O
Also when I add the line to server_functions.sqf would I have to change the code so it is \compile\server_monitor.sqf?
Nope, just copy it like i wrote it... or just try & error, there are only 2 possible ways, sometimes its faster to just try something then asking for an answer![]()
Patience young padawan. Almost fixed it. Will share after it's complete.Can anyone help me? I really want this!
I will wait here jedi cyrq...Patience young padawan. Almost fixed it. Will share after it's complete.
//_crashModel = _this select 0;
//_lootTable = _this select 1;
_guaranteedLoot = _this select 0;
_randomizedLoot = _this select 1;
_frequency = _this select 2;
_variance = _this select 3;
_spawnChance = _this select 4;
_spawnMarker = _this select 5;
_spawnRadius = _this select 6;
_spawnFire = _this select 7;
_fadeFire = _this select 8;
_guaranteedLoot = _this select 2;
_randomizedLoot = _this select 2;
_frequency = _this select 3;
_variance = _this select 4;
_spawnChance = _this select 5;
_spawnMarker = _this select 6;
_spawnRadius = _this select 7;
_spawnFire = _this select 8;
_fadeFire = _this select 9;
if (SpawnHelis && worldName != "namalsk") then {
if (OldSpawn) then {
for "_x" from 1 to SpawnHelisCount do { _id = [] spawn spawn_helis; };
} else {
[["UH60Wreck_DZ", "UH1Wreck_DZ"], ["Military", "HeliCrash", "MilitarySpecial"], SpawnHelisCount, (50 * 60), (15 * 60), 0.75, 'center', 4000, true, false] spawn server_spawnWreck;
};
};
if (SpawnHelis && worldName != "namalsk") then {
if (OldSpawn) then {
for "_x" from 1 to SpawnHelisCount do { _id = [] spawn spawn_helis; };
} else {
[["UH1Wreck_DZ", "Mi8Wreck"], ["Military", "HeliCrash", "MilitarySpecial"], 4, (50 * 60), (15 * 60), 0.75, 'center', 4000, true, false] spawn server_spawnWreck;
};
};
#define OldSpawn false
2:57:52 "CRASHSPAWNER: Starting spawn logic for Crash Spawner"
2:57:52 "CRASHSPAWNER: 100% chance to spawn 'Mi17_DZ' with loot table 'MilitarySpecial' at 60"
2:57:52 "CRASHSPAWNER: Starting spawn logic for Crash Spawner"
2:57:52 "CRASHSPAWNER: 75% chance to spawn 'UH-1H' with loot table 'HeliCrash' at 3676"
2:57:52 "CRASHSPAWNER: Starting spawn logic for Crash Spawner"
2:57:52 "CRASHSPAWNER: 75% chance to spawn 'Mi17_DZ' with loot table 'HeliCrash' at 3512"
Now one problem which I encountered with this "hack" is that the modified chances only apply to the first Heli spawn:
Code:2:57:52 "CRASHSPAWNER: Starting spawn logic for Crash Spawner" 2:57:52 "CRASHSPAWNER: 100% chance to spawn 'Mi17_DZ' with loot table 'MilitarySpecial' at 60" 2:57:52 "CRASHSPAWNER: Starting spawn logic for Crash Spawner" 2:57:52 "CRASHSPAWNER: 75% chance to spawn 'UH-1H' with loot table 'HeliCrash' at 3676" 2:57:52 "CRASHSPAWNER: Starting spawn logic for Crash Spawner" 2:57:52 "CRASHSPAWNER: 75% chance to spawn 'Mi17_DZ' with loot table 'HeliCrash' at 3512"