My Infection mode

Results 1 to 9 of 9
  1. #1
    TBF Guru jetman82 is offline
    MemberRank
    Jan 2009 Join Date
    631Posts

    My Infection mode

    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:
    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.
    Attached Files Attached Files


  2. #2
    Reality, What is? Rain is offline
    MemberRank
    Jan 2009 Join Date
    PhotoshopLocation
    804Posts

    Re: My Infection mode

    Nice release :)

  3. #3
    TBF Guru jetman82 is offline
    MemberRank
    Jan 2009 Join Date
    631Posts

    Re: My Infection mode

    Quote Originally Posted by Rain View Post
    Nice release :)
    Thanks :)

  4. #4
    Apprentice copynight is offline
    MemberRank
    Dec 2016 Join Date
    20Posts

    Re: My Infection mode

    This is a release?bugs bugs everywhere lol ,Those who use it will give me the reason

  5. #5
    TBF Guru jetman82 is offline
    MemberRank
    Jan 2009 Join Date
    631Posts

    Re: My Infection mode

    Quote Originally Posted by copynight View Post
    This is a release?bugs bugs everywhere lol ,Those who use it will give me the reason
    Bad english, bad english everywhere lol. Name 3 bugs it has lol, I haven't had any issues with it, and I did a 6 character test on the gamemode.

    Edit: aren't you the same guy that thought that my gungame was worse than the other one, and got laughed at? Don't even dl my releases, you can't program so naturally you're gonna fuck up my releases (not saying there's not a bug, there could be, but still, if you can't name the bugs, and you had an issue with my gungame, why even bother dling another of my releases?).
    Last edited by jetman82; 13-01-17 at 12:13 AM.

  6. #6
    Fuck Army. sahar042 is offline
    MemberRank
    Jul 2009 Join Date
    833Posts

    Re: My Infection mode

    great job, I really like your coding style. you coded it very clear.

  7. #7
    Enthusiast sagi232 is offline
    MemberRank
    Jul 2009 Join Date
    29Posts

    Re: My Infection mode

    Wow thanks , ok edit:
    i putted the files , and now i got error that "MC_MATCH_INFECT_PLAYER:"
    is undeclared identifier , what i should do ?
    Last edited by sagi232; 13-01-17 at 05:14 PM. Reason: :)

  8. #8
    TBF Guru jetman82 is offline
    MemberRank
    Jan 2009 Join Date
    631Posts

    Re: My Infection mode

    Quote Originally Posted by sagi232 View Post
    Wow thanks , ok edit:
    i putted the files , and now i got error that "MC_MATCH_INFECT_PLAYER:"
    is undeclared identifier , what i should do ?
    Just do a search for mc_match lol, you'll see what you have to do

  9. #9
    Immortal GunZ :D maxy2010 is offline
    MemberRank
    Sep 2009 Join Date
    357Posts

    Re: My Infection mode

    Can some one please let me know where to install these files ? or any source referral? on applying these?



Advertisement