Raised This Month: $ Target: $400
 0% 

Angle Cvar


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-31-2016 , 23:05   Re: Angle Cvar
Reply With Quote #2

The same way that you make any other cvar and then use get_pcvar_float() to get the floating-point value from the cvar and assign that to the variable that you want. If you want to use BACKSTAB_ANGLE, you'll need change that to a variable first.

Code:
new Float:fMyAngle
// ... 
pCvarPointer = register_cvar() // In plugin_init()
// ...
fMyAngle = get_pcvar_float(pCvarPointer)
__________________

Last edited by fysiks; 01-31-2016 at 23:07.
fysiks 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