Skip to content

Commit

Permalink
gsx update
Browse files Browse the repository at this point in the history
Same update as previous one for the non cod4x version.
  • Loading branch information
kristiandz committed Mar 25, 2019
1 parent 9c59f3d commit 7887aa2
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions codjumper/_cod_jumper_utility.gsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#include codjumper\_cj_utility;
#include common_scripts\utility;

init()
{
level.cj_block_clienthud = 0;
}

waitHudRefresh()
{
self endon("disconnect");
Expand All @@ -25,7 +20,6 @@ setupDefaults()
self waittill("spawned");
while(!isDefined(self.cj) || !isDefined(self.cj["hud"])) wait 0.05;
self.client_fps = int(getmaxfps());
self.cj_block_clienthud = 0;
self thread waitHudRefresh();
self thread updateClientVars();
}
Expand Down Expand Up @@ -72,14 +66,11 @@ playerHUDLoop()
self endon( "joined_spectators" );
self endon( "refresh_huds");
self destroyPlayerHUDs();
if(level.cj_block_clienthud || self.cj_block_clienthud) return;

//if(self codjumper\_cj_utility::get_cjcfg("CJ_HUD_FPS_CLIENT") == 1)
//{
self.cj["hud"]["fps"] = addTextHud(self, 0, -187, 1 , "center", "middle", "center","middle",2.5,0);
self.cj["hud"]["fps"].hidewheninmenu = 1;
self.cj["hud"]["fps"] setValue(self.client_fps);
//}
self.cj["hud"]["fps"] = addTextHud(self, 0, -187, 1 , "center", "middle", "center","middle",2.5,0);
self.cj["hud"]["fps"].hidewheninmenu = 1;
self.cj["hud"]["fps"] setValue(self.client_fps);

last_fps = self.client_fps;
while(1)
{
Expand Down

0 comments on commit 7887aa2

Please sign in to comment.