SQF Admin Event functions

This commit is contained in:
Benjamin Kyd
2019-05-06 01:05:24 +01:00
parent 911879d542
commit dbedfcfe82
13 changed files with 1972 additions and 3 deletions

View File

@@ -0,0 +1,2 @@

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,8 @@
disableAI = 1;
#include "defines.hpp"
#include "eventRevive.hpp"
class cfgFunctions {
#include "functions.hpp"
};

View File

@@ -0,0 +1,79 @@
class Life_Admin_EventRevive {
idd = 9220;
name= "Life_Admin_EventRevive";
movingEnable = 0;
enableSimulation = 1;
class controlsBackground {
class Life_RscTitleBackground: RscText {
colorBackground[] = {0,0,0,0};
idc = -1;
x = 0.1;
y = 0.2;
w = 0.5;
h = (1 / 25);
};
class MainBackground: RscText {
colorBackground[] = {0, 0, 0, 0.7};
idc = -1;
x = 0.1;
y = 0.2 + (11 / 250);
w = 0.5;
h = 0.3 - (22 / 250);
};
};
class controls {
class InfoMsg: RscStructuredText {
idc = 9221;
sizeEx = 0.020;
text = "";
x = 0.1;
y = 0.25;
w = 0.5;
h = 0.11;
};
class Title: RscText {
colorBackground[] = {0, 0, 0, 0};
idc = -1;
text = "Select Revive Radius";
x = 0.1;
y = 0.2;
w = 0.5;
h = (1 / 25);
};
class AdminCloseComp: RscButtonMenu {
idc = -1;
text = "Close";
colorBackground[] = {0.6,0,0,1};
onButtonClick = "closeDialog 0;";
x = -0.06 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.5 - (1 / 25);
w = (6.25 / 40);
h = (1 / 25);
};
class AdminCompensVer: RscButtonMenu {
idc = -1;
text = "Revive";
colorBackground[] = {0.6,0,0,1};
onButtonClick = "";
x = 0.27;
y = 0.40;
w = (6.25 / 40);
h = (1 / 25);
};
class AdminCompensTex: RscEdit {
idc = 9222;
text = "";
x = 0.04 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
y = 0.35;
w = (13 / 40);
h = (1 / 25);
};
};
};

View File

@@ -0,0 +1,7 @@
class RR {
tag = "RR";
class functions {
file = "RR_functions";
class eventSpawn {};
};
};

View File

@@ -0,0 +1,7 @@
• Scripts to help admins run events, namely:
[ ] Move all players to me within custom radius
[ ] Set all players gear to my gear (as long as I'm not in admin suit)
[ ] Teleport all downed players within custom radius to me
[ ] Spawn different unarmed helis in a circle on the salt flats
[ ] Delete all event vehicles within a 5km radius (you'll use setVariable ["RR_EventVehicle",true,true] on all the vehicles when spawning)
[ ] Any more you can think of

View File

@@ -0,0 +1,6 @@
hint "This is pretty neat";
waitUntil {isDedicated || (!isNull player)};
if (local player) then {
player addAction ["Admin Event Menu","menuGUI.sqf",1];
};

View File

@@ -0,0 +1 @@
createDialog "Life_Admin_EventRevive";

View File

@@ -0,0 +1,188 @@
version=53;
class EditorData
{
moveGridStep=1;
angleGridStep=0.2617994;
scaleGridStep=1;
autoGroupingDist=10;
toggles=1;
class ItemIDProvider
{
nextID=18;
};
class Camera
{
pos[]={3609.7917,11.725863,13118.733};
dir[]={-0.26140407,-0.33920726,-0.903754};
up[]={-0.094298676,0.94064677,-0.32602075};
aside[]={-0.96070695,7.4883428e-007,0.27787727};
};
};
binarizationWanted=0;
addons[]=
{
"A3_Characters_F",
"A3_Weapons_F_Mark_LongRangeRifles_DMR_03",
"A3_Weapons_F_Exp",
"A3_Weapons_F_Acc",
"A3_Weapons_F_Mark_Acc",
"A3_Weapons_F",
"A3_Weapons_F_Items"
};
class AddonsMetaData
{
class List
{
items=4;
class Item0
{
className="A3_Characters_F";
name="Arma 3 Alpha - Characters and Clothing";
author="Bohemia Interactive";
url="https://www.arma3.com";
};
class Item1
{
className="A3_Weapons_F_Mark";
name="Arma 3 Marksmen - Weapons and Accessories";
author="Bohemia Interactive";
url="https://www.arma3.com";
};
class Item2
{
className="A3_Weapons_F_Exp";
name="Arma 3 Apex - Weapons and Accessories";
author="Bohemia Interactive";
url="https://www.arma3.com";
};
class Item3
{
className="A3_Weapons_F";
name="Arma 3 Alpha - Weapons and Accessories";
author="Bohemia Interactive";
url="https://www.arma3.com";
};
};
};
randomSeed=2461143;
class ScenarioData
{
author="plane000";
};
class Mission
{
class Intel
{
timeOfChanges=1800.0002;
startWeather=0.30000001;
startWind=0.1;
startWaves=0.1;
forecastWeather=0.30000001;
forecastWind=0.1;
forecastWaves=0.1;
forecastLightnings=0.1;
year=2035;
month=6;
day=24;
hour=12;
minute=0;
startFogDecay=0.014;
forecastFogDecay=0.014;
};
class Entities
{
items=1;
class Item0
{
dataType="Group";
side="West";
class Entities
{
items=2;
class Item0
{
dataType="Object";
class PositionInfo
{
position[]={3609.8315,10.130984,13117.122};
angles[]={0,0.11254276,0};
};
side="West";
flags=7;
class Attributes
{
isPlayer=1;
class Inventory
{
class primaryWeapon
{
name="srifle_DMR_03_F";
optics="optic_Arco_blk_F";
flashlight="acc_flashlight";
underBarrel="bipod_01_F_blk";
class primaryMuzzleMag
{
name="20Rnd_762x51_Mag";
ammoLeft=20;
};
};
class uniform
{
typeName="U_BG_Guerilla3_1";
isBackpack=0;
class ItemCargo
{
items=1;
class Item0
{
name="FirstAidKit";
count=1;
};
};
};
class vest
{
typeName="V_PlateCarrierH_CTRG";
isBackpack=0;
class MagazineCargo
{
items=1;
class Item0
{
name="20Rnd_762x51_Mag";
count=11;
ammoLeft=20;
};
};
};
map="ItemMap";
compass="ItemCompass";
watch="ItemWatch";
radio="ItemRadio";
goggles="G_Bandanna_aviator";
hmd="NVGoggles";
headgear="H_HelmetB_desert";
};
};
id=16;
type="B_officer_F";
};
class Item1
{
dataType="Waypoint";
position[]={3609.8418,10.129766,13117.046};
class Effects
{
};
showWP="NEVER";
id=17;
type="Move";
};
};
class Attributes
{
};
id=15;
};
};
};