entity velocity can't be set above 4000 for some reason :/
1 replies, posted
I am making an entity, that when it's created it's velocity is set with [CODE]phys:SetVelocity(###,###,###)[/CODE] and the magnitude should be a number far above 4000, but it keeps clamping the speed to about 4000, does anyone know why? Is there somthing I have to change? because nowhere else in the code is the velocity being set. I also tried using [CODE]phys:SetVelocityInstantaneous(###,###,###)[/CODE]
Also whats the difference in using "base_anim" for your entities and using "base_gmodentity"
which one is better for what situations?
[editline]19th May 2016[/editline]
SOLVED:
the 'physenv' library has a maximum velocity variable that is set to 4000,
[CODE]
physenv.SetPerformanceSettings({
MaxVelocity = 100000, //assuming that these are Hammer Units, this should be about 1,905 meters per second, which is a little faster than a tank round...
MaxAngularVelocity = 5000
})
[/CODE]
You can execute the console command sv_maxvelocity using lua. I made an addon called The Flash Redux and people were requesting that I make it faster and I used that to make the speed up to 10,000. The game wouldn't let me go any faster than that, but I'm sure you could use something like setlaggedmovement if you want it to be faster.
Sorry, you need to Log In to post a reply to this thread.