Skip to content

Commit

Permalink
Minor Fixes (#167)
Browse files Browse the repository at this point in the history
Co-authored-by: JoramD0 <j.davids@hotmail.nl>
  • Loading branch information
Mike-MF and JoramD0 authored Oct 2, 2022
1 parent 365897d commit 82eb217
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 44 deletions.
1 change: 1 addition & 0 deletions Olympus.Stratis/functions/fn_featureOverview.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ _player createDiaryRecord ["features", ["Chat Commands", "
<br/>
<br/><font color='#E3D310'>#tac-cleanup:</font color>
<br/>Type `#tac-cleanup` in chat to delete any items on the ground in a 10m range.
<br/>To extend the cleanup range type `#tac-cleanup <NUMBER>` in chat (number in meters between 1 and 100 meters).
<br/>
<br/><font color='#E3D310'>#tac-grenade-reset:</font color>
<br/>Type `#tac-grenade-reset` in chat to reset the grenade building.
Expand Down
17 changes: 8 additions & 9 deletions Olympus.Stratis/functions/fn_initArsenalCrate.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ private _rangePistol = [
"ACE_EarPlugs",
"V_Rangemaster_belt",
"tacs_Walther_P99",
"16Rnd_9x21_Mag"
"tacgt_17Rnd_9x19mm_Walther_Ball"
];

private _rangeRifle = [
"ACE_fieldDressing",
"ACE_EarPlugs",
"V_Rangemaster_belt",
"CUP_arifle_M4A1_black",
"30Rnd_556x45_Stanag_green"
"tacgt_30Rnd_556x45_Ball_EMAG"
];

private _engineer = [
Expand Down Expand Up @@ -145,21 +145,20 @@ private _machineGun = [
"ACE_EarPlugs",
"V_Rangemaster_belt",
"hlc_m249_pip1",
"hlc_200rnd_556x45_M_SAW",
"bwa3_optic_compm2",
"tacgt_200Rnd_556x45_Ball_Belt",
"tacgt_200Rnd_556x45_Ball_Tracer_Belt",
"cup_optic_elcanm145",
"bwa3_optic_zo4x30_microt2",
"tacs_Backpack_Carryall_DarkBlack"
];

private _marksman = [
"ACE_fieldDressing",
"ACE_EarPlugs",
"arifle_MXM_Black_F",
"30Rnd_65x39_caseless_black_mag",
"tacgt_30Rnd_65x39_Ball_MX_Black",
"optic_hamr",
"srifle_DMR_03_F",
"20Rnd_762x51_Mag",
"tacgt_20Rnd_762x51_Ball",
"optic_mrco",
"ace_optic_mrco_2d",
"tacs_EBR_Black_F",
Expand All @@ -174,9 +173,9 @@ private _weaponsHandling = [
"ACE_EarPlugs",
"V_Rangemaster_belt",
"CUP_arifle_M4A1_black",
"30Rnd_556x45_Stanag_green",
"tacgt_30Rnd_556x45_Ball_EMAG",
"tacs_Walther_P99",
"16Rnd_9x21_Mag"
"tacgt_17Rnd_9x19mm_Walther_Ball"
];

// Init stuff
Expand Down
36 changes: 24 additions & 12 deletions Olympus.Stratis/init.sqf
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#include "script_component.hpp"
[{
// Disable Ambient Animals
[{time > 0}, {enableEnvironment [false, false];}] call CBA_fnc_waitUntilAndExecute;

// Sets ACRE2 channel names
{
[_x, "default", "theseus"] call acre_api_fnc_copyPreset;
Expand All @@ -22,32 +19,47 @@
// Environment Control Event Handlers
[QGVAR(setTime), {
["Environment changing..."] call CBA_fnc_notify;
skipTime skipTime ((_this select 0) - daytime); // Skip forward to a specific time

if (isServer) then {
skipTime ((_this select 0) - daytime); // Skip time (Server Execution)
};
forceWeatherChange;
}] call CBA_fnc_addEventHandler;

[QGVAR(setDate), {
["Environment changing..."] call CBA_fnc_notify;
setDate (_this select 0); // Set date
forceWeatherChange;
setDate (_this select 0); // Set date (Local Execution)

if (isServer) then {
forceWeatherChange;
};
}] call CBA_fnc_addEventHandler;

[QGVAR(setFog), {
["Environment changing..."] call CBA_fnc_notify;
0 setFog (_this select 0); // Set fog
forceWeatherChange;

if (isServer) then {
0 setFog (_this select 0); // Set fog (Server Execution)
forceWeatherChange;
};
}] call CBA_fnc_addEventHandler;

[QGVAR(setOvercast), {
["Environment changing..."] call CBA_fnc_notify;
0 setOvercast (_this select 0); // Set overcast
forceWeatherChange;
0 setOvercast (_this select 0); // Set overcast (Local Execution)

if (isServer) then {
forceWeatherChange;
};
}] call CBA_fnc_addEventHandler;

[QGVAR(setRain), {
["Environment changing..."] call CBA_fnc_notify;
0 setRain (_this select 0); // Set rain
forceWeatherChange;

if (isServer) then {
0 setRain (_this select 0); // Set rain (Server Execution)
forceWeatherChange;
};
}] call CBA_fnc_addEventHandler;

// Medical Event Handlers
Expand Down
3 changes: 3 additions & 0 deletions Olympus.Stratis/initPlayerLocal.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@

call FUNC(addChatCommands);

// Disable Ambient Animals
[{time > 0}, {enableEnvironment [false, true];}] call CBA_fnc_waitUntilAndExecute;

// Types "OLYMPUS" text on the screen, letter by letter, cursor blinking.
[
[
Expand Down
45 changes: 22 additions & 23 deletions Olympus.Stratis/mission.sqm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class EditorData
angleGridStep=0.2617994;
scaleGridStep=100;
autoGroupingDist=10;
toggles=586;
toggles=578;
class ItemIDProvider
{
nextID=2593;
Expand All @@ -16,14 +16,14 @@ class EditorData
};
class LayerIndexProvider
{
nextID=11218;
nextID=11346;
};
class Camera
{
pos[]={1830.7411,87.41507,3442.8489};
dir[]={0.70859891,-0.5194416,0.47757328};
up[]={0.4307456,0.85450399,0.29030851};
aside[]={0.55888629,-3.2247044e-008,-0.82924765};
pos[]={1878.9436,28.272432,3505.4109};
dir[]={0.92180288,-0.29428497,0.25235593};
up[]={0.28384304,0.95571786,0.077705562};
aside[]={0.2640487,5.7742e-008,-0.9645142};
};
};
binarizationWanted=0;
Expand Down Expand Up @@ -25661,7 +25661,7 @@ class Mission
};
id=651;
type="Land_Pallet_F";
atlOffset=1.4483433;
atlOffset=1.448328;
};
class Item10
{
Expand All @@ -25679,7 +25679,7 @@ class Mission
};
id=652;
type="Land_Pallet_F";
atlOffset=1.4487;
atlOffset=1.4486847;
};
class Item11
{
Expand Down Expand Up @@ -28089,8 +28089,8 @@ class Mission
dataType="Object";
class PositionInfo
{
position[]={5149.4331,61.707611,3728.9661};
angles[]={0.084796004,3.2449675,5.9666939};
position[]={5153.8164,75.543457,3646.8091};
angles[]={0,3.2449675,0};
};
side="Empty";
flags=4;
Expand All @@ -28100,59 +28100,58 @@ class Mission
};
id=1784;
type="TargetP_Inf3_F";
atlOffset=0.15099716;
};
class Item29
{
dataType="Object";
class PositionInfo
{
position[]={5145.0942,63.379959,3727.0164};
position[]={5149.4775,77.911705,3644.8594};
angles[]={0.1046163,3.2449675,5.9332108};
};
side="Empty";
flags=4;
class Attributes
{
name="rangeMachineGunTarget12";
};
id=1785;
type="TargetP_Inf3_F";
atlOffset=0.10800171;
atlOffset=2.3685837;
};
class Item30
{
dataType="Object";
class PositionInfo
{
position[]={5155.9854,60.078773,3729.4272};
position[]={5160.3687,75.509094,3647.2703};
angles[]={0,3.2449675,0};
};
side="Empty";
flags=4;
class Attributes
{
name="rangeMachineGunTarget14";
};
id=1786;
type="TargetP_Inf3_F";
atlOffset=0.9280014;
};
class Item31
{
dataType="Object";
class PositionInfo
{
position[]={5159.2744,59.221451,3728.7441};
position[]={5163.6577,73.753197,3646.5872};
angles[]={0,3.2509365,0};
};
side="Empty";
flags=4;
class Attributes
{
name="rangeMachineGunTarget15";
};
id=1787;
type="TargetP_Inf3_F";
atlOffset=1.4070015;
atlOffset=-0.58180237;
};
class Item32
{
Expand Down Expand Up @@ -28334,7 +28333,7 @@ class Mission
};
};
id=1774;
atlOffset=1.7415009;
atlOffset=1.7561646;
};
class Item2
{
Expand Down Expand Up @@ -29044,7 +29043,7 @@ class Mission
dataType="Object";
class PositionInfo
{
position[]={5154.9443,60.706135,3727.4651};
position[]={5159.3276,75.237877,3645.3081};
angles[]={0,3.1433196,0};
};
side="Empty";
Expand All @@ -29055,7 +29054,7 @@ class Mission
};
id=1783;
type="Land_d_Stone_HouseSmall_V1_F";
atlOffset=-3.8146973e-006;
atlOffset=-0.7359314;
};
class Item27
{
Expand Down Expand Up @@ -29093,7 +29092,7 @@ class Mission
};
};
id=1776;
atlOffset=50.090897;
atlOffset=58.383324;
};
class Item4
{
Expand Down Expand Up @@ -29259,7 +29258,7 @@ class Mission
};
};
id=1772;
atlOffset=24.48056;
atlOffset=24.912323;
};
class Item9
{
Expand Down

0 comments on commit 82eb217

Please sign in to comment.