mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
b815
This commit is contained in:
parent
aaef107e3e
commit
c38766286d
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Server_Install_Pack/@epochhive/addons/epoch_server_vip_event.pbo
Normal file
BIN
Server_Install_Pack/@epochhive/addons/epoch_server_vip_event.pbo
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
||||
build=813;
|
||||
build=814;
|
||||
|
@ -1 +1 @@
|
||||
build=813;
|
||||
build=814;
|
||||
|
@ -1 +1 @@
|
||||
build=813;
|
||||
build=814;
|
||||
|
@ -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"];
|
||||
|
@ -1 +1 @@
|
||||
build=813;
|
||||
build=815;
|
||||
|
@ -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_
|
||||
|
@ -1 +1 @@
|
||||
build=813;
|
||||
build=814;
|
||||
|
@ -1 +1 @@
|
||||
build=813;
|
||||
build=814;
|
||||
|
42
Sources/epoch_server_vip_event/EpochEvents/event1.sqf
Normal file
42
Sources/epoch_server_vip_event/EpochEvents/event1.sqf
Normal 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];
|
||||
};
|
1
Sources/epoch_server_vip_event/build.hpp
Normal file
1
Sources/epoch_server_vip_event/build.hpp
Normal file
@ -0,0 +1 @@
|
||||
build=815;
|
37
Sources/epoch_server_vip_event/config.cpp
Normal file
37
Sources/epoch_server_vip_event/config.cpp
Normal 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.
|
||||
};
|
||||
};
|
9
Sources/epoch_server_vip_event/license.txt
Normal file
9
Sources/epoch_server_vip_event/license.txt
Normal 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.
|
BIN
Sources/epoch_server_vip_event/treeView.txt
Normal file
BIN
Sources/epoch_server_vip_event/treeView.txt
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user