Skip to content

Instantly share code, notes, and snippets.

@Rumrusher
Created July 29, 2014 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rumrusher/b6e99f6c188c17c2b7b4 to your computer and use it in GitHub Desktop.
Save Rumrusher/b6e99f6c188c17c2b7b4 to your computer and use it in GitHub Desktop.
this will give you the extra kick to your jumps only works if you're next to a wall, also follows laws of momentum so if your character comes to a complete stop they might not have enough X or Y speed to push them over the ledge.
function JUMP2()
--for k,v in pairs(df.global.world.proj_list.next.item) do
--printall(df.global.world.vehicles.active)
--S=0+getline()
--printall(df.global.world.vehicles.active[0])
--df.global.world.vehicles.active[0].speed_y=(-900000)
df.global.world.proj_list.next.item.accel_z=(20000)
df.global.world.proj_list.next.item.speed_z=(20000)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment