0.0.16 • Published 7 years ago
grad_replay v0.0.16
grad_replay
arma3 in-game mission replay script (working but wip)
records player and AI movement and replays at end of mission
required mods
CBA
How to install
1. Download Release
2. extract GRAD_replay folder into /node_modules
3. Add the following to the description.ext
#include "node_modules\grad_replay\ui\defines.hpp"
#include "node_modules\grad_replay\ui\dialog.hpp"
// if CfgFunctions already exists, just put the #include part inside
class CfgFunctions {
#include "node_modules\grad_replay\cfgFunctions.hpp"
};
4. Initialize script
Init.sqf:
[2] call GRAD_replay_fnc_init; // number is precision of replay, 2 means every 2 seconds one snapshot
5. Put this when you want to replay (just before you want to end the mission)
Must be executed on server only!
call GRAD_replay_fnc_stopRecord;
[{
REPLAY_FINISHED
}, {
["END1"] remoteExec ["endMission",0,false]; // your custom end mission call or whatever you want to do after replay
}, []] call CBA_fnc_waitUntilAndExecute;
Important
Currently there is no helper function to resume normal gameplay after replay has played, this means all assets will be frozen and TFAR spectator channel will be set for all players, furthermore every wound will be healed and all spectator cams left.
Customization
change variables in functions/server/fn_init.sqf
GRAD_REPLAY_SIDES
sides trackedGRAD_REPLAY_AI_VEHICLES_TRACKED
if ai vehicles are trackedGRAD_REPLAY_AI_ONFOOT_TRACKED
if ai on foot is trackedREPLAY_STEPS_PER_TICK
steps played back at once
Script commands
to pause recording, set GRAD_REPLAY_RECORDING_PAUSED
to true on server / false to resume