SQF Admin Event functions
This commit is contained in:
2
SQF/AdminEventMenu.Altis/RR_functions/fn_eventSpawn.sqf
Normal file
2
SQF/AdminEventMenu.Altis/RR_functions/fn_eventSpawn.sqf
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
|
||||
1447
SQF/AdminEventMenu.Altis/defines.hpp
Normal file
1447
SQF/AdminEventMenu.Altis/defines.hpp
Normal file
File diff suppressed because it is too large
Load Diff
8
SQF/AdminEventMenu.Altis/description.ext
Normal file
8
SQF/AdminEventMenu.Altis/description.ext
Normal file
@@ -0,0 +1,8 @@
|
||||
disableAI = 1;
|
||||
|
||||
#include "defines.hpp"
|
||||
#include "eventRevive.hpp"
|
||||
|
||||
class cfgFunctions {
|
||||
#include "functions.hpp"
|
||||
};
|
||||
79
SQF/AdminEventMenu.Altis/eventRevive.hpp
Normal file
79
SQF/AdminEventMenu.Altis/eventRevive.hpp
Normal 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);
|
||||
};
|
||||
};
|
||||
};
|
||||
7
SQF/AdminEventMenu.Altis/functions.hpp
Normal file
7
SQF/AdminEventMenu.Altis/functions.hpp
Normal file
@@ -0,0 +1,7 @@
|
||||
class RR {
|
||||
tag = "RR";
|
||||
class functions {
|
||||
file = "RR_functions";
|
||||
class eventSpawn {};
|
||||
};
|
||||
};
|
||||
7
SQF/AdminEventMenu.Altis/info.txt
Normal file
7
SQF/AdminEventMenu.Altis/info.txt
Normal 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
|
||||
6
SQF/AdminEventMenu.Altis/init.sqf
Normal file
6
SQF/AdminEventMenu.Altis/init.sqf
Normal 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];
|
||||
};
|
||||
1
SQF/AdminEventMenu.Altis/menuGUI.sqf
Normal file
1
SQF/AdminEventMenu.Altis/menuGUI.sqf
Normal file
@@ -0,0 +1 @@
|
||||
createDialog "Life_Admin_EventRevive";
|
||||
188
SQF/AdminEventMenu.Altis/mission.sqm
Normal file
188
SQF/AdminEventMenu.Altis/mission.sqm
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user