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

New NightVision Goggle (No Lag)


Post New Thread Reply   
 
Thread Tools Display Modes
yokomo
Surprise Ascot!
Join Date: May 2010
Old 04-05-2012 , 11:56   Re: New NightVision Goggle (No Lag)
Reply With Quote #21

Quote:
Originally Posted by GuskiS View Post
Will definitely try it out for Biohazard server.
EDIT: Nope, not working, that is a shame. Looking forward for Biohazard compitable version.
What not working? give detail error/problem please.
__________________
Hi, 7 years ago i run nosteam servers and i support nosteam community. So please ban me. Thank you legitmodders.
yokomo is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 04-05-2012 , 16:21   Re: New NightVision Goggle (No Lag)
Reply With Quote #22

Ok. In Biohazard there is a cvar bh_lights which defines how light or dark the map is. What this plugin do is it changes the level of light to lightest possible, but Biohazard changes it back to its defined level after couple seconds.
GuskiS is offline
BB.O.
Member
Join Date: Feb 2011
Old 04-06-2012 , 08:40   Re: New NightVision Goggle (No Lag)
Reply With Quote #23

Then you need to modify the Biohazard code by yourself..
BB.O. is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 04-06-2012 , 11:53   Re: New NightVision Goggle (No Lag)
Reply With Quote #24

Maybe you could give me info what and how to change it? I'm not a coder or something.
GuskiS is offline
BB.O.
Member
Join Date: Feb 2011
Old 04-07-2012 , 12:31   Re: New NightVision Goggle (No Lag)
Reply With Quote #25

You can PM me and give your Biohazard source code to me
BB.O. is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 04-08-2012 , 12:37   Re: New NightVision Goggle (No Lag)
Reply With Quote #26

I sent it to you
GuskiS is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-01-2012 , 06:04   Re: New NightVision Goggle (No Lag)
Reply With Quote #27

Code sounds ok.

Approved.
__________________
Arkshine is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 06-01-2012 , 15:06   Re: New NightVision Goggle (No Lag)
Reply With Quote #28

Isn't it better to use set_pcvar_num?

Quote:
set_cvar_num("sv_skycolor_r", 0)
set_cvar_num("sv_skycolor_g", 0)
set_cvar_num("sv_skycolor_b", 0)
__________________
Accepting paid work for clans and communities. !Plugins & Models!
Don't hesitate to contact me.
bibu is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-01-2012 , 15:42   Re: New NightVision Goggle (No Lag)
Reply With Quote #29

Here no. You use/execute one time cvars. Using pcvar, you would have to use before get_cvar_pointer() then set_pcvar_string(). Calling get_cvar_pointer() has the same performance issue than the _cvar_* natives, it requires the engine to loop through all the registered cvars to find the pointer. So, for something executed one time, 1 native vs 2 natives, what will you be your choice ?
__________________
Arkshine is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 06-02-2012 , 14:02   Re: New NightVision Goggle (No Lag)
Reply With Quote #30

You're right. Thanks for the info.
__________________
Accepting paid work for clans and communities. !Plugins & Models!
Don't hesitate to contact me.
bibu is offline
Reply


Thread Tools
Display Modes

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 16:23.


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