mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Satellite Event Starter
This commit is contained in:
parent
e4903fd870
commit
f7f839abf8
@ -17,15 +17,14 @@ events[] = {
|
||||
// { 1200, "MessageServer", 0, 1},
|
||||
{ 2700, "AirDrop", 0 , 1},
|
||||
{ 2400, "EarthQuake", 0 , 1},
|
||||
{ 2700, "Satellite", 0 , 1},
|
||||
{ 900, "ChangeWeather", 1 , 1},
|
||||
{ 1200, "ContainerSpawner", 0 , 1},
|
||||
{ 300, "PlantSpawner", 0 , 1} //No comma on last Entry
|
||||
};
|
||||
|
||||
// Antagonists
|
||||
antagonistChanceTrash = 0.09; //9% chance when player loot a trash object
|
||||
antagonistChancePDeath = 0.33; //33% chance when player was killed from a other player (selfkill doesn't count)
|
||||
antagonistChanceLoot = 0.09; //9% chance when player click "SEARCH" on a loot object
|
||||
|
||||
// Player Related
|
||||
cloneCost = 100; // debt incurred on player death
|
||||
@ -89,6 +88,7 @@ forcedLootSpawnTable = ""; // leave blank for default. Options: "CfgLootTable","
|
||||
|
||||
// Markers
|
||||
showEarthQuakes = "true"; // show mineral viens caused by earthquakes
|
||||
showSatellites = "true"; // show crashed Satellites
|
||||
showShippingContainers = "true"; // Show location of events based loots (plants, shipping container, Carnival)
|
||||
SHOW_TRADERS = "true"; // Show locations of traders
|
||||
SHOW_JAMMERS = "false"; // Shows location of base jammers
|
||||
|
35
Sources/epoch_server_settings/EpochEvents/Satellite.sqf
Normal file
35
Sources/epoch_server_settings/EpochEvents/Satellite.sqf
Normal file
@ -0,0 +1,35 @@
|
||||
/*
|
||||
Crashed Satellite Event
|
||||
by Aaron Clark - EpochMod.com
|
||||
|
||||
Improvements and or bugfixes and other contributions are welcome via the github:
|
||||
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_server_settings/EpochEvents/Satellite.sqf
|
||||
*/
|
||||
//[[[cog import generate_private_arrays ]]]
|
||||
private ["_item","_marker","_playersNearEpicenter","_position","_satellites"];
|
||||
//[[[end]]]
|
||||
_position = [epoch_centerMarkerPosition, 0, EPOCH_dynamicVehicleArea, 10, 0, 1000, 0] call BIS_fnc_findSafePos;
|
||||
if ((count _position) == 2) then{
|
||||
_playersNearEpicenter = _position nearEntities[["Epoch_Male_F", "Epoch_Female_F"], 1000];
|
||||
|
||||
// todo send shockwave + effects to each player in zone
|
||||
/*
|
||||
if !(_playersNearEpicenter isEqualTo[]) then{
|
||||
// todo add shockwave effects script
|
||||
[_position] remoteExec ['EPOCH_client_earthQuake',_playersNearEpicenter];
|
||||
};
|
||||
*/
|
||||
|
||||
// Satellite classes
|
||||
_satellites = ["Land_Wreck_Satellite_EPOCH"];
|
||||
|
||||
_item = createVehicle[(selectRandom _satellites), _position, [], 0.0, "CAN_COLLIDE"];
|
||||
|
||||
if (EPOCH_showSatellites) then{
|
||||
_marker = createMarker[str(_position), _position];
|
||||
_marker setMarkerShape "ICON";
|
||||
_marker setMarkerType "hd_warning";
|
||||
// _marker setMarkerText "Satellite";
|
||||
_marker setMarkerColor "ColorGreen";
|
||||
};
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user