-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5c10113
Showing
6 changed files
with
52 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
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,7 @@ | ||
# FS22_BetterAILights | ||
|
||
<p align="left"> | ||
<img src="https://github.com/jtsage/FS22_BetterAILights/raw/main/modIcon.png"> | ||
</p> | ||
|
||
Turns on AI lights when it's raining or snowing too. |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,25 @@ | ||
---------------------------------------------------------------------------- | ||
-- @Author: JTSage --------------------------------------------------------- | ||
---------------------------------------------------------------------------- | ||
|
||
aiBetterLights = {}; | ||
|
||
function aiBetterLights:updateAILights(isWorking) | ||
local spec = self.spec_lights | ||
|
||
if not g_currentMission.environment.isSunOn or g_currentMission.environment.weather:getIsRaining() then | ||
local typeMask = spec.aiLightsTypesMask | ||
if isWorking then | ||
typeMask = spec.aiLightsTypesMaskWork | ||
end | ||
if spec.lightsTypesMask ~= typeMask then | ||
self:setLightsTypesMask(typeMask) | ||
end | ||
else | ||
if spec.lightsTypesMask ~= 0 then | ||
self:setLightsTypesMask(0) | ||
end | ||
end | ||
end | ||
|
||
Lights.updateAILights = Utils.overwrittenFunction(Lights.updateAILights, aiBetterLights.updateAILights); |
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,18 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="no" ?> | ||
<modDesc descVersion="63"> | ||
<title> | ||
<en>Better AI Lights</en> | ||
<de>Bessere AI-Lichter</de> | ||
</title> | ||
<author>JTSage</author> | ||
<version>1.0.0.0</version> | ||
<description> | ||
<en><![CDATA[Turns on helper lights during rain and snow]]></en> | ||
<de><![CDATA[Schaltet die Hilfslichter bei Regen und Schnee ein]]></de> | ||
</description> | ||
<iconFilename>icon.dds</iconFilename> | ||
<multiplayer supported="true"/> | ||
<extraSourceFiles> | ||
<sourceFile filename="aiBetterLights.lua" /> | ||
</extraSourceFiles> | ||
</modDesc> |