Raised This Month: $ Target: $400
 0% 

TS & SetFOV


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Charr
Senior Member
Join Date: Jul 2005
Location: Long Island, New York, U
Old 02-20-2006 , 17:16   TS & SetFOV
Reply With Quote #1

I am trying to modify people's FOV when SetFOV is called, but the problem is SetFOV is never called. I tried using this in client prethink but that didn't work either:

Code:
new gScope[33][36][2],gFov[33]; new gInScope[33] = {0,...}; ... public client_PreThink(id) {     gFov[id] = entity_get_float(id,EV_FL_fov);     new clip,ammo,mode,extra,weapon = ts_getuserwpn(id,clip,ammo,mode,extra);     if(is_user_alive(id) && gFov[id] < 90.0 && gFov[id] != gScope[id][weapon][0] && gFov[id] != gScope[id][weapon][1])     {         if(!gInScope[id] && extra & TSA_SCOPE && gScope[id][weapon][0])         {             entity_set_float(id,EV_FL_fov,gScope[id][weapon][0]);             gInScope[id]++;         }         else if(gInScope[id] == 1 && extra & TSA_SCOPE && gScope[id][weapon][1])         {             entity_set_float(id,EV_FL_fov,gScope[id][weapon][1]);             gInScope[id]++;         }         else if(gInScope[id] == 2)         {             entity_set_float(id,EV_FL_fov,90.0);             gInScope[id] = 0;         }     } }
__________________
Charr is offline
Send a message via AIM to Charr Send a message via MSN to Charr
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode