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!
 
Home[[Staff List]]FAQRegisterLog inEntrance 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]

View previous topic View next topic Go down 
AuthorMessage
xReflectiox
Site Admin / Coder
Site Admin / Coder


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

Clan Clan : None

Seprator
Posts Posts : 296
Age Age : 20
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.

*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
View user profile
 
TuT How to add VampireMode [ Stage Tag ] EX : [VAMP]
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Megaman 10 Review
» Review: Mario Kart 8 (Wii U Retail)
» All builds of Windows 10 WinReducer Software Alpha Stage?

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