Facepunch / garrysmod-requests

Feature requests for Garry's Mod
86 stars 24 forks source link

Expose CBaseEntity::SetAbsVelocity (somehow) #811

Open Kefta opened 8 years ago

Kefta commented 8 years ago

According to Willox's clarification in #660, all of the velocity functions are "exposed" in some way or another except SetAbsVelocity. It's possible to do it in Lua serverside if the entity doesn't have a moveparent, but that is a very limited case due to #761 and https://github.com/Facepunch/garrysmod-issues/issues/2552.

Kefta commented 6 years ago

Since the Lua SetAbsVelocity is useless/a duplicate of SetLocalVelocity, maybe it should just be changed to actually call CBaseEntity::SetAbsVelocity?

Kefta commented 6 years ago

Or put it in SetBaseVelocity since that isn't a function yet.