• Problem with players being able to jump really far.
    9 replies, posted
My gamemode is derived from sandbox so players are able to jump super far when running. Here are my vars: [CODE]--[[Default Walk Speed]]-- local WalkSpeed = ( 160 ) --[[Default Run Speed]]-- local RunSpeed = ( 240 )[/CODE] I've messed around with SetJumpPower and it doesn't change the distance, only the height. Also, changing the gravity only makes the action of jumping faster.
Its probably the speed he is running at. Ur just setting vars, use exact functions when a player spawns.
well changing the jump height inevitably has effect on the distance and jump distance is a factor of height and speed so unless you want jumping to look really dumb you should lower the run speed [editline]17th January 2016[/editline] if your gamemode relies on moving fast but NOT jumping far, the gamemode's gameplay is bad
[QUOTE=bitches;49547917]well changing the jump height inevitably has effect on the distance and jump distance is a factor of height and speed so unless you want jumping to look really dumb you should lower the run speed [editline]17th January 2016[/editline] if your gamemode relies on moving fast but NOT jumping far, the gamemode's gameplay is bad[/QUOTE] Those values i'm using are DarkRP's defaults. If i set them any lower you'd be moving at a crawling pace. My gamemode doesn't rely on moving fast, just at a normal pace.
so why are you upset at the jump distance?
If you are inheriting the Sandbox, the problem is probably from the HL2 jump distance replication that MaxOfS2D implemented.
[QUOTE=bitches;49547954]so why are you upset at the jump distance?[/QUOTE] Because the jump distance is crazy, if you jump while running you move at a significantly faster pace than someone just running. I don't want everyone bhopping all over the place. [QUOTE=code_gs;49547971]If you are inheriting the Sandbox, the problem is probably from the HL2 jump distance replication that MaxOfS2D implemented.[/QUOTE] Would there be a way around it? If i don't inherit Sandbox i can't use the spawn menu. EDIT: Also, where is the movement speed set in sandbox? I can't seem to find it.
[url]https://github.com/garrynewman/garrysmod/blob/3e138636eb1b0ad6ed785dedf350020755cff5f1/garrysmod/gamemodes/sandbox/gamemode/player_class/player_sandbox.lua#L154-L205[/url]
[url=https://github.com/garrynewman/garrysmod/blob/3e138636eb1b0ad6ed785dedf350020755cff5f1/garrysmod/gamemodes/sandbox/gamemode/player_class/player_sandbox.lua]go to this file in your server files[/url] the final boost is applied on line 200 try adding two hyphens before the text on that line aka -- this will make the line do nothing you could also try changing the code in some other manner you prefer [editline]17th January 2016[/editline] [QUOTE=code_gs;49548240][url]https://github.com/garrynewman/garrysmod/blob/3e138636eb1b0ad6ed785dedf350020755cff5f1/garrysmod/gamemodes/sandbox/gamemode/player_class/player_sandbox.lua#L154-L205[/url][/QUOTE] fffffffffffffffffffuck [editline]17th January 2016[/editline] note that updates to the game may override the changes you make to that file because it is a part of the gamemode [editline]17th January 2016[/editline] it may be for the best if someone submitted a pull request to make this hookable in sandbox
Thank you lots, i looked at this file earlier and must have missed it.
Sorry, you need to Log In to post a reply to this thread.