Gunz Talk Forum!
Please login to make use of all of our features

~Michou Forum

This is a public forum for everyone to share videos of Gunz and talk about Gunz The Duel!
HomeHome  [[Staff List]][[Staff List]]  FAQFAQ  RegisterRegister  Log inLog in  Entrance PageEntrance Page  
Read the forum rules, Make sure you respect everyone here, treat everyone the same, start posting and have Fun!

Share | 

 TuT How to add VampireMode [ Stage Tag ] EX : [VAMP]

Go down 
Site Admin / Coder
Site Admin / Coder

Line Separator
WhO Am EyE? WhO Am EyE? : Game Coder

Clan Clan : None

Posts Posts : 297
Age Age : 22
Location Location : Netherlands
Join date Join date : 2012-05-14

PostSubject: TuT How to add VampireMode [ Stage Tag ] EX : [VAMP]   Thu Jan 03, 2013 8:15 pm

This is a new tutorial made by me.


<-- What does this do? -->

when you added this and make a room ( put in the stage name [VAMP] )
now go play 1v1 battle with ur friend idc who!.
let the other guy hit you,
now you hit him and u got some of ur hp Restored.

1. Open ZCharacter.cpp, look for the OnDamaged function, right in front of the call to ZObject::OnDamaged add this:

        #define UPDATE_HEALTH_HPV 3
        #define UPDATE_HEALTH_APV 1

        if (strstr(ZGetGameClient()->GetStageName(), "[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 :

xReflectiox : TuT / Fixed some lines to  make it Operational!
Wizkid : Vampire Mode Source

~xReflectiox TuT`s  :lol!:

Back to top Go down
View user profile
TuT How to add VampireMode [ Stage Tag ] EX : [VAMP]
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Gunz Talk Forum! :: Gunz Section :: GunZ tutorials-
Jump to: