Remove unnecessary code.
- ui_allow_classchange already set in disableClassMenu.gsc. - scr_oldschool has no effect at all.master
parent
1e99421928
commit
18f93f837e
|
@ -103,9 +103,6 @@ main()
|
|||
// Don't show perks
|
||||
SetDvar("scr_showperksonspawn", 0);
|
||||
|
||||
// Don't allow class change
|
||||
SetDvar("ui_allow_classchange", 0);
|
||||
|
||||
// event handlers
|
||||
//level.onXPEvent = ::onXPEvent;
|
||||
|
||||
|
|
|
@ -4,11 +4,7 @@
|
|||
|
||||
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.
|
||||
// This DVar has been reimplemented in our custom ui_mp/scriptmenus/class.menu.
|
||||
SetDvar("ui_allow_classchange", 0);
|
||||
|
||||
level.originalAllies = level.allies;
|
||||
|
@ -17,7 +13,6 @@ disableClassMenu()
|
|||
level.allies = ::classMenu_menuAllies;
|
||||
level.axis = ::classMenu_menuAxis;
|
||||
level.autoAssign = ::classMenu_menuAutoAssign;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue