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.
[Help] Change character jump height
Re: [Help] Change character jump height
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.
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.
-
- Posts: 26
- Joined: Mon Mar 31, 2014 9:05 pm
Re: [Help] Change character jump height
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)
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)
Re: [Help] Change character jump height
nice finding there :p , did you tested all that? or you have a good grasp on programing language?
either way, nicely done
either way, nicely done
-
- Posts: 26
- Joined: Mon Mar 31, 2014 9:05 pm
Re: [Help] Change character jump height
I've had that question myself