That's not quite what I meant, but if it works, good.
I meant to put similar code in the client-side portion of the flag entity.
For example, here's something out of my game:
int C_InfoObjective::DrawModel( int flags )
{
Vector vecDirection = CurrentViewOrigin() - GetAbsOrigin();
QAngle angDrection;
VectorAngles(vecDirection, angDrection);
// Always orient towards the camera!
SetAbsAngles( angDrection );
return BaseClass::DrawModel( flags );
}
Just before model is drawn, the render angles are overridden so that it
always faces the camera. This could be changed so that it faces in any
direction you choose.
--
Jorge "Vino" Rodriguez
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders