Page 1 of 1
Throwing knives
Posted: Thu Jul 16, 2015 11:26 pm
by qazuar
The title just states my goal here.
How would I use "es_physics active setvelocity <index> <velocity>" from ESS in SP?
Posted: Fri Jul 17, 2015 3:29 am
by L'In20Cible
Entity(index).velocity = vector
Posted: Fri Jul 17, 2015 3:37 am
by satoon101
es_physics utilizes the IPhysics interface, which we have not wrapped, yet. It is on our todo list, however. There are other ways to create the same effect in many cases, though, as L'In20Cible has shown in this specific case.
Posted: Fri Jul 17, 2015 3:53 pm
by stonedegg
I tested <Entity>.velocity = <Vector> about a month ago with a prop_physics and it didn't accerelerate the object.
<Entity>.teleport(<Vector>/None, <Vector>/None, <Vector>/None) worked fine.
Arguments stand for position, angle, velocity. I'm not 100% sure if angle needs a Vector or QAngle object.
Posted: Fri Jul 17, 2015 4:54 pm
by L'In20Cible
I'm sure .velocity is calling teleport internally. If it doesnt, it should cause this is the only way to network the velocity to the physics engine that we currebtly have. The problem about wrapping the physics engine is that its library got compiled with no RTTI data and Boost relies on that to export types to python.
Posted: Sat Jul 18, 2015 12:57 pm
by stonedegg
Well you might have changed/fixed that, as I said, it was like a month ago I tested it.