hi, i put super zombie and work nice but die with only shot, how i can edit this? thx
http://img203.imageshack.us/img203/7357/a74r.png
Printable View
hi, i put super zombie and work nice but die with only shot, how i can edit this? thx
http://img203.imageshack.us/img203/7357/a74r.png
it is very difficult. it is able to realize only 2 servers
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;
}
it have in invasion source need make a if with super zombie and demage = 0 or null
I have modified the DNC version, do you know i can make?
if I'm not mistaken is in sobj_Zombie.cpp :sleep:
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
Quote:
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;
if you want Super zombie die more low, edit this line on my codeQuote:
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;
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 :)