Advertisement
Guest User

Untitled

a guest
Jan 15th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.66 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.  
  12. */
  13.  
  14. //Potato_spectate\displays.hpp
  15. //Insert the following after line 348:
  16.  
  17.         class GCamButton: RscButton {
  18.             idc = GCAM_IDC;
  19.            
  20.             onButtonClick="GCamKill = false;[unit] call potato_spectate_fnc_exit;[unit] execVM 'gcam\gcam.sqf'";
  21.             x = safezoneX + safezoneW - 0.4;
  22.             y = safezoneY + safezoneH - 0.08;
  23.             w = 0.2'
  24.             h = 0.08;
  25.             text = "Open GCam";
  26.             colorBackground[] = {0,0,0,0.5};
  27.             sizeEx = QUOTE(1.0 * YFACTOR);
  28.         };
  29.        
  30. //Potato_spectate\config.cpp
  31. //Insert the following after line 383:
  32.  
  33.         class GCamButton: RscButton
  34.         {
  35.             idc=751887;
  36.             onButtonClick="GCamKill = false;[unit] call potato_spectate_fnc_exit;[unit] execVM 'span class="re5"> gcam\gcam.sqf'";
  37.             x = safezoneX + safezoneW - 0.4;
  38.             y = safezoneY + safezoneH - 0.08;
  39.             w = 0.2'
  40.             h = 0.08;
  41.             text = "Open GCam";
  42.             colorBackground[] = {0,0,0,0.5};
  43.             sizeEx="1.0 * ((((safeZoneW / safeZoneH) min 1.2) / 1.2) / 25)";
  44.         };
  45.        
  46. //Gcam\gcam_component.hpp
  47. //Insert the following after line 828:
  48.  
  49.  
  50.         class GCamButton: GCam_DialogBase_Button
  51.         {
  52.             idc = 5101;
  53.            
  54.             onButtonClick="GCamKill = true;[unit] call potato_spectate_fnc_setup";
  55.            
  56.             x = safezoneX + safezoneW - 1;
  57.             y = safezoneY + safezoneH - 0.08;
  58.             w = 0.2'
  59.             h = 0.08;
  60.             text = "Close GCam";
  61.             colorBackground[] = {0,0,0,0.5};
  62.         };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement