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

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 , 06: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 - 10804 views - 2.2 KB)

Last edited by BB.O.; 07-22-2014 at 07:14. Reason: Updated
BB.O. is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-04-2012 , 06: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 , 07: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 07:08.
BB.O. is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-04-2012 , 07: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 , 07: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 , 07: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 , 10: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
Location: Malaysia
Old 04-04-2012 , 11: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.
__________________
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
BB.O.
Member
Join Date: Feb 2011
Old 04-04-2012 , 11: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, 11: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 , 12: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 02:59.


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