GSC Map Change Improved (No More Player Left Game, Disconnecting, Map picture Updated)

TheNiceUb3r

Veteran
Messages
45
Reaction score
46
Points
793
I was messing around tonight and thought I would post this since its something I got done tonight, Its pretty much an improvement on the map change that everyone uses but now it will update the picture to the map you are changing it to also fixes the checkerboard box that comes up and it bugging out kicking you randomly giving session errors and also lets people join once map has been changed which before would say player has left game.
Hope you guys enjoy I know it is simple but very useful!

New Change Map Code
Code:
ChangeMapFixed(MapName)
{
self iprintlnbold("^5Map Name Being Changed To ^2"+MapName+"!");
wait 0.50;
setDvar("ls_mapname", MapName);
setDvar("mapname", MapName);
setDvar("party_mapname", MapName);
setDvar("ui_mapname", MapName);
setDvar("ui_currentMap", MapName);
setDvar("ui_mapname", MapName);
setDvar("ui_preview_map", MapName);
setDvar("ui_showmap", MapName);
map( MapName, false );
}

How To Call It
Code:
self add_option("map_change", "Plaza", ::ChangeMapFixed, "mp_nightclub");
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,093
Reaction score
2,881
Points
1,103
replace the picture nuketown to a shader or plaza , standoff ... picture when the load game
I think this is possible if you just change at the dvars, the dvar which contains the loading screen shader.
 
Top