Hi again,

I still not figured it out.
I tried serveral things but still no actions.
Everyone knows that the slay command:
'engine->ClientCommand(pEntity, "kill\n"); ' is.

But what about SLAP. GetHealth? Sethealth?
Doesn't reqonize. Also for teleport, Im not that good in C++, so any help
would be great.
Like a piece of code, website. Things like that.

Thanks
Frank.

----- Original Message -----
From: "Lance Vorgin" <[EMAIL PROTECTED]>
To: <hlcoders@list.valvesoftware.com>
Sent: Monday, January 10, 2005 5:59 AM
Subject: Re: [hlcoders] Player command - Health control? Damage?


> Well, my friend qizmo and I have gotten slap working well. My
> contribution was the actual slapping: get a CBaseEntity of the player
> you want to slap and use the Teleport function to change his velocity
> to some random vector. As for dealing damage, this is compliments of
> theqizmo: static_cast<CBasePlayer*> the CBaseEntity, then do
> Event_Killed(CTakeDamageInfo( blah )); to kill him, then Event_Dying()
> to make him run through the motions of actually dying. To modify his
> health just use SetHealth and GetHealth - but make sure to check if it
> goes to 0 or below, as you'll have to kill him yourself if it happens.
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to