Advertisement
Guest User

Untitled

a guest
Jan 15th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.69 KB | None | 0 0
  1. /*
  2.  
  3. Integration of Potato Spectator and GCam by Jester2138
  4.  
  5. Current bugs:
  6.  
  7. 1. User can enter GCam and leave GCam once only, a second entering of GCam fails because the
  8. GCamKill variable isn't getting set back to "false" by the commands in the first two files
  9. This can be worked around by setting GCamKill = false in the debug console, then user can enter
  10. GCam successfully again
  11. 2. The STHud persists in GCam
  12.  
  13. */
  14.  
  15. //Potato_spectate\displays.hpp
  16. //Insert the following after line 348:
  17.  
  18.         class GCamButton: RscButton {
  19.             idc = GCAM_IDC;
  20.            
  21.             onButtonClick="GCamKill = false;[unit] call potato_spectate_fnc_exit;[unit] execVM 'gcam\gcam.sqf'";
  22.             x = safezoneX + safezoneW - 0.4;
  23.             y = safezoneY + safezoneH - 0.08;
  24.             w = 0.2'
  25.             h = 0.08;
  26.             text = "Open GCam";
  27.             colorBackground[] = {0,0,0,0.5};
  28.             sizeEx = QUOTE(1.0 * YFACTOR);
  29.         };
  30.        
  31. //Potato_spectate\config.cpp
  32. //Insert the following after line 383:
  33.  
  34.         class GCamButton: RscButton
  35.         {
  36.             idc=751887;
  37.             onButtonClick="GCamKill = false;[unit] call potato_spectate_fnc_exit;[unit] execVM 'span class="re5"> gcam\gcam.sqf'";
  38.             x = safezoneX + safezoneW - 0.4;
  39.             y = safezoneY + safezoneH - 0.08;
  40.             w = 0.2'
  41.             h = 0.08;
  42.             text = "Open GCam";
  43.             colorBackground[] = {0,0,0,0.5};
  44.             sizeEx="1.0 * ((((safeZoneW / safeZoneH) min 1.2) / 1.2) / 25)";
  45.         };
  46.        
  47. //Gcam\gcam_component.hpp
  48. //Insert the following after line 828:
  49.  
  50.  
  51.         class GCamButton: GCam_DialogBase_Button
  52.         {
  53.             idc = 5101;
  54.            
  55.             onButtonClick="GCamKill = true;[unit] call potato_spectate_fnc_setup";
  56.            
  57.             x = safezoneX + safezoneW - 1;
  58.             y = safezoneY + safezoneH - 0.08;
  59.             w = 0.2'
  60.             h = 0.08;
  61.             text = "Close GCam";
  62.             colorBackground[] = {0,0,0,0.5};
  63.         };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement