- Joined
- Jan 9, 2009
- Messages
- 614
- Reaction score
- 152
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):
Replace with this:
Add this at the top of ZGameInterface::UpdateBlueRedTeam():
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.
Add this at the top of this function:
Code:
void MMatchStage::ShuffleTeamMembers()
{
(m_StageSetting.GetGameType() == MMATCH_GAMETYPE_INFECTION)) return;
}
Find this in MMatchServer::StageEnterBattle(const MUID& uidPlayer, const MUID& uidStage):
Code:
{
if (pStage->GetStageSetting()->IsTeamPlay()) pNode->ExtendInfo.nTeam = (char)pObj->GetTeam();
else pNode->ExtendInfo.nTeam = 0;
}
Replace with this:
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;
}
}
Add this at the top of ZGameInterface::UpdateBlueRedTeam():
Code:
{
if(GetGameClient()->GetMatchStageSetting()->GetGameType() == MMATCH_GAMETYPE_INFECTION)
return;
}
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.
Attachments
You must be registered for see attachments list