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

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

~Michou Forum
Gunz Talk Forum!
Would you like to react to this message? Create an account in a few clicks or log in to continue.


This is a public forum for everyone to share videos of Gunz and talk about Gunz The Duel!
 
HomeHome  [[Staff List]][[Staff List]]  Latest imagesLatest images  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!

 

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

Go down 
AuthorMessage
xReflectiox
Site Admin / Coder
Site Admin / Coder
xReflectiox


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

Clan Clan : None

Seprator
Posts Posts : 298
Age Age : 27
Location Location : Netherlands
Join date Join date : 2012-05-14

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

This is a new tutorial made by me.

*THIS IS FOR 1.5 SERVERS ONLY*

<-- 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:


Code:
        #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);
            }
        } 




Code:
Credits :

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

~xReflectiox TuT`s  :lol!:
Back to top Go down
 
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: