Thread: VPhysics
View Single Post
DarthMan
Veteran Member
Join Date: Aug 2011
Old 01-13-2024 , 14:57   Re: VPhysics
Reply With Quote #120

Quote:
Originally Posted by asherkin View Post
Hello again people,

Just a quick post to show off what I've been working on recently.
I haven't had time to write up a single shred of documentation yet and the reason I'm posting this in this state is to get an idea on what developers want and so the more advanced people can have a play with it.

All the natives map to corresponding functions in vphysics_interface.h from the HL2SDK, these are different for each game. So if you want to see what Valve have to say about a functions (there are only comments for a few though), grab the version of this file from the SDK for the engine you are using and have a read.

Instructions:
  1. Grab everything from zip file attached.
  2. Look at this to see the functions available.
  3. Look at this for some examples.
  4. Make cool stuff.

Download
Supports all games on all platforms.

Thanks to Drunken_F00l and his SourceOP plugin for the ideas behind this and for the code snippet to get started.

Extension Source Code

Will you please also add the SetInertia function?

https://github.com/ValveSoftware/sou..._ball.cpp#L348

Also, it needs to be re-compiled for EP1 to work with the newest SourceMod versions.
DarthMan is offline