Raised This Month: $32 Target: $400
 8% 

New NightVision Goggle (No Lag)


Post New Thread Reply   
 
Thread Tools Display Modes
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 04-05-2012 , 10: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.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
GuskiS
Veteran Member
Join Date: Aug 2007
Location: Latvia
Old 04-05-2012 , 15: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 , 07: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 , 10: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 , 11: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 , 11: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 , 05: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 , 14: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)
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-01-2012 , 14: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 , 13:02   Re: New NightVision Goggle (No Lag)
Reply With Quote #30

You're right. Thanks for the info.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu 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:18.


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