Hi guys, been trying to solve this issue for a while. I am working on a propkill gamemode and one feature is to use a prop to "boost" you into the air at a high velocity, however for some reason my server seems to lack the ability to do this, with a similar configuration with another server.
sv_airaccelerate 1000
sv_sticktoground 0
sv_gravity 600
Player jump power is 225, 500 for walk and run speed
physenv.SetPerformanceSettings():
MaxVelocity is 2200
MaxAngularVelocity is 3636
Here's my server and my attempt at "boosting" myself:
[video]https://youtu.be/ZdyH3EQNfTg[/video]
Here's the other server with the correct response:
[video]https://youtu.be/cHrzYEeTuj0[/video]
I've spent hours working on this, even tried changing my tickrate to 66 instead of 100, mounted css like the other server which also made no difference. Does anyone know what this may be? Thanks!
EDIT: Tested my gmod in singleplayer mode and it worked fine, test it for yourself with this lua code (lua/autorun):
bind a key to "rotate2"
[lua]if CLIENT then
concommand.Add( "rotate2", function()
RunConsoleCommand( "+jump" )
timer.Simple( 0.2, function() RunConsoleCommand("-jump") end )
local a = LocalPlayer():EyeAngles()
LocalPlayer():SetEyeAngles( Angle( a.p - a.p - a.p, a.y - 180, a.r ) )
end )
else
AddCSLuaFile()
hook.Add("InitPostEntity", "Physenv", function()
local physData = physenv.GetPerformanceSettings()
physData.MaxVelocity = 2200
physData.MaxAngularVelocity = 3636
physenv.SetPerformanceSettings( physData )
Msg("Physenv data:\n")
PrintTable(physenv.GetPerformanceSettings())
end)
end[/lua]
Absolutely waste of fucking time. I spent hours trying to resolve this fucking piece of shit issue and it turns out to be because I used the tickrate command in my cmd line. Even setting the tickrate to 66 or 100 fucks the physics up. Great.
Sorry, you need to Log In to post a reply to this thread.