Raised This Month: $213 Target: $400
 53% 

New NightVision Goggle (No Lag)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Arkshine (91)
BB.O.
Member
Join Date: Feb 2011
Old 04-04-2012 , 07:23   New NightVision Goggle (No Lag)
Reply With Quote #1

By using this plugin, the original CS NVG inside the game will get replaced.

Notice: This plugin cannot be used in Zombie Plague because of the ZP's lighting system which is not working sucessfully with my plugin,
but you can also make the lighting system work correctly by modifiyng the code such as replacing EngFunc_LightStyle to SVC_LIGHTSTYLE,
so you will be able to use a for-loop check and set a correct light level for each player.

Hope you guys like this.
Attached Files
File Type: sma Get Plugin or Get Source (new_nightvision_goggle.sma - 9416 views - 2.2 KB)

Last edited by BB.O.; 07-22-2014 at 08:14. Reason: Updated
BB.O. is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-04-2012 , 07:39   Re: New NightVision Goggle (No Lag)
Reply With Quote #2

Flooding the client with ScreenFade message is a very poor way.
__________________
Arkshine is offline
BB.O.
Member
Join Date: Feb 2011
Old 04-04-2012 , 08:04   Re: New NightVision Goggle (No Lag)
Reply With Quote #3

So what should i do?

How to do a ScreenFade message and don't flooding the client..

Last edited by BB.O.; 04-04-2012 at 08:08.
BB.O. is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-04-2012 , 08:12   Re: New NightVision Goggle (No Lag)
Reply With Quote #4

Don't know. Start to send the message with the max possible hold time then resending the message at this time etc, but sending such message per frame doesn't make sense.
__________________
Arkshine is offline
BB.O.
Member
Join Date: Feb 2011
Old 04-04-2012 , 08:17   Re: New NightVision Goggle (No Lag)
Reply With Quote #5

So I try to send a FFADE_STAYOUT ScreenFade message and send again when user recieved other ScreenFade messages (like flashbang).. Is it a possible way?
BB.O. is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 04-04-2012 , 08:44   Re: New NightVision Goggle (No Lag)
Reply With Quote #6

in nightvision command hook check if m_flFlashedUntil is > than 0.0..If that offset is > 0.0 than player obvisously is flashed, so avoid turning on your nightvision.
Dont use prethink - hook nightivison and send a ScreenFade once with FFADE_STAYOUT flag....
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
BeasT
Senior Member
Join Date: Apr 2007
Location: Lithuania
Old 04-04-2012 , 11:10   Re: New NightVision Goggle (No Lag)
Reply With Quote #7

Player is not flashed when nvg is on. Other than that, nice.
BeasT is offline
Send a message via Skype™ to BeasT
yokomo
Surprise Ascot!
Join Date: May 2010
Old 04-04-2012 , 12:05   Re: New NightVision Goggle (No Lag)
Reply With Quote #8

Wow this is CSO NVG, nice but you should fix that non-flashed by FB.
__________________
Hi, 7 years ago i run nosteam servers and i support nosteam community. So please ban me. Thank you legitmodders.
yokomo is offline
BB.O.
Member
Join Date: Feb 2011
Old 04-04-2012 , 12:45   Re: New NightVision Goggle (No Lag)
Reply With Quote #9

I don't know how to fix it :-\
BB.O. is offline
Old 04-04-2012, 12:56
Arkshine
This message has been deleted by Arkshine. Reason: Did not seen the update
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 04-04-2012 , 13:33   Re: New NightVision Goggle (No Lag)
Reply With Quote #10

Goggle?
kramesa 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 20:30.


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