Super zombie

Results 1 to 7 of 7
  1. #1
    Account Upgraded | Title Enabled! CodexPo is offline
    MemberRank
    May 2013 Join Date
    BilbaoLocation
    574Posts

    Super zombie

    hi, i put super zombie and work nice but die with only shot, how i can edit this? thx




  2. #2
    Account Upgraded | Title Enabled! Poster13 is offline
    MemberRank
    Jun 2013 Join Date
    395Posts

    Re: Super zombie

    it is very difficult. it is able to realize only 2 servers

  3. #3
    Account Upgraded | Title Enabled! CodexPo is offline
    MemberRank
    May 2013 Join Date
    BilbaoLocation
    574Posts

    Re: Super zombie

    and you can tell me how?

    maybe i need edit this?

    bool ServerGameLogic::ApplyDamageToZombie(GameObject* fromObj, GameObject* targetZombie, const r3dPoint3D& dmgPos, float damage, int bodyBone, int bodyPart, bool force_damage, STORE_CATEGORIES damageSource)
    {
    r3d_assert(fromObj);
    r3d_assert(targetZombie && targetZombie->isObjType(OBJTYPE_Zombie));

    // relay to zombie logic
    obj_Zombie* z = (obj_Zombie*)targetZombie;
    bool killed = z->ApplyDamage(fromObj, damage, bodyPart, damageSource);
    if(IsServerPlayer(fromObj) && killed)
    {
    IsServerPlayer(fromObj)->loadout_->Stats.KilledZombies++;
    }

    return true;
    }
    Last edited by CodexPo; 13-08-13 at 06:48 PM.

  4. #4
    Android Developer doidloko is offline
    MemberRank
    Aug 2012 Join Date
    BrasilLocation
    253Posts

    Re: Super zombie

    it have in invasion source need make a if with super zombie and demage = 0 or null

  5. #5
    Account Upgraded | Title Enabled! CodexPo is offline
    MemberRank
    May 2013 Join Date
    BilbaoLocation
    574Posts

    Re: Super zombie

    I have modified the DNC version, do you know i can make?

  6. #6
    Yuri-BR#1559 Yuri-BR is offline
    DeveloperRank
    Apr 2013 Join Date
    ☣️❤️Location
    1,040Posts

    Re: Super zombie

    if I'm not mistaken is in sobj_Zombie.cpp

  7. #7
    Account Upgraded | Title Enabled! CodexPo is offline
    MemberRank
    May 2013 Join Date
    BilbaoLocation
    574Posts

    Re: Super zombie

    i make this for Superzombie die with more 3 shots hahah

    first search this line on sobj_Zombie.cpp and edit this

    bool obj_Zombie::ApplyDamage(GameObject* fromObj, float damage, int bodyPart, STORE_CATEGORIES damageSource)

    Original
    if(ZombieState == EZombieStates::ZState_Dead)
    return false;

    float dmg = damage;
    if(bodyPart!=1) // only hitting head will lower zombie's health
    dmg = 0;

    if(damageSource != storecat_MELEE && bodyPart == 1) // everything except for melee: one shot in head = kill
    dmg = 1000;

    ZombieHealth -= dmg;
    Modify

    if(ZombieState == EZombieStates::ZState_Dead)
    return false;

    float dmg = damage;
    if(bodyPart!=1 && HeroItemID != 20204) // only hitting head will lower zombie's health
    dmg = 0;

    if(damageSource != storecat_MELEE && bodyPart == 1 && HeroItemID != 20204) // everything except for melee: one shot in head = kill
    dmg = 1000;

    if (HeroItemID == 20204)
    ZombieHealth -= dmg*15/100;
    else
    ZombieHealth -= dmg;
    if you want Super zombie die more low, edit this line on my code

    ZombieHealth -= dmg*15/100;

    on itemsDB.xml i have this on Super zombie

    <HeroDesc damagePerc="70" damageMax="2000" maxHeads="1" maxBodys="1" maxLegs="1" ProtectionLevel="1" />

    only work if you have super zombie. i hope work fine for all :)
    Last edited by CodexPo; 16-08-13 at 02:23 AM.



Advertisement