Throwing knives

Please post any questions about developing your plugin here. Please use the search function before posting!
qazuar
Junior Member
Posts: 16
Joined: Fri Jun 20, 2014 9:05 am

Throwing knives

Postby qazuar » Thu Jul 16, 2015 11:26 pm

The title just states my goal here.

How would I use "es_physics active setvelocity <index> <velocity>" from ESS in SP?
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Postby L'In20Cible » Fri Jul 17, 2015 3:29 am

Entity(index).velocity = vector
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Fri Jul 17, 2015 3:37 am

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.
Image
stonedegg
Senior Member
Posts: 141
Joined: Sun Aug 12, 2012 11:45 am

Postby stonedegg » Fri Jul 17, 2015 3:53 pm

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.
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Postby L'In20Cible » Fri Jul 17, 2015 4:54 pm

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.
stonedegg
Senior Member
Posts: 141
Joined: Sun Aug 12, 2012 11:45 am

Postby stonedegg » Sat Jul 18, 2015 12:57 pm

Well you might have changed/fixed that, as I said, it was like a month ago I tested it.

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 144 guests