Skip to content

Commit

Permalink
Attempt to hijack RscDisplayEGSpectator function
Browse files Browse the repository at this point in the history
  • Loading branch information
3Mydlo3 committed Aug 14, 2024
1 parent 33dc893 commit 51420ec
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions addons/spectator/CfgScriptPaths.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class CfgScriptPaths
{
AFModsSpectatorGUI = QPATHTOF(functions\);
};
5 changes: 5 additions & 0 deletions addons/spectator/RscDisplayEGSpectator.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class RscDisplayEGSpectator
{
scriptName = "fnc_rscDisplayEGSpectator";
scriptPath = "AFModsSpectatorGUI";
};
1 change: 1 addition & 0 deletions addons/spectator/XEH_PREP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ PREP(EGSpectator); // This duplicated as BIS_fnc_EGSpectator in CfgFunctions so
PREP(enable);
PREP(reloadLocal);
PREP(restart);
PREP(rscDisplayEGSpectator);
PREP(start);
PREP(stop);
PREP(toggle);
Expand Down
2 changes: 2 additions & 0 deletions addons/spectator/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ class CfgPatches {

#include "CfgEventHandlers.hpp"
#include "CfgFunctions.hpp"
#include "CfgScriptPaths.hpp"
#include "RscDisplayEGSpectator.hpp"

0 comments on commit 51420ec

Please sign in to comment.