View Single Post
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 12-02-2009 , 13:04   Re: [INFO] Fakemeta & Ham detailed function descriptions and examples
Reply With Quote #126

For bots, EngFunc_RunPlayerMove
For non-intelligent entities, EngFunc_MoveToOrigin
For monsters, EngFunc_WalkMove

Not tested but...
PHP Code:
EngFunc_WalkMove(edict_t *entfloat yawfloat distint iMode
Where:

- You get yaw using EngFunc_VecToYaw to convert vector to yaw (it returns a float value)
- The distance to walk is dist
- iMode
PHP Code:
#define WALKMOVE_NORMAL                 0           // Normal walkmove
#define WALKMOVE_WORLDONLY              1           // Doesn't hit ANY entities, no matter what the solid type
#define WALKMOVE_CHECKONLY              2           // Move, but don't touch triggers 
Give a try and tell us.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.

Last edited by joropito; 12-02-2009 at 13:06.
joropito is offline
Send a message via MSN to joropito