mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Added V1.0x WEAPONS BALANCE multiplayer setting (#185)
This commit is contained in:
parent
527d99008b
commit
d19e74b31a
1 changed files with 8 additions and 7 deletions
|
@ -292,8 +292,9 @@ CGameMenuItemZCycle itemNetStart6("WEAPONS:", 3, 66, 110, 180, 0, 0, zWeaponStri
|
||||||
CGameMenuItemZCycle itemNetStart7("ITEMS:", 3, 66, 120, 180, 0, 0, zItemStrings, 3, 0);
|
CGameMenuItemZCycle itemNetStart7("ITEMS:", 3, 66, 120, 180, 0, 0, zItemStrings, 3, 0);
|
||||||
CGameMenuItemZBool itemNetStart8("FRIENDLY FIRE:", 3, 66, 130, 180, true, 0, NULL, NULL);
|
CGameMenuItemZBool itemNetStart8("FRIENDLY FIRE:", 3, 66, 130, 180, true, 0, NULL, NULL);
|
||||||
CGameMenuItemZBool itemNetStart9("KEEP KEYS ON RESPAWN:", 3, 66, 140, 180, false, 0, NULL, NULL);
|
CGameMenuItemZBool itemNetStart9("KEEP KEYS ON RESPAWN:", 3, 66, 140, 180, false, 0, NULL, NULL);
|
||||||
CGameMenuItemZEdit itemNetStart10("USER MAP:", 3, 66, 150, 180, zUserMapName, 13, 0, NULL, 0);
|
CGameMenuItemZBool itemNetStart10("V1.0x WEAPONS BALANCE:", 3, 66, 150, 180, false, 0, NULL, NULL);
|
||||||
CGameMenuItemChain itemNetStart11("START GAME", 1, 66, 165, 280, 0, 0, -1, StartNetGame, 0);
|
CGameMenuItemZEdit itemNetStart11("USER MAP:", 3, 66, 160, 180, zUserMapName, 13, 0, NULL, 0);
|
||||||
|
CGameMenuItemChain itemNetStart12("START GAME", 1, 66, 175, 280, 0, 0, -1, StartNetGame, 0);
|
||||||
|
|
||||||
CGameMenuItemText itemLoadingText("LOADING...", 1, 160, 100, 1);
|
CGameMenuItemText itemLoadingText("LOADING...", 1, 160, 100, 1);
|
||||||
|
|
||||||
|
@ -900,6 +901,7 @@ void SetupNetStartMenu(void)
|
||||||
menuNetStart.Add(&itemNetStart9, false);
|
menuNetStart.Add(&itemNetStart9, false);
|
||||||
menuNetStart.Add(&itemNetStart10, false);
|
menuNetStart.Add(&itemNetStart10, false);
|
||||||
menuNetStart.Add(&itemNetStart11, false);
|
menuNetStart.Add(&itemNetStart11, false);
|
||||||
|
menuNetStart.Add(&itemNetStart12, false);
|
||||||
itemNetStart1.SetTextIndex(1);
|
itemNetStart1.SetTextIndex(1);
|
||||||
itemNetStart4.SetTextIndex(2);
|
itemNetStart4.SetTextIndex(2);
|
||||||
itemNetStart5.SetTextIndex(0);
|
itemNetStart5.SetTextIndex(0);
|
||||||
|
@ -2194,16 +2196,15 @@ void StartNetGame(CGameMenuItemChain *pItem)
|
||||||
gPacketStartGame.respawnSettings = 0;
|
gPacketStartGame.respawnSettings = 0;
|
||||||
gPacketStartGame.bFriendlyFire = itemNetStart8.at20;
|
gPacketStartGame.bFriendlyFire = itemNetStart8.at20;
|
||||||
gPacketStartGame.bKeepKeysOnRespawn = itemNetStart9.at20;
|
gPacketStartGame.bKeepKeysOnRespawn = itemNetStart9.at20;
|
||||||
|
////
|
||||||
|
gPacketStartGame.weaponsV10x = itemNetStart10.at20;
|
||||||
|
////
|
||||||
gPacketStartGame.unk = 0;
|
gPacketStartGame.unk = 0;
|
||||||
gPacketStartGame.userMapName[0] = 0;
|
gPacketStartGame.userMapName[0] = 0;
|
||||||
strncpy(gPacketStartGame.userMapName, itemNetStart10.at20, 13);
|
strncpy(gPacketStartGame.userMapName, itemNetStart11.at20, 13);
|
||||||
gPacketStartGame.userMapName[12] = 0;
|
gPacketStartGame.userMapName[12] = 0;
|
||||||
gPacketStartGame.userMap = gPacketStartGame.userMapName[0] != 0;
|
gPacketStartGame.userMap = gPacketStartGame.userMapName[0] != 0;
|
||||||
|
|
||||||
////
|
|
||||||
gPacketStartGame.weaponsV10x = gWeaponsV10x;
|
|
||||||
////
|
|
||||||
|
|
||||||
netBroadcastNewGame();
|
netBroadcastNewGame();
|
||||||
gStartNewGame = 1;
|
gStartNewGame = 1;
|
||||||
gGameMenuMgr.Deactivate();
|
gGameMenuMgr.Deactivate();
|
||||||
|
|
Loading…
Reference in a new issue