> Vector vecDir = pInflictor->WorldSpaceCenter() -
> pVictim->WorldSpaceCenter();

If you want the direction to be from inflictor->victim, then:

Vector vecDir = pVictim->GetAbsOrigin() - pInflictor->GetAbsOrigin();


Normalize, and multiply by speed, etc etc.

-John Sheu


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

Reply via email to