From 9448f3f08be85c0e5e9471f4ea4947834c82c51e Mon Sep 17 00:00:00 2001 From: FutureRave Date: Mon, 20 Mar 2023 23:52:33 +0000 Subject: [PATCH] remove some kekware leftover --- iw4x/iw4x_00/maps/mp/gametypes/_gamelogic.gsc | 2 +- iw4x/iw4x_00/maps/mp/gametypes/_menus.gsc | 33 +++++-------------- 2 files changed, 10 insertions(+), 25 deletions(-) diff --git a/iw4x/iw4x_00/maps/mp/gametypes/_gamelogic.gsc b/iw4x/iw4x_00/maps/mp/gametypes/_gamelogic.gsc index 61b80b0..66cc61c 100644 --- a/iw4x/iw4x_00/maps/mp/gametypes/_gamelogic.gsc +++ b/iw4x/iw4x_00/maps/mp/gametypes/_gamelogic.gsc @@ -2188,7 +2188,7 @@ endGame( winner, endReasonText, nukeDetonated ) foreach ( player in level.players ) player.pers["stats"] = player.stats; - //logString( "game ended" ); + logString( "game ended" ); if( !nukeDetonated && !level.postGameNotifies ) { if ( !wasOnlyRound() ) diff --git a/iw4x/iw4x_00/maps/mp/gametypes/_menus.gsc b/iw4x/iw4x_00/maps/mp/gametypes/_menus.gsc index 3d67486..3067dfa 100644 --- a/iw4x/iw4x_00/maps/mp/gametypes/_menus.gsc +++ b/iw4x/iw4x_00/maps/mp/gametypes/_menus.gsc @@ -123,9 +123,9 @@ onMenuResponse() { self endon("disconnect"); - for(;;) + for (;;) { - self waittill("menuresponse", menu, response); + self waittill( "menuresponse", menu, response ); if ( response == "back" ) { @@ -142,14 +142,14 @@ onMenuResponse() continue; } - if(response == "changeteam") + if (response == "changeteam") { self closepopupMenu(); self closeInGameMenu(); self openpopupMenu(game["menu_team"]); } - if(response == "changeclass_marines" ) + if (response == "changeclass_marines") { self closepopupMenu(); self closeInGameMenu(); @@ -171,26 +171,11 @@ onMenuResponse() continue; } - if(response == "changeclass_marines_splitscreen" ) + if (response == "changeclass_marines_splitscreen" ) self openpopupMenu( "changeclass_marines_splitscreen" ); - if(response == "changeclass_opfor_splitscreen" ) + if (response == "changeclass_opfor_splitscreen" ) self openpopupMenu( "changeclass_opfor_splitscreen" ); - - if(response == "endgame") - { - if(level.splitscreen) - { - endparty(); - - if ( !level.gameEnded ) - { - level thread maps\mp\gametypes\_gamelogic::forceEnd(); - } - } - - continue; - } if ( response == "endround" ) { @@ -201,7 +186,7 @@ onMenuResponse() if ( !level.gameEnded ) { - setDvar("sv_dontrotate", 1); + setDvar( "sv_dontRotate", 1 ); level thread maps\mp\gametypes\_gamelogic::forceEnd(); } else @@ -213,9 +198,9 @@ onMenuResponse() continue; } - if(menu == game["menu_team"]) + if (menu == game["menu_team"]) { - switch(response) + switch (response) { case "allies": self [[level.allies]]();