Vampire Game Mode [NO TAG]

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Vampire Game Mode [NO TAG]

    people get pissed when they see many tags.. you can either add vamp as seperate game mode. not great effort but helpful

    WARNING RZ STAFF: DONT DARE TO DELETE THIS THREAD ... THIS IS MY OWN RELEASE ! CREDITS ARE GIVEN TO RESPECTIVE CREATORS OF CODE.


    ----------------------------------------------------------------------------------------------------------------

    MBaseGameType.h:

    below
    MMATCH_GAMETYPE_DUELTOURNAMENT =11,
    paste :
    MMATCH_GAMETYPE_VAMP =15,
    MBaseGameType.cpp:

    below:
    #define MMATCH_GAMETYPE_DUELTOURNAMENT_STR "Duel Tournament"
    paste:
    #define MMATCH_GAMETYPE_VAMP_STR "Vampire Mode"
    ----------------------------------------------------------------------------------------------------------------
    Below:
    "DUELT", // DUELTOURNAMENT
    Paste:
    "VAMP" //VAMPIRE MODE

    ----------------------------------------------------------------------------------------------------------------
    Below:
    _InitGameType(MMATCH_GAMETYPE_DUELTOURNAMENT, MMATCH_GAMETYPE_DUELTOURNAMENT, MMATCH_GAMETYPE_DUELTOURNAMENT_STR, 0.0f, 0.0f, 0.0f);
    Paste:
    _InitGameType(MMATCH_GAMETYPE_VAMP, MMATCH_GAMETYPE_VAMP, "Vampire Mode", 1.0f, 0.6f, 0.5f);

    ----------------------------------------------------------------------------------------------------------------
    MMatchRule.h:
    Below:
    (nGameType == MMATCH_GAMETYPE_DEATHMATCH_SOLO) ||
    Paste:
    (nGameType == MMATCH_GAMETYPE_VAMP) ||

    ----------------------------------------------------------------------------------------------------------------

    MMatchRuleDeathMatch.h

    Scroll till bottom and above #endif
    paste:
    ////////////////

    class MMatchRuleVamp : public MMatchRule {
    protected:
    bool CheckKillCount(MMatchObject* pOutObject);
    virtual void OnBegin();
    virtual void OnEnd();
    virtual void OnRoundTimeOut();
    virtual bool OnCheckRoundFinish();
    virtual bool RoundCount();
    public:
    MMatchRuleVamp(MMatchStage* pStage);
    virtual ~MMatchRuleVamp() { }
    virtual MMATCH_GAMETYPE GetGameType() { return MMATCH_GAMETYPE_VAMP; }
    };

    ----------------------------------------------------------------------------------------------------------------
    MMatchRuleDeathMatch.cpp:

    Scroll at bottom of file and paste this:
    //////////////////////////////

    MMatchRuleVamp::MMatchRuleVamp(MMatchStage* pStage) : MMatchRule(pStage)
    {

    }

    void MMatchRuleVamp::OnBegin()
    {

    }
    void MMatchRuleVamp::OnEnd()
    {
    }

    bool MMatchRuleVamp::RoundCount()
    {
    if (++m_nRoundCount < 1) return true;
    return false;
    }

    bool MMatchRuleVamp::CheckKillCount(MMatchObject* pOutObject)
    {
    MMatchStage* pStage = GetStage();
    for (MUIDRefCache::iterator i=pStage->GetObjBegin(); i!=pStage->GetObjEnd(); i++)
    {
    MMatchObject* pObj = (MMatchObject*)(*i).second;
    if (pObj->GetEnterBattle() == false) continue;

    if (pObj->GetKillCount() >= (unsigned int)pStage->GetStageSetting()->GetRoundMax())
    {
    pOutObject = pObj;
    return true;
    }
    }
    return false;
    }

    bool MMatchRuleVamp::OnCheckRoundFinish()
    {
    MMatchObject* pObject = NULL;

    if (CheckKillCount(pObject))
    {
    return true;
    }
    return false;
    }

    void MMatchRuleVamp::OnRoundTimeOut()
    {
    SetRoundArg(MMATCH_ROUNDRESULT_DRAW);
    }

    ----------------------------------------------------------------------------------------------------------------
    ZStageSetting.cpp:

    below:
    else if ( strcmp( pCBType->GetString( pCBType->GetSelIndex()), ZMsg(MSG_MT_DUEL)) == 0)
    nGameType = 10;
    Paste:
    else if ( strcmp( pCBType->GetString( pCBType->GetSelIndex()), "Vampire Mode") == 0)
    nGameType = 15;

    ----------------------------------------------------------------------------------------------------------------
    ZRule.cpp:

    Below:
    case MMATCH_GAMETYPE_DEATHMATCH_SOLO:
    {
    return (new ZRuleSoloDeathMatch(pMatch));
    }
    break;
    Paste :
    case MMATCH_GAMETYPE_VAMP:
    {
    return (new ZRuleVamp(pMatch));
    }
    break;
    ----------------------------------------------------------------------------------------------------------------
    ZRuleDeathMatch.h:

    Below :
    class ZRuleSoloDeathMatch : public ZRule
    {
    public:
    ZRuleSoloDeathMatch(ZMatch* pMatch);
    virtual ~ZRuleSoloDeathMatch();
    };

    Paste :
    class ZRuleVamp : public ZRule
    {
    public:
    ZRuleVamp(ZMatch* pMatch);
    virtual ~ZRuleVamp();
    };

    ----------------------------------------------------------------------------------------------------------------
    ZRuleDeathMatch.cpp:

    Below :
    ZRuleSoloDeathMatch::ZRuleSoloDeathMatch(ZMatch* pMatch) : ZRule(pMatch)
    {
    }
    ZRuleSoloDeathMatch::~ZRuleSoloDeathMatch()
    {
    }
    Paste :
    ZRuleVamp::ZRuleVamp(ZMatch* pMatch) : ZRule(pMatch)
    {

    }

    ----------------------------------------------------------------------------------------------------------------
    ZRuleVamp::~ZRuleVamp()
    {





    }

    ZStageInterface.cpp :

    Below :
    (pSetting->nGameType == MMATCH_GAMETYPE_DEATHMATCH_SOLO) ||
    Paste :
    (pSetting->nGameType == MMATCH_GAMETYPE_VAMP) ||

    ----------------------------------------------------------------------------------------------------------------
    ZCombatInterface.cpp:

    Find
    sprintf( szText, "%s : %d", ZMsg( MSG_WORD_ENDKILL), ZGetGame()->GetMatch()->GetRoundCount());
    Replace whole line with :

    if
    ( ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_VAMP)
    sprintf( szText, "%s : %d", "Hunts", ZGetGame()->GetMatch()->GetRoundCount());
    else
    sprintf( szText, "%s : %d", ZMsg( MSG_WORD_ENDKILL), ZGetGame()->GetMatch()->GetRoundCount());

    ----------------------------------------------------------------------------------------------------------------
    ZCharacter.cpp :

    Below :
    ZObject::OnDamaged(pAttacker,srcPos,damageType,weaponType,fDamage,fPiercingRatio,nMeleeType);
    Paste :
    #define UPDATE_HEALTH_HPV 3
    #define UPDATE_HEALTH_APV 1

    if (( ZGetGame()->GetMatch()->GetMatchType() == MMATCH_GAMETYPE_VAMP) && pAttacker == ZGetGame()->m_pMyCharacter) {
    float fpNewHP = (((ZCharacter *)pAttacker)->GetHP() + UPDATE_HEALTH_HPV),
    fpNewAP = (((ZCharacter *)pAttacker)->GetAP() + UPDATE_HEALTH_APV);

    if (fpNewHP <= (((ZCharacter *)pAttacker))->GetMaxHP()) {
    ((ZCharacter *)pAttacker)->SetHP(fpNewHP);
    }

    if (fpNewAP <= (((ZCharacter *)pAttacker))->GetMaxAP()) {
    ((ZCharacter *)pAttacker)->SetAP(fpNewAP);
    }
    }

    ----------------------------------------------------------------------------------------------------------------



    Credits:
    Wizkidje - vampire mode source.
    Tankado - for nothing
    myself - implementing seperately
    Last edited by Ronny786; 30-12-12 at 06:11 PM.


  2. #2
    Good Guy George qet123 is offline
    MemberRank
    Apr 2009 Join Date
    DesertLocation
    1,432Posts

    Re: Vampire Game Mode [NO TAG]

    I wanna thank you for your effort that you copied it from the source

  3. #3
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Re: Vampire Game Mode [NO TAG]

    Quote Originally Posted by qet123 View Post
    I wanna thank you for your effort that you copied it from the source
    your welcome bish !

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

    Re: Vampire Game Mode [NO TAG]

    Ronny THE PRO ... Thanks Dude :) ..

  5. #5
    Developer / Patch Finder Tankado is offline
    MemberRank
    Oct 2011 Join Date
    The NetherlandsLocation
    451Posts

    Re: Vampire Game Mode [NO TAG]

    lol, lol, for the credits
    ronny i suggest u to coded something dont copy and follow lines...
    but good for ppl what cant make game mode

  6. #6
    RailGunZ Soon! megol is offline
    MemberRank
    Jun 2012 Join Date
    260Posts

    Re: Vampire Game Mode [NO TAG]

    screenshot video look the game mode?.

  7. #7
    Developer / Patch Finder Tankado is offline
    MemberRank
    Oct 2011 Join Date
    The NetherlandsLocation
    451Posts

    Re: Vampire Game Mode [NO TAG]

    For the people that try to add this!

    Ronny was failing with copy and edit line so i give u the fix...


    What did ronny wrong??
    A. That he try to be a coder.
    B. he was copy this line and didn't edit it ...

    PHP Code:
    return (new ZRuleSoloDeathMatch(pMatch)); 
    to
    PHP Code:
    return (new ZRuleVamp(pMatch)); 

    ZRule.cpp:
    Below:
    PHP Code:
    case MMATCH_GAMETYPE_DEATHMATCH_SOLO:
    {
    return (new 
    ZRuleSoloDeathMatch(pMatch));
    }
    break; 
    Paste :
    PHP Code:
    case MMATCH_GAMETYPE_VAMP:
    {
    return (new 
    ZRuleVamp(pMatch));
    }
    break; 
    Cheers SeaTroll.

  8. #8
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Re: Vampire Game Mode [NO TAG]

    Quote Originally Posted by SeaTroll View Post
    For the people that try to add this!

    Ronny was failing with copy and edit line so i give u the fix...


    What did ronny wrong??
    A. That he try to be a coder.
    B. he was copy this line and didn't edit it ...

    PHP Code:
    return (new ZRuleSoloDeathMatch(pMatch)); 
    to
    PHP Code:
    return (new ZRuleVamp(pMatch)); 

    ZRule.cpp:
    Below:
    PHP Code:
    case MMATCH_GAMETYPE_DEATHMATCH_SOLO:
    {
    return (new 
    ZRuleSoloDeathMatch(pMatch));
    }
    break; 
    Paste :
    PHP Code:
    case MMATCH_GAMETYPE_VAMP:
    {
    return (new 
    ZRuleVamp(pMatch));
    }
    break; 
    Cheers SeaTroll.

    16 year old kid cheers his name just because he pointed my minor mistake that doesnt even make much difference ?

    anyways.. cheers buddy !

  9. #9
    Praise the Sun! Solaire is offline
    MemberRank
    Dec 2007 Join Date
    Undead BurgLocation
    2,862Posts

    Re: Vampire Game Mode [NO TAG]

    Quote Originally Posted by Ronny786 View Post
    16 year old kid cheers his name just because he pointed my minor mistake that doesnt even make much difference ?

    anyways.. cheers buddy !
    Both of you, stop being a disgrace to your parents and this forums. If you two for whatever reasons hate each-other, take it up as a man and start a fight somewhere else, though I'm quite sure neither of you is solid enough to even hit the other person with his elbow.

  10. #10
    RailGunZ Soon! megol is offline
    MemberRank
    Jun 2012 Join Date
    260Posts

    Re: Vampire Game Mode [NO TAG]

    What that Fuck ChallengeQuest it is funcional?.

  11. #11
    Currently Stoned ! Ronny786 is offline
    MemberRank
    Dec 2011 Join Date
    Lost WorldLocation
    984Posts

    Re: Vampire Game Mode [NO TAG]

    Quote Originally Posted by Wizkidje View Post
    Both of you, stop being a disgrace to your parents and this forums. If you two for whatever reasons hate each-other, take it up as a man and start a fight somewhere else, though I'm quite sure neither of you is solid enough to even hit the other person with his elbow.

    I wont fight a 16 year old kid man... m just teaching him etiquette and how to behave liike good child... thanks for wasting your time on suggesting us... atlast the result by phoenix..

    POST DELETED-ON

    reason: do not reply off topic blah blah..

    I think this will be my last comment here... moderators will surely ban me now xD

  12. #12
    Developer / Patch Finder Tankado is offline
    MemberRank
    Oct 2011 Join Date
    The NetherlandsLocation
    451Posts

    Re: Vampire Game Mode [NO TAG]

    Ronny, if u make that mistake, the class function is than not readable, if u make good mode than it needs its need.
    and i'm 15 and i'm teaching you to fix your mistakes. u failed with copying the lines


    why u change than your line if u think " No need "


    Quote Originally Posted by megol View Post
    What that Fuck ChallengeQuest it is funcional?.
    This ChallengeQuest version is from IGunz, its not functional many bugs for public servers, u can play it but still to many bugs.
    Last edited by Tankado; 30-12-12 at 07:19 PM.

  13. #13
    RailGunZ Soon! megol is offline
    MemberRank
    Jun 2012 Join Date
    260Posts

    Re: Vampire Game Mode [NO TAG]

    I try to play vampire mode but says hacking prevention detected?.

  14. #14
    Account Upgraded | Title Enabled! Wish Q is offline
    MemberRank
    Jul 2012 Join Date
    LiveScoreLocation
    456Posts

    Re: Vampire Game Mode [NO TAG]

    where did you get that avatar ronny?

  15. #15
    Developer / Patch Finder Tankado is offline
    MemberRank
    Oct 2011 Join Date
    The NetherlandsLocation
    451Posts

    Re: Vampire Game Mode [NO TAG]

    Quote Originally Posted by Wish Q View Post
    where did you get that avatar ronny?
    From mine release (Tankado)



Page 1 of 2 12 LastLast

Advertisement