Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Integration of Potato Spectator and GCam by Jester2138
- Current bugs:
- 1. User can enter GCam and leave GCam once only, a second entering of GCam fails because the
- GCamKill variable isn't getting set back to "false" by the commands in the first two files
- This can be worked around by setting GCamKill = false in the debug console, then user can enter
- GCam successfully again
- 2. The STHud persists in GCam
- */
- //Potato_spectate\displays.hpp
- //Insert the following after line 348:
- class GCamButton: RscButton {
- idc = GCAM_IDC;
- onButtonClick="GCamKill = false;[unit] call potato_spectate_fnc_exit;[unit] execVM 'gcam\gcam.sqf'";
- x = safezoneX + safezoneW - 0.4;
- y = safezoneY + safezoneH - 0.08;
- w = 0.2'
- h = 0.08;
- text = "Open GCam";
- colorBackground[] = {0,0,0,0.5};
- sizeEx = QUOTE(1.0 * YFACTOR);
- };
- //Potato_spectate\config.cpp
- //Insert the following after line 383:
- class GCamButton: RscButton
- {
- idc=751887;
- onButtonClick="GCamKill = false;[unit] call potato_spectate_fnc_exit;[unit] execVM 'span class="re5"> gcam\gcam.sqf'";
- x = safezoneX + safezoneW - 0.4;
- y = safezoneY + safezoneH - 0.08;
- w = 0.2'
- h = 0.08;
- text = "Open GCam";
- colorBackground[] = {0,0,0,0.5};
- sizeEx="1.0 * ((((safeZoneW / safeZoneH) min 1.2) / 1.2) / 25)";
- };
- //Gcam\gcam_component.hpp
- //Insert the following after line 828:
- class GCamButton: GCam_DialogBase_Button
- {
- idc = 5101;
- onButtonClick="GCamKill = true;[unit] call potato_spectate_fnc_setup";
- x = safezoneX + safezoneW - 1;
- y = safezoneY + safezoneH - 0.08;
- w = 0.2'
- h = 0.08;
- text = "Close GCam";
- colorBackground[] = {0,0,0,0.5};
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement