Jump to content
Sign in to follow this  
juandayz

Random Explotions on Gas Stations

Recommended Posts

On 1/16/2017 at 7:39 AM, juandayz said:

Yea its can be used To start or complement another script. like a explode chance if u use refuel  in vehicle service `point

Great Script Juandayz - Thank you 

Modified version:

A crate with a few building supplies to spawn when event is triggered.

 

Spoiler

private ["_eventTime", "_markerRadius", "_debug", "_start_time", "_loot", "_loot_amount", "_loot_box", "_wait_time", "_loot_pos", "_debug_marker","_loot_box"];
 
_eventTime = 600; //How much time this event will be in seconds
_loot_box = "USVehicleBox";
_loot_lists = [
[
["M9SD"],
["15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","full_cinder_wall_kit","full_cinder_wall_kit","full_cinder_wall_kit","full_cinder_wall_kit","full_cinder_wall_kit","full_cinder_wall_kit","full_cinder_wall_kit","full_cinder_wall_kit","full_cinder_wall_kit","full_cinder_wall_kit","full_cinder_wall_kit","full_cinder_wall_kit","full_cinder_wall_kit","full_cinder_wall_kit","full_cinder_wall_kit","full_cinder_wall_kit"]
],
[
["M9SD"],
["15Rnd_9x19_M9SD","15Rnd_9x19_M9SD","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor","metal_floor_kit","ItemWoodFloor"]
]
];

_loot = _loot_lists call BIS_fnc_selectRandom;
 
_loot_amount = 75;
_wait_time = 900;
_start_time = time;

if (isNil "EPOCH_EVENT_RUNNING") then {
EPOCH_EVENT_RUNNING = false;
};
 
// Check for another event running
if (EPOCH_EVENT_RUNNING) exitWith {
diag_log("Event already running");
};

_GasCoordsArray = [
[7256.3296, 7658.8853, 0],//novy
[5854.7207, 10103.158, 3.0517578e-005],//grisino
[3666.843, 8979.5107, 3.0517578e-005],//novy
[2021.9128, 2234.3821, 1.4305115e-006],//kamenka
[5874.8354, 2200.7412, 1.6689301e-005],//balota
[6687.0552, 3006.4988, 1.4305115e-006],//chernogorsk
[9526.9893, 2012.6692, 6.6757202e-006],//electro
[13374.127, 6605.4155, 4.9114227e-005],//solsny
[10450.536, 8891.4951, 0],//gorka
[2997.0571, 7464.5742, 3.0517578e-005],//putosh
[2704.6943, 5603.8535, 0]//zeleno
];
_SetBombPos = _GasCoordsArray call BIS_fnc_selectRandom;


_markerRadius = 100; // Radius the camp can spawn and used for the marker
_loot_pos = [_SetBombPos,0,(_markerRadius - 50),10,0,2000,0] call BIS_fnc_findSafePos;


_marker_on_radius = createMarker ["gas",_SetBombPos];
_marker_on_radius setMarkerShape "ELLIPSE";
_marker_on_radius setMarkerType "Cricle01";
_marker_on_radius setMarkerColor "ColorRed";
_marker_on_radius setMarkerAlpha 0.8;
_marker_on_radius setMarkerBrush "Solid";
_marker_on_radius setMarkerSize [(_markerRadius + 50), (_markerRadius + 50)];

_debug_marker = createMarker [ format ["loot_event_debug_marker_%1", _start_time], _loot_pos];
_debug_marker setMarkerShape "ICON";
_debug_marker setMarkerType "mil_dot";
_debug_marker setMarkerColor "ColorGreen";
_debug_marker setMarkerAlpha 1;
_debug_marker setMarkerText ""; //Name of makrer of the crate

_marker = createMarker ["Explosion", _SetBombPos];
_marker setMarkerText "Gas Station Explosion";
_marker setMarkerType "mil_circle";
_marker setMarkerColor "ColorBlack";
_marker setMarkerBrush "Solid";
_marker setMarkerSize [0.1, 0.1];

// Create ammo box
_loot_box = createVehicle [_loot_box,_loot_pos,[], 0, "NONE"];
clearMagazineCargoGlobal _loot_box;
clearWeaponCargoGlobal _loot_box;
 
// Add loot
{
_loot_box addWeaponCargoGlobal [_x,1];
} forEach (_loot select 0);
{
_loot_box addMagazineCargoGlobal [_x,1];
} forEach (_loot select 1);

//EXIT FROM HERE//
// Send center message to users
[nil,nil,rTitleText,"Explosion at the gas station! Building Supplies everywhere!", "PLAIN",10] call RE;
sleep 1;

_bomb = "Bo_GBU12_LGB";
_dabomb = objNull;
if (true) then
{
    _this = createVehicle [_bomb,_SetBombPos, [], 2, "CAN_COLLIDE"];
    _dabomb = _this;
};

_playernear = false;
{
if ((isPlayer _x) && (_x distance _SetBombPos < 35)) then {                                                                                                                                                                                        
_x setDamage 1;
};
} count playableUnits;    

sleep _eventTime;
EPOCH_EVENT_RUNNING = false;
deleteVehicle _loot_box;
deleteMarker _marker_on_radius;
deleteMarker _marker;
deleteMarker _debug_marker;

 

Share this post


Link to post
Share on other sites

By changing 

Spoiler
_GasCoordsArray = [
[7256.3296, 7658.8853, 0],//novy
[5854.7207, 10103.158, 3.0517578e-005],//grisino
[3666.843, 8979.5107, 3.0517578e-005],//novy
[2021.9128, 2234.3821, 1.4305115e-006],//kamenka
[5874.8354, 2200.7412, 1.6689301e-005],//balota
[6687.0552, 3006.4988, 1.4305115e-006],//chernogorsk
[9526.9893, 2012.6692, 6.6757202e-006],//electro
[13374.127, 6605.4155, 4.9114227e-005],//solsny
[10450.536, 8891.4951, 0],//gorka
[2997.0571, 7464.5742, 3.0517578e-005],//putosh
[2704.6943, 5603.8535, 0]//zeleno
];

to my own coords i could make random bombs go off anywhere correct?

Share this post


Link to post
Share on other sites
12 hours ago, Hooty said:

By changing 

  Hide contents

_GasCoordsArray = [
[7256.3296, 7658.8853, 0],//novy
[5854.7207, 10103.158, 3.0517578e-005],//grisino
[3666.843, 8979.5107, 3.0517578e-005],//novy
[2021.9128, 2234.3821, 1.4305115e-006],//kamenka
[5874.8354, 2200.7412, 1.6689301e-005],//balota
[6687.0552, 3006.4988, 1.4305115e-006],//chernogorsk
[9526.9893, 2012.6692, 6.6757202e-006],//electro
[13374.127, 6605.4155, 4.9114227e-005],//solsny
[10450.536, 8891.4951, 0],//gorka
[2997.0571, 7464.5742, 3.0517578e-005],//putosh
[2704.6943, 5603.8535, 0]//zeleno
];

to my own coords i could make random bombs go off anywhere correct?

correct.

and if u wanna kill your players you need add:

if ((isPlayer _x) && (_x distance _setbombpos < 25)) then {                                                                                                                                                                                        
_x setDamage 1;
};
} count playableUnits;   

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Similar Content

    • By Tricks
      I have been browsing the forums looking for unique mods to add to my server. I noticed Juandayz deleted a lot of his mods before leaving the community. Just curious if anyone has them all and would possibly repost them giving him full credit? I am particularly interested in his "Admin Skin" and "Debug" mods.
       
      Thanks community, here's hoping someone will step up!
    • By victorks
      my first work in editin :) https://uploaddeimagens.com.br/imagens/20180307202515_1-jpg https://uploaddeimagens.com.br/imagens/20180307202245_1-jpg DOWNLOAD: https://www.dropbox.com/s/oq97j7x59362kqe/CASTLEai.sqf?dl=0 AI M2 NEED WAI: https://pastebin.com/GJMnPvZP ON THE MAP: https://pastebin.com/cyqH9rNV  
       
      https://www.dropbox.com/s/oq97j7x59362kqe/CASTLEai.sqf?dl=0
       
       
       
       
       
       
       
       
       
    • By juandayz
      VIDEO:
      If (You dont have a custom compiles.sqf or a custom keyboard.sqf) exitWith { step1;}else{ proceed with step 2; } forEach user; 1-Making a custom compiles.sqf and custom keyboard.sqf
       
       
      2-In your CUSTOM!!! keyboard.sqf at bottom but before the last "_handled" paste:
      3-Create remote_key.sqf  (mpmissions\your instance\scripts\ )
       
    • By juandayz
      ALL CREDITS FOR @Sandbird
      Walk Amongst The Dead - (Hide from zombies like "The Walking Dead")
      original post 1.0.5.1
       
      *Allow players to walk through zeds and they dsnt been detected.
      *The diference with the old walk amongst is that you get the cammo directly from zeds, not using itemzombiepart.
      *Also i remove the rain wash (sory sandbird) (this was awesome but burn my brain ) but i added an option to wash the cammo in  lakes.
      *Another diference is when you shoot a weapon the cammo go away inmediatly, and the icon is diferent.
       
      INSTALL:
      1-init.sqf
       
       
      2- Description.ext  (ONLY IF URE USING COINS)
       
      3-custom fn_selfactions.sqf
      4-custom Variables.sqf
      5-Download from here:  http://www.mediafire.com/file/9d74axmfym1tz16/zedutility.rar
      and place the "zedutility" folder into mpmissions\the instance that youreusing\scripts\
       
      6- Open the config.sqf located in \zedutility\walkamongstthedead\  to add more or less time to your cammo before he wash automatically
      DZ_ZCAMO_USE_TIME = 30;//30 seconds for default.  
       
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...