Fix dvar setup.
parent
fdee8560e0
commit
3ef5f671ae
|
@ -85,21 +85,10 @@ main()
|
|||
level.seekerWeapons[6] = "p90";
|
||||
level.seekerWeapons[7] = "famas";
|
||||
|
||||
// Make DVars available
|
||||
setDvarIfUninitialized("scr_" + level.gameType + "_roundswitch", 1);
|
||||
setDvarIfUninitialized("scr_" + level.gameType + "_timelimit", 5);
|
||||
setDvarIfUninitialized("scr_" + level.gameType + "_scorelimit", 1);
|
||||
setDvarIfUninitialized("scr_" + level.gameType + "_roundlimit", 0);
|
||||
setDvarIfUninitialized("scr_" + level.gameType + "_winlimit", 4);
|
||||
setDvarIfUninitialized("scr_" + level.gameType + "_halftime", 0);
|
||||
setDvarIfUninitialized("scr_" + level.gameType + "_numlives", 1);
|
||||
|
||||
maps\mp\gametypes\_globallogic::init();
|
||||
maps\mp\gametypes\_callbacksetup::SetupCallbacks();
|
||||
maps\mp\gametypes\_globallogic::SetupCallbacks();
|
||||
|
||||
level.teamBased = true;
|
||||
|
||||
// General game logic DVars
|
||||
registerRoundSwitchDvar(level.gameType, 1, 0, 9);
|
||||
registerTimeLimitDvar(level.gameType, 5, 0, 1440);
|
||||
|
@ -115,6 +104,8 @@ main()
|
|||
// Don't show perks
|
||||
SetDvar("scr_showperksonspawn", 0);
|
||||
|
||||
level.teamBased = true;
|
||||
|
||||
// event handlers
|
||||
//level.onXPEvent = ::onXPEvent;
|
||||
|
||||
|
@ -230,6 +221,15 @@ onStartGameType()
|
|||
{
|
||||
logPrint("onStartGameType called");
|
||||
|
||||
// Make DVars available
|
||||
setDvarIfUninitialized("scr_hns_roundswitch", 1);
|
||||
setDvarIfUninitialized("scr_hns_timelimit", 5);
|
||||
setDvarIfUninitialized("scr_hns_scorelimit", 1);
|
||||
setDvarIfUninitialized("scr_hns_roundlimit", 0);
|
||||
setDvarIfUninitialized("scr_hns_winlimit", 4);
|
||||
setDvarIfUninitialized("scr_hns_halftime", 0);
|
||||
setDvarIfUninitialized("scr_hns_numlives", 1);
|
||||
|
||||
// reset flags
|
||||
gameFlagClear("seekers_released");
|
||||
|
||||
|
|
Loading…
Reference in New Issue