AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   New NightVision Goggle (No Lag) (https://forums.alliedmods.net/showthread.php?t=181953)

BB.O. 04-04-2012 06:23

New NightVision Goggle (No Lag)
 
1 Attachment(s)
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. :)

Arkshine 04-04-2012 06:39

Re: New NightVision Goggle (No Lag)
 
Flooding the client with ScreenFade message is a very poor way.

BB.O. 04-04-2012 07:04

Re: New NightVision Goggle (No Lag)
 
So what should i do?

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

Arkshine 04-04-2012 07:12

Re: New NightVision Goggle (No Lag)
 
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.

BB.O. 04-04-2012 07:17

Re: New NightVision Goggle (No Lag)
 
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?

NiHiLaNTh 04-04-2012 07:44

Re: New NightVision Goggle (No Lag)
 
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....

BeasT 04-04-2012 10:10

Re: New NightVision Goggle (No Lag)
 
Player is not flashed when nvg is on. Other than that, nice.

yokomo 04-04-2012 11:05

Re: New NightVision Goggle (No Lag)
 
Wow this is CSO NVG, nice but you should fix that non-flashed by FB.

BB.O. 04-04-2012 11:45

Re: New NightVision Goggle (No Lag)
 
I don't know how to fix it :-\

kramesa 04-04-2012 12:33

Re: New NightVision Goggle (No Lag)
 
Goggle?


All times are GMT -4. The time now is 03:48.

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