Raised This Month: $51 Target: $400
 12% 

Module: Cvar Utilities (v1.6)


Post New Thread Reply   
 
Thread Tools Display Modes
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 09-08-2011 , 02:04   Re: Cvar Utilities
Reply With Quote #51

Arkshine, I think it would help him if you made a CvarType_Flags that would essentially do read_flags when the cvar is updated.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-08-2011 , 04:53   Re: Cvar Utilities
Reply With Quote #52

Yep, I thought the same thing.

About the hook, he's right, it should call the forward the first time and what I've done is wrong/not complete.

Will update today.
__________________
Arkshine is offline
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 09-08-2011 , 04:56   Re: Cvar Utilities
Reply With Quote #53

Quote:
Originally Posted by Arkshine View Post
Yep, I thought the same thing.

About the hook, he's right, it should call the forward the first time and what I've done is wrong/not complete.

Will update today.
I look forward to it
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]
Tirant is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-08-2011 , 08:52   Re: Cvar Utilities
Reply With Quote #54

Another small update !

v1.3 - 8 sept 2011
Bug
  • Fixed a wrong/incomplete implementation where a new registered hook should call right away the forward (by default).
    Also added a new param ignoreFirstCall (false by default) for CvarHookChange/CvarHookChangeAll natives to disable this behavior.
New feature
  • Added a new cvar type CvarType_Flags to be used with CvarCache native which will convert the cvar's value into a sum of bits like does read_flags.


Note #1 : The examples of use with CvarCache have been updated also.

Tirant, is it working as expected now ?
__________________
Arkshine is offline
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 09-08-2011 , 14:26   Re: Cvar Utilities
Reply With Quote #55

Quote:
Originally Posted by Arkshine View Post
Another small update !

v1.3 - 8 sept 2011
Bug
  • Fixed a wrong/incomplete implementation where a new registered hook should call right away the forward (by default).
    Also added a new param ignoreFirstCall (false by default) for CvarHookChange/CvarHookChangeAll natives to disable this behavior.
New feature
  • Added a new cvar type CvarType_Flags to be used with CvarCache native which will convert the cvar's value into a sum of bits like does read_flags.


Note #1 : The examples of use with CvarCache have been updated also.

Tirant, is it working as expected now ?
Well, I had to write a new version of read_flags, because I needed to use 32 bits in order to have it work for weapons. I appreciate it though. Event functions are being called properly also.
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]
Tirant is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-08-2011 , 14:31   Re: Cvar Utilities (v1.3)
Reply With Quote #56

Oh well, I'm sure it will be useful for others people.

Since you have an eagle eye, don't hesitate to report bugs and proposing new functionnalities !
__________________
Arkshine is offline
Tirant
Veteran Member
Join Date: Jul 2008
Location: Los Angeles, California
Old 09-08-2011 , 17:12   Re: Cvar Utilities (v1.3)
Reply With Quote #57

Quote:
Originally Posted by Arkshine View Post
Oh well, I'm sure it will be useful for others people.

Since you have an eagle eye, don't hesitate to report bugs and proposing new functionnalities !
Since you mention it... It might be useful to have a special native for registering boolean cvars. It would basically just lock the given cvar to min 0.0, max 1.0. Most cvars are 0/1. I know you can do it now, but automating it would make it easier IMO.
__________________

PM me if you're interested in buying the Credits addition for Base Builder
Battlefield Rebirth [66% done]
Call of Duty: MW2 [100% done]
Base Builder [100% done]
Tirant is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-08-2011 , 17:18   Re: Cvar Utilities (v1.3)
Reply With Quote #58

So you're asking simply a stock with CvarRegister with the params already configured for with a min/max ? You say automating but it just a matter to setup the params. Unless you're talking beeing more readable, I'm not sure to follow you.
__________________
Arkshine is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 09-08-2011 , 18:39   Re: Cvar Utilities (v1.3)
Reply With Quote #59

Does CvarHookChangeCache no longer exist?
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-08-2011 , 18:40   Re: Cvar Utilities (v1.3)
Reply With Quote #60

It was a typo in the documentation. It's actually CvarCache.
__________________
Arkshine is offline
Reply



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:41.


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