Wanted to make infection, did it, figured i'd release since it's fairly clean. I'll give assistance with this unlike gungame, since this requires several different files to be changed. I won't however, give the replay code, you have to make that yourself.
Add this at the top of this function:
Find this in MMatchServer::StageEnterBattle(const MUID& uidPlayer, const MUID& uidStage):Code:void MMatchStage::ShuffleTeamMembers() { (m_StageSetting.GetGameType() == MMATCH_GAMETYPE_INFECTION)) return; }
Replace with this:Code:{ if (pStage->GetStageSetting()->IsTeamPlay()) pNode->ExtendInfo.nTeam = (char)pObj->GetTeam(); else pNode->ExtendInfo.nTeam = 0; }
Add this at the top of ZGameInterface::UpdateBlueRedTeam():Code:{ if (pStage->GetStageSetting()->GetGameType() == MMATCH_GAMETYPE_INFECTION) { pStage->PlayerTeam(uidPlayer, MMT_BLUE); pNode->ExtendInfo.nTeam = (char)MMT_BLUE; } else { if (pStage->GetStageSetting()->IsTeamPlay()) pNode->ExtendInfo.nTeam = (char)pObj->GetTeam(); else pNode->ExtendInfo.nTeam = 0; } }
There are other places that have to be changed as well, but i'm letting you guys figure that out, I won't provide any more code support than this, as the other changes are things that must be done with every single new gamemode. If there are any bugs I will assist somewhat with this unlike gungame.Code:{ if(GetGameClient()->GetMatchStageSetting()->GetGameType() == MMATCH_GAMETYPE_INFECTION) return; }



Reply With Quote


