[Help] Change character jump height

Post Reply
skytm99
Posts: 1
Joined: Wed Apr 30, 2014 8:39 am

[Help] Change character jump height

Post by skytm99 » Sat Sep 12, 2015 7:12 am

How would one slightly change the jump height of a downloaded character?
I would love to do some parkour with Faith, by just adjusting the jumping a bit.

And no, I don't want to use the rabbit's jumps, etc.

:D

User avatar
deldero
Posts: 103
Joined: Tue May 27, 2014 12:18 pm

Re: [Help] Change character jump height

Post by deldero » Sat Sep 12, 2015 12:31 pm

damn dude, this one seems tough, i looked around in the game files and this one is probably related.

C:\Program Files (x86)\Steam\SteamApps\common\Overgrowth\Data\Scripts\aircontrols

i think that the jump fuel is the one you should look at, but damn, i have no idea how to change that to a specific characther.

also, this is the mods forum, i think you would get more help in the main forum, for questions like this.

viewforum.php?f=13

sorry man, best of fortune.

User avatar
EgyptFalcon
Posts: 26
Joined: Mon Mar 31, 2014 9:05 pm

Re: [Help] Change character jump height

Post by EgyptFalcon » Mon Oct 05, 2015 9:48 pm

In the aircontrols.as file there is the following code:

if(character_getter.GetTag("species") != "rabbit"){
jetpack_fuel *= 0.2f;
this_mo.velocity.y *= 0.6f;
}

Increasing these two values increases the jump height. If you were to add a tag named species to the character in question in its xml file (it could be any tag but this would make it simpler) then you could write an if statement just below the one mentioned above in the aircontrol.as file.

If it were a squirrel, it would look like this: in Data/Custom/Whatever/Characters/squirrel.xml
<tags species = "squirrel"/>

And then in aircontrol.as file:
if(character_getter.GetTag("species") != "rabbit"){
jetpack_fuel *= 0.2f;
this_mo.velocity.y *= 0.6f;
}
else if(character_getter.GetTag("species") != "squirrel"){
jetpack_fuel *= (mess around with this value until it's something you like)f;
this_mo.velocity.y *= (mess around with this value until it's something you like)f;
}

(I'm pretty sure that jetpack_fuel is how long the upward force of the jump lasts and this_mo.velocity.y sets the initial upward force of the jump)

Voila! (hopefully)

User avatar
deldero
Posts: 103
Joined: Tue May 27, 2014 12:18 pm

Re: [Help] Change character jump height

Post by deldero » Tue Oct 06, 2015 6:20 pm

nice finding there :p , did you tested all that? or you have a good grasp on programing language?

either way, nicely done :)

User avatar
EgyptFalcon
Posts: 26
Joined: Mon Mar 31, 2014 9:05 pm

Re: [Help] Change character jump height

Post by EgyptFalcon » Sun Oct 18, 2015 11:13 am

I've had that question myself 8)

Post Reply