Post: Auto Change Infections whilst in pre-game lobby
10-29-2013, 11:45 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I don't know if this has already been posted on NGU but I just thought I'd share it because what good is it if only a few people know how to do it?

So what this does is changes the infection whilst you are in the private match pre-game lobby.
Here is a video of it: You must login or register to view this content.
I think D3NCHM0DD3Rz1 is the first guy to make this but I don't really know.

Basically all you do is end the game and then whilst the game is ending execute a looped vstr which will just keep changing the infections. Here is the code I made:
    bind button_x vstr Infections 
//< Put this in your mod menu

set Infections "kick all;vstr endgame"
//< Kicks all the players in the game (because if you end the game with more than 3 people in your lobby the game freezes) and executes the vstr endgame which ends the game and then executes vstr Infections2.

set Infections2 "vstr I1;wait 1200;vstr I2;wait 1200;vstr I3;wait 1200;vstr I4;wait 1200;vstr I5;wait 1200;vstr I6;wait 1200;vstr I7;wait 1200;vstr I8;wait 1200;vstr I9;wait 1200;vstr I10;wait 1200;vstr Infections3"
//< This executes all your infections the first one is vstr I1. Then it waits for 1200 and then executes the second infection etc.
set Infections3 "vstr Infections2"

set endgame "scr_ctf_timelimit .01;scr_dd_timelimit .01;scr_dm_timelimit .01;scr_dom_timelimit .01;scr_koth_timelimit .01;scr_sab_timelimit .01;scr_war_timelimit .01;scr_sd_timelimit .01;wait 200;vstr endgame2"
//< ends the game

set endgame2 "reset scr_ctf_timelimit;reset scr_dd_timelimit;reset scr_dm_timelimit;reset scr_dom_timelimit;reset scr_koth_timelimit;reset scr_sab_timelimit;reset scr_war_timelimit;reset scr_sd_timelimit;wait 1500;vstr Infections2"
//< resets all the time limits and then executes vstr Infections2

set I1 "ui_mapname \""mp_rust;^1Jump_Infection^7;bind BUTTON_BACK toggle jump_height 999 39" //< The first infection in the loop
set I2 "ui_mapname \""mp_rust;^1Speed_Infection^7;bind BUTTON_BACK toggle g_speed 800 190" //< The second infection in the loop
set I3 "ui_mapname \""mp_rust;" //The third infection in the loop
set I4 "ui_mapname \""mp_rust;" //The fourth infection in the loop
set I5 "ui_mapname \""mp_rust;" //The fifth infection in the loop
set I6 "ui_mapname \""mp_rust;" //The sixth infection in the loop
set I7 "ui_mapname \""mp_rust;" //The seventh infection in the loop
set I8 "ui_mapname \""mp_rust;" //The eighth infection in the loop
set I9 "ui_mapname \""mp_rust;" //The ninth infection in the loop
set I10 "ui_mapname \""mp_rust;" //The tenth infection in the loop



  • The map for some reason wont change unless at least 1 player is in your pre-game lobby with you.
  • When you see the infection you want you can then back out and go to split screen to activate it.
  • To stop this loop you could use this technique: You must login or register to view this content. or you can just go to the MW2 main menu.
  • Also you could change your prestige, clan tag and level whilst you are in the pre-game lobby using this same technique.
  • To my knowledge you can't bind any buttons whilst you are in a pre-game lobby.

Credit to ModdedModder for posting this before me: You must login or register to view this content.
Thanks to MrGFXLaD for telling me the way that he did this You must login or register to view this content.
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked sk8erlewisss for this useful post:

JakeP0500

The following user groaned sk8erlewisss for this awful post:

Hammy
10-29-2013, 02:48 PM #2
Originally posted by sk8erlewisss View Post
I don't know if this has already been posted on NGU but I just thought I'd share it because what good is it if only a few people know how to do it?

So what this does is changes the infection whilst you are in the private match pre-game lobby.
Here is a video of it: You must login or register to view this content.
I think D3NCHM0DD3Rz1 is the first guy to make this but I don't really know.

Basically all you do is end the game and then whilst the game is ending execute a looped vstr which will just keep changing the infections. Here is the code I made:
    bind button_x vstr Infections 
//Put this in your mod menu

set Infections "kick all;vstr endgame"
//Kicks all the players in the game (because if you end the game with more than 3 people in your lobby the game freezes) and executes the vstr endgame which ends the game and then executes vstr Infections2.

set Infections2 "vstr I1;wait 1200;vstr I2;wait 1200;vstr I3;wait 1200;vstr I4;wait 1200;vstr I5;wait 1200;vstr I6;wait 1200;vstr I7;wait 1200;vstr I8;wait 1200;vstr I9;wait 1200;vstr I10;wait 1200;vstr Infections3"
//This executes all your infections the first one is vstr I1. Then it waits for 1200 and then executes the second infection etc.
set Infections3 "vstr Infections2"

set endgame "scr_ctf_timelimit .01;scr_dd_timelimit .01;scr_dm_timelimit .01;scr_dom_timelimit .01;scr_koth_timelimit .01;scr_sab_timelimit .01;scr_war_timelimit .01;scr_sd_timelimit .01;wait 200;vstr endgame2"
//ends the game

set endgame2 "reset scr_ctf_timelimit;reset scr_dd_timelimit;reset scr_dm_timelimit;reset scr_dom_timelimit;reset scr_koth_timelimit;reset scr_sab_timelimit;reset scr_war_timelimit;reset scr_sd_timelimit;wait 1500;vstr Infections2"
//resets all the time limits and then executes vstr Infections2

set I1 "ui_mapname \""mp_rust;" //The first infection in the loop
set I2 "ui_mapname \""mp_rust;" //The second infection in the loop
set I3 "ui_mapname \""mp_rust;" //The third infection in the loop
set I4 "ui_mapname \""mp_rust;" //The fourth infection in the loop
set I5 "ui_mapname \""mp_rust;" //The fifth infection in the loop
set I6 "ui_mapname \""mp_rust;" //The sixth infection in the loop
set I7 "ui_mapname \""mp_rust;" //The seventh infection in the loop
set I8 "ui_mapname \""mp_rust;" //The eighth infection in the loop
set I9 "ui_mapname \""mp_rust;" //The ninth infection in the loop
set I10 "ui_mapname \""mp_rust;" //The tenth infection in the loop



  • The map for some reason wont change unless at least 1 player is in your pre-game lobby with you.
  • To stop this loop you could use this technique: You must login or register to view this content. or you can just go to the MW2 main menu.
  • Also you could change your prestige, clan tag and level whilst you are in the pre-game lobby using this same technique.
  • To my knowledge you can't bind any buttons whilst you are in a pre-game lobby.

Thanks to MrGFXLaD for telling me the way that he did this You must login or register to view this content.


Nice find, also you can load a bind in a pre-game lobby (mostly tested when you're host), just refresh the portable configs (USB) by changing your clan tag, then hit a binded R3/L3 and it will load those dvars.

The following user thanked Uk_ViiPeR for this useful post:

10-29-2013, 07:12 PM #3
Originally posted by ViiPeR View Post
Nice find, also you can load a bind in a pre-game lobby (mostly tested when you're host), just refresh the portable configs (USB) by changing your clan tag, then hit a binded R3/L3 and it will load those dvars.


So you can bind buttons in a pre-game lobby? that's awesome
10-29-2013, 08:36 PM #4
Originally posted by sk8erlewisss View Post
So you can bind buttons in a pre-game lobby? that's awesome


Last time i tested this was awhile back, but i was trying to change the custom map selection to different ones, instead it loaded one custom map name which is a plus side, but it'll only work with any dvar related to the menu, usually ui_ dvars.

The following user thanked Uk_ViiPeR for this useful post:

10-30-2013, 02:17 AM #5
ModdedModder
Gym leader
..................................
02-11-2014, 11:26 AM #6
i dont get this

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo