forked from ocapmod/ocap-legacy
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
additional patameters for mission exporting
- Loading branch information
Showing
4 changed files
with
26 additions
and
6 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 |
---|---|---|
@@ -1,9 +1,21 @@ | ||
#include "\userconfig\ocap\config.hpp" | ||
#include "script_macros.hpp" | ||
|
||
ocap_capture = false; | ||
ocap_captureFrameNo = 0; | ||
ocap_needToSave = [false, true] select (ocap_minMissionTime < 10); | ||
|
||
// Add event missions | ||
call ocap_fnc_addEventMission; | ||
[":START:", [worldName, briefingName, getMissionConfigValue ["author", ""], ocap_frameCaptureDelay]] call ocap_fnc_extension; | ||
0 spawn ocap_fnc_startCaptureLoop; | ||
0 spawn ocap_fnc_startCaptureLoop; | ||
|
||
0 spawn { | ||
if (ocap_needToSave) exitWith {}; | ||
LOG(["Waiting freeze end!"]); | ||
waitUntil {sleep 1.4; missionNamespace getVariable["WMT_pub_frzState", 3] >= 3}; | ||
LOG(["Waiting until ocap_minMissionTime ends"]); | ||
sleep ocap_minMissionTime; | ||
LOG(["ocap_needToSave is set to true"]); | ||
ocap_needToSave = true; | ||
}; |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
ocap_nameServer = 'TvT'; | ||
ocap_minPlayerCount = 60; | ||
ocap_frameCaptureDelay = 1; | ||
ocap_excludeFromRecord = ["ACE_friesAnchorBar"]; | ||
ocap_excludeFromRecord = ["ACE_friesAnchorBar"]; | ||
ocap_saveMissionEnded = true; | ||
ocap_minMissionTime = 90; |