This commit is contained in:
vbawol 2017-07-27 09:51:19 -05:00
parent aaef107e3e
commit c38766286d
57 changed files with 98 additions and 9 deletions

View File

@ -1 +1 @@
build=813;
build=814;

View File

@ -1 +1 @@
build=813;
build=814;

View File

@ -1 +1 @@
build=813;
build=814;

View File

@ -6,7 +6,7 @@
Spawns Debris Dynamically on Roadways.
Improvements and or bugfixes and other contributions are welcome via the github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_server_settings/EpochEvents/DebrisSpawner.sqf
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_server_debris_event/EpochEvents/DebrisSpawner.sqf
*/
//[[[cog import generate_private_arrays ]]]
private ["_allRoads","_allowDebris","_debris","_debrisCounter","_debrisLocations","_debrisLocationsKey","_debrisLocationsTMP","_debug","_disallowedLocations","_expiresDebris","_export","_instanceID","_intersections","_marker","_maxDebrisLimit","_nearbyLocations","_newDebrisCounter","_object","_offsetX","_offsetY","_position","_response","_rng","_rngChance","_scriptHiveKey","_seed","_selectedDebris","_upperPos","_worldSize"];

View File

@ -1 +1 @@
build=813;
build=815;

View File

@ -10,7 +10,7 @@
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_server_settngs/config.cpp
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_server_debris_event/config.cpp
*/
#define _ARMA_

View File

@ -1 +1 @@
build=813;
build=814;

View File

@ -1 +1 @@
build=813;
build=814;

View File

@ -0,0 +1,42 @@
/*
Author/s:
Aaron Clark - EpochMod.com
Description:
VIP Event - Reveals the map location of a random player that possesses a specific item every x minutes.
Improvements and or bugfixes and other contributions are welcome via the github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_server_vip_event/EpochEvents/event1.sqf
*/
//[[[cog import generate_private_arrays ]]]
private ["_marker","_name","_owner","_player","_players","_position"];
//[[[end]]]
params [["_item","ItemBriefcaseGold100oz"]];
// marker name
_marker = "VIPMarker1";
// remove any previous markers
if (_marker in allMapMarkers) then {
deleteMarker _marker;
};
// get all alive players with the VIP item.
_players = allPlayers select {(alive _x && (_item in magazines _x))};
// continue if players found
if !(_players isEqualTo []) then {
// select random player
_player = selectRandom _players;
_position = getpos _player;
_owner = owner _player;
_name = name _player;
// make marker
_marker = createMarker[_marker, _position];
_marker setMarkerShape "ICON";
_marker setMarkerType "hd_objective";
_marker setMarkerColor "ColorRed";
_marker setMarkerText "VIP";
// tell player about VIP status
["You are the VIP!", 5] remoteExec ['Epoch_message',_player];
// broadcast to everyone else
[format["%1 is the VIP!",_name], 5] remoteExec ['Epoch_message',[-2,-_owner]];
// debug
diag_log format["Epoch: VIP Marker triggered on %1", _player];
};

View File

@ -0,0 +1 @@
build=815;

View File

@ -0,0 +1,37 @@
/*
Author: Aaron Clark - EpochMod.com
Contributors:
Description:
Epoch Server Event (DynamicDebris)
Licence:
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_server_vip_event/config.cpp
*/
#define _ARMA_
class CfgPatches {
class A3_server_vip_event {
requiredVersion = 0.1;
requiredAddons[] = {"A3_server_events"};
#include "build.hpp"
};
};
// import settings
class CfgEpochServerEvents
{
class VIP {
delay = 900; // delay in seconds between executions <SCALAR>,
script = "\epoch_server_vip_event\EpochEvents\event1.sqf"; // script: name or full path if usePrefix is set to 0.
runOnStart = 0; // runOnStart: 0 normal delay, 1 = run script at startup.
usePrefix = 0; // usePrefix: 0 = use full file path, 1 = pre/postfix path (use if file is inside epoch settings pbo EpochEvents folder), 2 = pre/postfix path (use if file inside epoch events pbo EpochEvents folder).
runNumTimes = -1; // runNumTimes: 0 = disabled, 1+ = number of times to execute before removing event, -1 = no limit.
input[] = {"ItemBriefcaseGold100oz"}; // array input to execVM at time of run and accessed with _this inside of script.
};
};

View File

@ -0,0 +1,9 @@
Epoch Mod for Arma 3
http://epochmod.com
by Epoch Mod Team
https://github.com/EpochModTeam/Epoch
The contents of this pbo are under the following license:
http://www.bistudio.com/community/licenses/arma-public-license-share-alike
Keep this file and file headers with attribution intact for proper use.

Binary file not shown.

View File

@ -1 +1 @@
813
815