Thread: Private Data
View Single Post
vancelorgin
Senior Member
Join Date: Dec 2004
Location: san frandisco
Old 12-23-2004 , 20:03  
Reply With Quote #26

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.
__________________
Avoid like the plague.
vancelorgin is offline