Thread: xe0.9
View Single Post
Old 10-26-2008, 08:57 AM   #159
zen87
vJass maniac
 
zen87's Avatar
 
Join Date: May 2006
Posts: 732

Submissions (1)

zen87 has a spectacular aura about (86)zen87 has a spectacular aura about (86)zen87 has a spectacular aura about (86)

Send a message via MSN to zen87
Default

a little suggestion in xedamage:

Collapse JASS:
        // method .useSpecialEffect("effect\\path.mdl", "origin")
        // Makes it add (and destroy) an effect when damage is performed.
        //
        method useSpecialEffect takes string path, string attach returns nothing
            set this.usefx = true
            set this.fxpath=path
            set this.fxattach=attach
        endmethod

to

Collapse JASS:
        // method .useSpecialEffect("effect\\path.mdl", "origin")
        // Makes it add (and destroy) an effect when damage is performed.
        //
        method useSpecialEffect takes string path, string attach returns nothing
            if path!="" and path!=null then
                set this.usefx = true
                set this.fxpath=path
                set this.fxattach=attach
            else
                set this.usefx = false
            endif
        endmethod

well... because i globalized my xedamage to deal spell damage, so that i just call spell_dmg.damageTarget or spell_dmg.damageAOE when needed...

but sometimes i'll like to add some eyecandy when dealing the damage without affecting the global xedamage spell_dmg...

mainly because i'm trying to do this...
Collapse JASS:
    call spell_dmg.useSpecialEffect("some_effect","chest") //set the damage effect
    call spell_dmg.damageAOE( ... do aoe dmg ... )
    call spell_dmg.useSpecialEffect(null,null) //reset the damage effect, spell_dmg can be used for other spell damage now


urghhh... can get what i mean...?
__________________
Final Alliance
An RPG like no other
zen87 is offline   Reply With Quote