Quote:
Originally Posted by Peace-Maker
This stock works fine for CS:S. Don't know about other games though.
PHP Code:
stock SetThirdPersonView(client, bool:third)
{
if(third)
{
SetEntPropEnt(client, Prop_Send, "m_hObserverTarget", 0);
SetEntProp(client, Prop_Send, "m_iObserverMode", 1);
SetEntProp(client, Prop_Send, "m_bDrawViewmodel", 0);
SetEntProp(client, Prop_Send, "m_iFOV", 120);
}
else
{
SetEntPropEnt(client, Prop_Send, "m_hObserverTarget", -1);
SetEntProp(client, Prop_Send, "m_iObserverMode", 0);
SetEntProp(client, Prop_Send, "m_bDrawViewmodel", 1);
SetEntProp(client, Prop_Send, "m_iFOV", 90);
}
}
|
Alright, I'll add that in for CS:S first chance I get, and completely rewrite it if it works in other games. I mainly wrote this for TF2, and I haven't found a way to do it in TF2 yet without sv_cheats.
__________________