lil test
Code:
if(FStrEq(pcmd, "boom")){
CBaseEntity* e = pEntity->GetUnknown()->GetBaseEntity();
IPhysicsObject* p = e->VPhysicsGetObject();
p->Wake();
p->EnableMotion(true);
p->ApplyForceCenter(Vector(50000, 50000, 100000));
p->ApplyTorqueCenter(AngularImpulse(30, 30, 0));
It only works if the player is physically active somehow. Try it on the ground and it does nothing. Stand on a box or car or something and you'll be sent flying. Think it has to do with the ground entity or some shit.
__________________