Skip to content

Commit

Permalink
Overflow preventive
Browse files Browse the repository at this point in the history
Added smaller waits at player stats and cvars being read/writen by the server as a measure of preventing overflow of commands.
  • Loading branch information
kristiandz committed Mar 29, 2019
1 parent bd5c86c commit 0321bdb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions codjumper/_graphic_menu_load.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ onPlayerSpawn()
break;
}

wait 0.3;

switch(fx)
{
case 1 :
Expand Down Expand Up @@ -103,6 +105,8 @@ onPlayerSpawn()
break;
}

wait 0.3;

switch(dec)
{
case 0 :
Expand Down
2 changes: 2 additions & 0 deletions emz/shop.gsc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
main()
{
wait 0.5;
level.modelcost[0]=1000;
level.modelcost[1]=2000;
level.modelcost[2]=3500;
Expand Down Expand Up @@ -44,6 +45,7 @@ spawnPlayer()
}
connect()
{
wait 0.5;
self.pers["points"] = int(self getStat(2561));
self setClientDvars("showpoints",1,
"shop0","Captain Price - 1000$",
Expand Down

0 comments on commit 0321bdb

Please sign in to comment.