-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
60 additions
and
2 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
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
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,8 @@ | ||
class diary { | ||
tag = "diary"; | ||
class functions { | ||
file = "scripts\diary\functions"; | ||
class postInit{postInit = 1;}; | ||
class placeMortarOnTerrain{}; | ||
}; | ||
}; |
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,27 @@ | ||
/*///////////////////////////////////////////////// | ||
Author: Bernhard | ||
File: fn_placeMortarOnTerrain.sqf | ||
Parameters: | ||
Return: none | ||
This function is a workaround for a suspected ACE glitch. | ||
During unloading of mortars quite a lot of them disappear. | ||
They are then located below the surface. | ||
Using this function they are being brought back to the surface. | ||
See https://github.com/acemod/ACE3/issues/10010 for more information. | ||
*/////////////////////////////////////////////// | ||
|
||
private _mortar = localNamespace getVariable "shootnscoot_lastUnloadedMortar"; | ||
|
||
if (!isNil "_mortar") then { | ||
private _pos = getPosATL _mortar; | ||
diag_log format ["fn_placeMortarOnTerrain.sqf: getPosATL=%1", _pos]; // logging output might help to narrow down the problem | ||
_mortar setPosATL [_pos#0, _pos#1, 0]; // place at same x and y coordinate, but with z coordinate on the surface | ||
} else { | ||
hint parseText "This restore function works on the last mortar that you've unloaded.<br/><t color='#ff0000'>You haven`t unloaded a mortar yet.</t>"; | ||
}; |
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,13 @@ | ||
if !(hasInterface) exitWith {}; | ||
|
||
// create root of ingame documentation | ||
player createDiarySubject ["shootnscoot_diarySubject","Shoot and Scoot"]; | ||
|
||
// create documentation topics for different game aspects | ||
|
||
// mortar docu | ||
player createDiaryRecord ["shootnscoot_diarySubject", ["Mortar","During past games quite a few <font color='#00ffff'>Mk6 mortars got lost after unloading them</font> from the vehicle.<br/> | ||
Using the link below you should be able to restore them.<br/> | ||
<executeClose expression='call diary_fnc_placeMortarOnTerrain'>Fix lost mortar</executeClose><br/> | ||
<br/> | ||
In case it doesn't work for you --> ping Zeus"]]; |