Simple HP regeneration per second

Results 1 to 9 of 9
  1. #1
    Account Upgraded | Title Enabled! theodor2005 is offline
    MemberRank
    Aug 2007 Join Date
    203Posts

    config Simple HP regeneration per second

    In ZGameInput.cpp:

    Code:
    #include "ZModule_HealOverTime.h"

    line 81'ish [just before switch(pEvent->nMessage)]
    Code:
    ZModule_HealOverTime *pModule = (ZModule_HealOverTime*)ZGetGame()->m_pMyCharacter->GetModule(ZMID_HEALOVERTIME);
    pModule->BeginHeal(MMDT_HEAL, 1 ,1000,MMIEI_NONE,30001);
    That's it.

    I personally think that HP regen helps provoke aggression between players and gives a reason to try to stay alive longer (HP without AP won't help much anyway).


    Cheers,
    Theo


  2. #2
    Account Upgraded | Title Enabled! KeyTrix is offline
    MemberRank
    Feb 2012 Join Date
    EverywhereLocation
    268Posts

    Re: Simple HP regeneration per second

    Good job, i have found this before but i didn't bother messing with it, although hp without ap won't really help but a regen per second is useful sometimes, in Duel match specifically.

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

    Re: Simple HP regeneration per second

    Thanks, Keep it up posts like these may be good to use !

  4. #4
    Proficient Member xTrafx is offline
    MemberRank
    Feb 2012 Join Date
    152Posts

    Re: Simple HP regeneration per second

    Thank you for this!! it works just tested and if i wanna increase the rate of the hp regeneration i need to change this rite? (MMDT_HEAL, 1 ,1000,MMIEI_NONE,30001);
    Last edited by xTrafx; 03-12-12 at 04:06 PM.

  5. #5
    Account Upgraded | Title Enabled! theodor2005 is offline
    MemberRank
    Aug 2007 Join Date
    203Posts

    Re: Simple HP regeneration per second

    That is true, however keep in mind that it wont take a value less than 1 hp, for some reason 1000ms seems like the minimum AND maximum value (seriously, I have no idea why). But if you get something working, please do share. A value bigger than 1 hp per second would be a bit too fast TBH, but I guess my opinion doesn't really count.

    ps: You can also change the MMDT_HEAL to something that suits your need (AP heal?). Just right click and go for definition, you should find the other options there.

  6. #6
    Proficient Member xTrafx is offline
    MemberRank
    Feb 2012 Join Date
    152Posts

    Re: Simple HP regeneration per second

    Quote Originally Posted by theodor2005 View Post
    That is true, however keep in mind that it wont take a value less than 1 hp, for some reason 1000ms seems like the minimum AND maximum value (seriously, I have no idea why). But if you get something working, please do share. A value bigger than 1 hp per second would be a bit too fast TBH, but I guess my opinion doesn't really count.

    ps: You can also change the MMDT_HEAL to something that suits your need (AP heal?). Just right click and go for definition, you should find the other options there.
    yeah i agree i do test it out more then 1 hp per sec and it regenerate so fast

  7. #7
    Account Upgraded | Title Enabled! Rejain is offline
    MemberRank
    Jul 2012 Join Date
    201Posts

    Re: Simple HP regeneration per second

    I didnt really understand what it does..

  8. #8
    GunZ messiah peaceofpi is offline
    MemberRank
    Nov 2006 Join Date
    333Posts

    Re: Simple HP regeneration per second

    That is definitely an interesting addition. Perhaps it could be implemented as a ring or a secondary item if it's too potent to be a natural passive effect.

    Good work.

  9. #9
    Proficient Member xTrafx is offline
    MemberRank
    Feb 2012 Join Date
    152Posts

    Re: Simple HP regeneration per second

    Quote Originally Posted by Rejain View Post
    I didnt really understand what it does..
    It will regenerate your health ingame when you get hit or something



Advertisement