Resource icon

[Open Assets] 10-Line Momentum 6-Line-Momentum V1.1

This content may be freely modified and/or maintained by anyone.
This is a very simplistic Momentum mod, but i this is another momentum that i cant avoid getting stucked in a wall like in Deep Sea 2 Ramp at the beginning
 
This mod is brilliant, but I have an idea to make it work with lower scales:
In the part that says player.runspeed, replace it with FixedMul(player.runspeed, player.mo.scale) so it multiplies the run speed with the player's scale
 
I've shortened your 6 lines of momentums to 1 line of momentum
your welcome :)
or someone else already did that...
1722926375218.png
 

Attachments

  • L_1-LineMomentum.lua
    162 bytes · Views: 231
You don't need the "then" either
If you really want to shorten it, you can go something like:
Lua:
addHook("PlayerThink",function(p)if p.speed>=fixmul(p.runspeed,p.mo.scale)and(p.cmd.forwardmove or p.cmd.sidemove)p.mo.friction=FU end end)
 
idk why i didn't read discussion tabs, id k why that guy got stuck on a ramp, i didn't even know DSZ had those, but yeah I just did a quick change I'll post that rn
 

Who is viewing this thread (Total: 0, Members: 0, Guests: 0)

Back
Top