• Welcome to Freedom Reborn Archive.
 

Predator final exlosion???

Started by CarlosMucha, July 19, 2007, 08:20:09 AM

Previous topic - Next topic

CarlosMucha

I know I create a thread for the Predator, but I don't have a lot of answers, soo this thread is only for one question:

wow I create a final explosion when the Predator is K.O or almost K.O.

I give to gim the Kamikazi atribute but nothing happen (don't know why)

I also give to him a "annihilation" area power but don't works very well if he use that all the time, for that I made that annihilation powers cost a lot of energy.

somebody have a bether idea??

is for  :ff:

thanks in advance!

C.

GGiant

Are you sure?
The attribute works fine.
Try creating your hero file again.
Oh, and I found classic_jean by Ink.
It's here:
http://freedomreborn.net/archive/index.php?topic=43026.0

CarlosMucha

thank you for jean grey! is add to my FF now.  :D

yea, about the atribute, looks like it don't work because when the predator ios K.o. and I have others Predators in my team, the Predator don't explode afther get K.O and I was thinking that it what should happen with the "kamikaze" atribute, right?

GGiant

First, Delete the attribute on your hero file.
Second, Replace the Kamikaze code with this code:

####################### KAMIKAZE #######################################

def initkamikaze(char,update=0):
    if update==0:
        RegAlmostDead(char,'OnKamikaze',1)

def OnKamikaze(event):
    char=event.object
    animation=getByTemplate(char,FFX_KAMIKAZE_CUSTOM,2)
    if animation!='':
        cshelper.disable(char)
        Object_SetAttr(char, 'enabled', 0)
        Object_SetAttr(char, 'ai_priority', 99)
        cshelper.FFX_Animate(char,animation,'OnKKExplode')
        RegTimer('OnKKExplode',5,0,char)
    else:
        RegTimer('OnKKExplode',0.1,0,char)

def OnKKExplode(event):
    char=event.object
    if FFX_ObjectGetAttr(char,'kkexploded',0)==0:
        FFX_ObjectSetAttr(char,'kkexploded',1)
        cshelper.kill(char)
        Trigger_Explosion(char,getByTemplate(char,FFX_KAMIKAZE_CUSTOM,1))

CarlosMucha

Ok, I dont have idea of WERE I should copy and paster that BUT the problem was something really dumb: I have never begin the game with the FFX.Exe until today.  :P now ALL is working.


thank you GGiant for the help! is always nice have people posting in your threads!