PaintBall Mode

Results 1 to 7 of 7
  1. #1
    Member Gunzlatinov3 is offline
    MemberRank
    Nov 2016 Join Date
    PeruLocation
    74Posts

    ! PaintBall Mode

    anyone know where this code goes please. if they were so kind.
    ---------------------------------------------------------------------------------------------------------
    Change:


    Code:
    case MMATCH_GAMETYPE_DEATHMATCH_TEAM:
    case MMATCH_GAMETYPE_DEATHMATCH_TEAM2:
    case MMATCH_GAMETYPE_CTF:
    color = TDM_COLOR;
    break;

    To:

    Code:
    case MMATCH_GAMETYPE_DEATHMATCH_TEAM:
    case MMATCH_GAMETYPE_DEATHMATCH_TEAM2:
    case MMATCH_GAMETYPE_PAINTBALL_TEAM:
    case MMATCH_GAMETYPE_CTF:
    color = TDM_COLOR;
    break;


    Find:

    Code:
    bool bQuestUI = false;
    if ( (pSetting->nGameType == MMATCH_GAMETYPE_DEATHMATCH_SOLO) || // µ¥¾²¸ÅÄ¡ °³ÀÎÀüÀ̰ųª...
    (pSetting->nGameType == MMATCH_GAMETYPE_GLADIATOR_SOLO) || // Ä®Àü °³ÀÎÀüÀ̰ųª...
    (pSetting->nGameType == MMATCH_GAMETYPE_BERSERKER) || // ¹ö¼­Ä¿¸ðµåÀ̰ųª...
    (pSetting->nGameType == MMATCH_GAMETYPE_TRAINING) || // Æ®·¹ÀÌ´×À̰ųª...
    (pSetting->nGameType == MMATCH_GAMETYPE_DUEL)) // µà¾ó¸ðµå À̸é...
    {
    // ¸Ê À̸§ ¹è°æ À̹ÌÁö º¯È¯
    if ( pAniMapImg)
    pAniMapImg->SetCurrentFrame( 0);

    // Äù½ºÆ® UI °¨Ãã
    bQuestUI = false;
    }

    Replace nearby statement:

    Code:
    else if ( (pSetting->nGameType == MMATCH_GAMETYPE_DEATHMATCH_TEAM) || // µ¥¾²¸ÅÄ¡ ÆÀÀüÀ̰ųª...
    (pSetting->nGameType == MMATCH_GAMETYPE_DEATHMATCH_TEAM2) || // ¹«Çѵ¥½º¸ÅÄ¡ ÆÀÀüÀ̰ųª...
    (pSetting->nGameType == MMATCH_GAMETYPE_GLADIATOR_TEAM) || // Ä®Àü ÆÀÀüÀ̰ųª...
    (pSetting->nGameType == MMATCH_GAMETYPE_ASSASSINATE) ||
    (pSetting->nGameType == MMATCH_GAMETYPE_PAINTBALL_TEAM) ||
    (pSetting->nGameType == MMATCH_GAMETYPE_CTF)) // ¾Ï»ìÀü À̸é...

    -----------------------------------------------------------------------------------------------------------
    *********************** Adding paintballs ********************

    Under:
    Code:
    RMeshMgr* m_pEffectMeshMgr;

    ZEffectBulletMarkList m_BulletMarkList;

    Add:

    Code:
    //Paintball declaration
    ZEffectBulletMarkList m_PaintballMarkList;
    ZEffectBulletMarkList m_Paintball2MarkList;
    ZEffectBulletMarkList m_Paintball3MarkList;
    ZEffectBulletMarkList m_Paintball4MarkList;
    ZEffectBulletMarkList m_Paintball5MarkList;
    ZEffectBulletMarkList m_Paintball6MarkList;
    ZEffectBulletMarkList m_Paintball7MarkList;

    Under:

    Code:
    m_BulletMarkList.Create("SFX/gz_sfx_shotgun_bulletmark02.tga");

    Add:

    Code:
    //Paintball texture setup
    m_PaintballMarkList.Create("SFX/paintball01.tga");
    m_Paintball2MarkList.Create("SFX/paintball02.tga");
    m_Paintball3MarkList.Create("SFX/paintball03.tga");
    m_Paintball4MarkList.Create("SFX/paintball04.tga");
    m_Paintball5MarkList.Create("SFX/paintball05.tga");
    m_Paintball6MarkList.Create("SFX/paintball06.tga");
    m_Paintball7MarkList.Create("SFX/paintball07.tga");



    Under:

    Code:
    if( mode==1 ) {// ¹° ¹Û¿¡¼­¸¸ ±×¸°´Ù..

    m_BulletMarkList.Draw();

    Add:

    Code:
    //Paintball drawing
    m_PaintballMarkList.Draw();
    m_Paintball2MarkList.Draw();
    m_Paintball3MarkList.Draw();
    m_Paintball4MarkList.Draw();
    m_Paintball5MarkList.Draw();
    m_Paintball6MarkList.Draw();
    m_Paintball7MarkList.Draw();


    Under:
    Code:
    delete pEffect;
    node = m_Effects[d].erase(node);
    m__cnt++;
    } else {
    if(pEffect->m_bisRendered) m__rendered++;//for debug
    ++node;
    m__cnt++;
    }
    }
    }
    }

    m_BulletMarkList.Draw();


    Add:

    Code:
    //Paintball drawing
    m_PaintballMarkList.Draw();
    m_Paintball2MarkList.Draw();
    m_Paintball3MarkList.Draw();
    m_Paintball4MarkList.Draw();
    m_Paintball5MarkList.Draw();
    m_Paintball6MarkList.Draw();
    m_Paintball7MarkList.Draw();


    Under:

    Code:
    for(int i=0;i<BILLBOARDLISTS_COUNT;i++)
    m_BillboardLists[i].Update(fElapsed);

    m_BulletMarkList.Update(fElapsed);


    Add:


    Code:
    //Paintball update
    m_PaintballMarkList.Update(fElapsed);
    m_Paintball2MarkList.Update(fElapsed);
    m_Paintball3MarkList.Update(fElapsed);
    m_Paintball4MarkList.Update(fElapsed);
    m_Paintball5MarkList.Update(fElapsed);
    m_Paintball6MarkList.Update(fElapsed);
    m_Paintball7MarkList.Update(fElapsed);


    Under:

    Code:
    for(int i=0;i<BILLBOARDTEXANILIST_COUNT;i++)
    m_BillBoardTexAniList[i].Clear();
    m_BulletMarkList.Clear();

    Add:

    Code:
    m_PaintballMarkList.Clear();
    m_Paintball2MarkList.Clear();
    m_Paintball3MarkList.Clear();
    m_Paintball4MarkList.Clear();
    m_Paintball5MarkList.Clear();
    m_Paintball6MarkList.Clear();
    m_Paintball7MarkList.Clear();

    In: ZEffectManager::AddBulletMark(rvector& Target, rvector& TargetNormal)


    Replace:

    Code:
    m_BulletMarkList.Add(Target+TargetNormal,TargetNormal);

    with:

    Code:
    //Check for paintball mode
    if( (ZGetGameClient()->GetMatchStageSetting()->GetGameType() == MMATCH_GAMETYPE_PAINTBALL_SOLO) ||
    (ZGetGameClient()->GetMatchStageSetting()->GetGameType() == MMATCH_GAMETYPE_PAINTBALL_TEAM)) {

    switch(rand()%7+1) { //edit 7 to increase paintball count
    case 1:
    {
    m_PaintballMarkList.Add(Target+TargetNormal, TargetNormal);
    nBulletCount++;
    }
    break;
    case 2:
    {
    m_Paintball2MarkList.Add(Target+TargetNormal, TargetNormal);
    nBulletCount++;
    }
    break;
    case 3:
    {
    m_Paintball3MarkList.Add(Target+TargetNormal, TargetNormal);
    nBulletCount++;
    }
    case 4:
    {
    m_Paintball4MarkList.Add(Target+TargetNormal, TargetNormal);
    nBulletCount++;
    }
    break;
    case 5:
    {
    m_Paintball5MarkList.Add(Target+TargetNormal, TargetNormal);
    nBulletCount++;
    }
    break;
    case 6:
    {
    m_Paintball6MarkList.Add(Target+TargetNormal, TargetNormal);
    nBulletCount++;
    }
    break;
    case 7:
    {
    m_Paintball7MarkList.Add(Target+TargetNormal, TargetNormal);
    nBulletCount++;
    }
    break;
    }
    if(rand()%1)
    m_BulletMarkList.Add(Target+TargetNormal, TargetNormal);
    } else {
    m_BulletMarkList.Add(Target+TargetNormal,TargetNormal);
    }

    Post:
    http://forum.ragezone.com/f245/gamem...ntball-928058/
    sorry if it's messy


  2. #2
    Yaaay! Tannous is offline
    MemberRank
    Jul 2012 Join Date
    KonohaLocation
    840Posts

    Re: PaintBall Mode

    My friend, the person has provided the files' names in his post...

  3. #3
    Member Gunzlatinov3 is offline
    MemberRank
    Nov 2016 Join Date
    PeruLocation
    74Posts

    Re: PaintBall Mode

    sorry but the part here is not in ZGameInterface.cpp or I don't know where it is supposed to be, because whoever posted this doesn't say where it is.

    case MMATCH_GAMETYPE_DEATHMATCH_TEAM:
    case MMATCH_GAMETYPE_DEATHMATCH_TEAM2:
    case MMATCH_GAMETYPE_CTF:
    color = TDM_COLOR;
    break;

  4. #4
    Yaaay! Tannous is offline
    MemberRank
    Jul 2012 Join Date
    KonohaLocation
    840Posts

    Re: PaintBall Mode

    Quote Originally Posted by Gunzlatinov3 View Post
    sorry but the part here is not in ZGameInterface.cpp or I don't know where it is supposed to be, because whoever posted this doesn't say where it is.

    case MMATCH_GAMETYPE_DEATHMATCH_TEAM:
    case MMATCH_GAMETYPE_DEATHMATCH_TEAM2:
    case MMATCH_GAMETYPE_CTF:
    color = TDM_COLOR;
    break;
    You could search for similar lines in the whole solution and you'll find the file you need. (I mean CTRL+F, and check the in whole solution box)

  5. #5
    Infraction Banned jorklenis2 is offline
    MemberRank
    Oct 2011 Join Date
    PanamáLocation
    878Posts

    Re: PaintBall Mode

    I have it in a code that I'm not using and I ask you to post it, but that code is nothing in the world.

  6. #6
    Member Gunzlatinov3 is offline
    MemberRank
    Nov 2016 Join Date
    PeruLocation
    74Posts

    Re: PaintBall Mode

    Could you tell me where I can put the code if it wasn't so much trouble.
    @jorklenis2

  7. #7
    Infraction Banned jorklenis2 is offline
    MemberRank
    Oct 2011 Join Date
    PanamáLocation
    878Posts

    Re: PaintBall Mode

    What line is it.



Advertisement