Skip to content

Commit

Permalink
Merge pull request #68 from jschmidt92/master
Browse files Browse the repository at this point in the history
Added Lighting Effects & Fixed missing ";" RPT log error.
  • Loading branch information
DanB-dev authored Jun 25, 2023
2 parents b181e41 + 88e773e commit ae7a107
Show file tree
Hide file tree
Showing 10 changed files with 2,101 additions and 363 deletions.
2 changes: 1 addition & 1 deletion VKN_Misc/Displays/VKN_Template_Tool_Home.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class VKN_Template_Tool_Home {
class startText: RscText
{
style = 2;
sizeEx = "5 * (1 / (getResolution select 3)) * pixelGrid * 0.5"
sizeEx = "5 * (1 / (getResolution select 3)) * pixelGrid * 0.5";
idc = 1001;

text = "Start Tool"; //--- ToDo: Localize;
Expand Down
710 changes: 370 additions & 340 deletions VKN_Objects/Configs/Tahoes.hpp

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions VKN_Objects/Vehicles/tahoe_08/beaconsOff.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
private _vcl = _this;

hint "Beacons ON";

if ((_vcl getVariable "beaconLights")) exitWith {
hint "Beacons OFF";

_vcl setVariable ["beaconLights", false, true];
_vcl setVariable ['code2', 0, true];
_vcl setVariable ['code3', 0, true];
};
exit;
49 changes: 49 additions & 0 deletions VKN_Objects/Vehicles/tahoe_08/beaconsOn.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
private ["_vcl", "_ambient", "_beaconLights", "_brightness"];

_vcl = _this;
_beaconLights = "\VKN_Objects\Vehicles\tahoe_08\data\emerglights1.paa";
_brightness = 1500;

if ((_vcl getVariable "beaconLights")) exitWith {};
exit;

private ["_vcl", "_ambient", "_beaconLights", "_brightness"];

_vcl = _this;
_beaconLights = "\VKN_Objects\Vehicles\tahoe_08\data\emerglights1.paa";
_brightness = 1500;


_vcl setVariable ["beaconLights", false, true];
_vcl setVariable ["beaconLights", true, true];

while { alive _vcl } do {
if (_vcl getVariable "beaconLights") then {
_ambient = "#lightpoint" createVehicle (getPos _vcl);
_ambient setLightIntensity _brightness;
_ambient setLightAmbient [0, 0, 0];
_ambient setLightColor [0, 0, 1];
_ambient lightAttachObject [_vcl, [0, 0.25, 1.25]];

sleep 0.2;

deleteVehicle _ambient;

_ambient = "#lightpoint" createVehicle (getPos _vcl);
_ambient setLightIntensity _brightness;
_ambient setLightAmbient [0, 0, 0];
_ambient setLightColor [1, 0, 0];
_ambient lightAttachObject [_vcl, [0, 0.25, 1.25]];

sleep 0.2;

deleteVehicle _ambient;
} else {
if (!isNil "_ambient") then {
deleteVehicle _ambient;
};
};

sleep 0.2;
};
exit;
31 changes: 31 additions & 0 deletions VKN_Objects/Vehicles/tahoe_08/code2Off.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
private ["_vcl", "_lights"];

_vcl = _this;
_lights = "\VKN_Objects\Vehicles\tahoe_08\data\emerglights1.paa";
_lights1 = "\VKN_Objects\Vehicles\tahoe_08\data\tahoe_lights_emit_co.paa";

hint localize "Beacons ON";

if ((_vcl getVariable "lights")) exitWith {
hint localize "Beacons OFF";

_vcl setVariable ["lights", false, true];

sleep 0.5;

_vcl setObjectTextureGlobal [4, ""];
_vcl setObjectTextureGlobal [5, ""];
_vcl setObjectTextureGlobal [6, ""];
_vcl setObjectTextureGlobal [7, ""];
_vcl setObjectTextureGlobal [8, ""];
_vcl setObjectTextureGlobal [9, ""];
_vcl setObjectTextureGlobal [10, ""];
_vcl setObjectTextureGlobal [11, ""];
_vcl setObjectTextureGlobal [12, ""];
_vcl setObjectTextureGlobal [13, ""];
_vcl setObjectTextureGlobal [14, ""];
_vcl setObjectTextureGlobal [15, ""];
_vcl setObjectTextureGlobal [16, ""];
_vcl setObjectTextureGlobal [17, ""];
};
exit;
Loading

0 comments on commit ae7a107

Please sign in to comment.