Freedom Reborn Archive

Freedom Force Forums => Hero File Discussion => Topic started by: bearded on November 12, 2007, 04:11:42 PM

Title: velcro feet
Post by: bearded on November 12, 2007, 04:11:42 PM
should spider-man and nightcrawler be more resistant to knockback?
Title: Re: velcro feet
Post by: stumpy on November 12, 2007, 06:35:11 PM
That's not necessarily a bad idea. It could also reflect characters who are slushy / wear padded suits or are able to roll with blows better but aren't totally immune from knockback like those with DENSITY CONTROL or ROOTED.

Anyway, it's a really easy coding job, so here is a first pass at it. (I am playing FF1 right now and I can't play FF2 without rebooting, so this is untested.)

####################### Velcro Feet ###################################
# stumpy 2007-11-12:
# As suggested by bearded (see http://freedomreborn.net/archive/index.php?topic=45190.0)
# FFEdit name: velcrofeet, cost 100
# strings.txt entries:
## attrib_velcrofeet_01, velcro feet
## attrib_velcrofeet_desc_01, due to grippy footwear, a slushy composition, or an overabundance of higg's bosons, you are twice as resistant to knockback as your mass alone would suggest.

def initvelcrofeet(char,update=0,remove=0):
    if remove and ( FFX_ObjectGetAttr(char,'velcrofeet',0) != 0 ) :
        FFX_ObjectSetAttr(char,'velcrofeet',0)
        Object_SetAttr(char, 'minForce', FFX_ObjectGetAttr(char,'templateMinForce'))
        FFX_ObjectSetAttr(char, 'baseMinForce', FFX_ObjectGetAttr(char,'templateMinForce'))
    else:
        FFX_ObjectSetAttr(char,'velcrofeet',1)
        # Not doing it, but should we check that minForce isn't arlready tweaked?
        FFX_ObjectSetAttr(char, 'templateMinForce', Object_GetAttr(char,'minForce'))
        Object_SetAttr(char, 'minForce', Object_GetAttr(char,'mass')*20)
        # change baseMinForce so that this plays well with ffqrooted etc.
        FFX_ObjectSetAttr(char, 'baseMinForce', Object_GetAttr(char,'mass')*20)
####################### end of Velcro Feet #############################