-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from jschmidt92/master
Added Lighting Effects & Fixed missing ";" RPT log error.
- Loading branch information
Showing
10 changed files
with
2,101 additions
and
363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Oops, something went wrong.