First time modding, could use some help.
Techercizer
7th Player Join Date: 2011-06-11 Member: 103832Members
in Modding
I'm trying to do a small mod to learn a bit about the process, and I was wondering if some of you astronomically more talented modders out there could give me a hand with a few of the basics.
My first objective was to mod up the Gorge Infestation Bellyslide speed cap, which I believe I accomplished pretty well by raising <u>local kMaxSlidingSpeed</u> in <i>Gorge.lua</i>.
Next I want to impart forward momentum to Gorges as they fall, in the way that Skulks get a boost. I tried looking through <i>Skulk.lua</i> for some code to lift, but I can't make heads or tails of where to rip the code from. I have a hunch it's around <u>function Skulk:GetJumpVelocity(input, velocity)</u>, but I'm not sure >.>
Anybody have any tips or advice for how I can accomplish this?
My first objective was to mod up the Gorge Infestation Bellyslide speed cap, which I believe I accomplished pretty well by raising <u>local kMaxSlidingSpeed</u> in <i>Gorge.lua</i>.
Next I want to impart forward momentum to Gorges as they fall, in the way that Skulks get a boost. I tried looking through <i>Skulk.lua</i> for some code to lift, but I can't make heads or tails of where to rip the code from. I have a hunch it's around <u>function Skulk:GetJumpVelocity(input, velocity)</u>, but I'm not sure >.>
Anybody have any tips or advice for how I can accomplish this?
Comments
My first objective was to mod up the Gorge Infestation Bellyslide speed cap, which I believe I accomplished pretty well by raising <u>local kMaxSlidingSpeed</u> in <i>Gorge.lua</i>.
Next I want to impart forward momentum to Gorges as they fall, in the way that Skulks get a boost. I tried looking through <i>Skulk.lua</i> for some code to lift, but I can't make heads or tails of where to rip the code from. I have a hunch it's around <u>function Skulk:GetJumpVelocity(input, velocity)</u>, but I'm not sure >.>
Anybody have any tips or advice for how I can accomplish this?<!--QuoteEnd--></div><!--QuoteEEnd-->
I Believe gorges already get momentum transfer (try sliding up and down a slope). So maybe you need to be looking for a gorge friction thing?
I've done a lot of testing on my own, and while Gorges do gain speed when they go down slopes, they don't gain any just by falling. Many edges have rounded corners that can give a bit of a boost, but dropping off of something flat just plops him on the ground. I'd like to make him build up speed as he falls, which as far as I know, is something that happens to the Skulk right now.
I think the answer might lie in:
Skulk.kAirAcceleration
Skulk.kMaxVerticalAirAccel
Skulk.kAirAccelerationFraction
But thats just a noobs look over the skulk file.