Try to make class change menu inaccessible from ingame menu.
parent
0c5b380bde
commit
ca3621d77c
|
@ -4,6 +4,13 @@
|
||||||
|
|
||||||
disableClassMenu()
|
disableClassMenu()
|
||||||
{
|
{
|
||||||
|
// https://github.com/promod/CoD4-Mod-Tools/blob/e88c6f106cb124547e514e658001fcdc4c4e15f3/raw/ui_mp/choices_setup_teams.menu#L57
|
||||||
|
SetDvar("scr_oldschool", 1);
|
||||||
|
|
||||||
|
// found in https://github.com/promod/CoD4-Mod-Tools/blob/e88c6f106cb124547e514e658001fcdc4c4e15f3/raw/ui_mp/scriptmenus/ingame.menu#L94
|
||||||
|
// but it's probably no longer in use seeing as the whole file has been commented out.
|
||||||
|
SetDvar("ui_allow_classchange", 0);
|
||||||
|
|
||||||
level.originalAllies = level.allies;
|
level.originalAllies = level.allies;
|
||||||
level.originalAxis = level.axis;
|
level.originalAxis = level.axis;
|
||||||
level.originalAutoAssign = level.autoAssign;
|
level.originalAutoAssign = level.autoAssign;
|
||||||
|
|
Loading…
Reference in New Issue