09-08-2015, 10:28
Well, I think the easiest way would be to add an option in DefMod to "SetTeamMode 1" but I guess this is also decoded pretty hard?
It's really that simple to create team games, but hard to do without overwriting another game type. For example, originally the following objects are triggered when "GameModeEquals is_king" > SpawnCrown and SpawnCompass, if you add there SetTeamMode 1 it will add the teams like we know in CZ/CTF. I've tried a lot of things, without editing the .exe there is no sense of creating new game type, but you could duplicate and set is_king 0 and create another entry called "is_kingteams 1" featuring SetTeamMode 1, but the thing is when you start KOTH it triggers both games(1 original with is_king 1 and 1 with is_kingteams 1, so it starts the criteria for both games) and turns on the teams for both games. I've tried adding the SetTeamMode 1 as an "ELSE" exception, but without luck, it seems SetTeamMode 1 wins over SetTeamMode 0
__
FYI, I've also tried the following
Duplicate game mode by keeping mode mode_netking and only changing Checksum from netking to netkings and adding in the following in gameflow:
In netmenu I've create to the game Kings of the Hill, which loads in checksum "netkings"(original King of the Hill has checksum "netking""
Makes sense, right? I don't really remember what the outcome was, but I think it still set teams to both KOTH games or might lost objective
It's really that simple to create team games, but hard to do without overwriting another game type. For example, originally the following objects are triggered when "GameModeEquals is_king" > SpawnCrown and SpawnCompass, if you add there SetTeamMode 1 it will add the teams like we know in CZ/CTF. I've tried a lot of things, without editing the .exe there is no sense of creating new game type, but you could duplicate and set is_king 0 and create another entry called "is_kingteams 1" featuring SetTeamMode 1, but the thing is when you start KOTH it triggers both games(1 original with is_king 1 and 1 with is_kingteams 1, so it starts the criteria for both games) and turns on the teams for both games. I've tried adding the SetTeamMode 1 as an "ELSE" exception, but without luck, it seems SetTeamMode 1 wins over SetTeamMode 0
__
FYI, I've also tried the following
Duplicate game mode by keeping mode mode_netking and only changing Checksum from netking to netkings and adding in the following in gameflow:
Quote:IF GameModeChecksumEquals netkingsNOTE: In the gameflow there is no "IF GameModeChecksumEquals netking", only IF GameModeEquals is_king (is_king is a criteria, like accumulation of the score)
SetTeamMode 1
SpawnCrown
SpawnCompass
In netmenu I've create to the game Kings of the Hill, which loads in checksum "netkings"(original King of the Hill has checksum "netking""
Makes sense, right? I don't really remember what the outcome was, but I think it still set teams to both KOTH games or might lost objective