Raised This Month: $ Target: $400
 0% 

Angle Cvar


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Sn3amtz
Senior Member
Join Date: Jan 2015
Location: France
Old 01-31-2016 , 23:02   Angle Cvar
Reply With Quote #1

Hello guys... How can make a cver for angles

I tried
new BACKSTAB_ANGLE;
BACKSTAB_ANGLE = register_cvar("backstab_angle","93.0");


Code:
#define BACKSTAB_ANGLE 93.0

static Float:fMinAngle, Float:fMaxAngle;
fMinAngle = fViewAngles[1] - BACKSTAB_ANGLE;
fMaxAngle = fViewAngles[1] + BACKSTAB_ANGLE;

Last edited by Sn3amtz; 01-31-2016 at 23:07.
Sn3amtz is offline
 



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 09:22.


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