AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   No lag nightvision (https://forums.alliedmods.net/showthread.php?t=315700)

Foxa 04-19-2019 16:04

No lag nightvision
 
1 Attachment(s)
A nightvision plugin that does not drop fps, mainly used for DR and KZ servers, but can be used on other mods aswell, not zombie mods though ¯\_(ツ)_/¯
Nightvision has 2 modes: Normal and Fullbright



I've also added a screen fade effect to the nightvision which can be turned off by commenting/removing line 11 (#define SCREEN_FADE).

Original author Fai (BB.O.) (his version requires a player to have nightvision goggles in their inventory).
https://forums.alliedmods.net/showthread.php?p=1681614

SomewhereLost 04-20-2019 18:27

Re: No lag nightvision
 
Nothing special but I like it.

Spoiler

Foxa 04-21-2019 06:28

Re: No lag nightvision
 
Quote:

Originally Posted by SomewhereLost (Post 2648317)
Spoiler

Hello.

DJEarthQuake 05-01-2019 19:01

Re: No lag nightvision
 
3 Attachment(s)
When you say no lag nightvision you mean standard night vision is unplayable for some people, (not me), or your mod switches nightvision on without delay? I do like how this isn't Counter-Strike specific.

Here is a funny example with somebody running around with stock nightvision on talking about lag.
It did not effect me. Also I was stationary and using their light to shoot. They could not see me. It was completely dark. Still night vision has only helped in my case regardless if I am using it or they are.

Do you have a 3rd person perspective of your night vision?

https://forums.alliedmods.net/attach...1&d=1556751347

https://forums.alliedmods.net/attach...1&d=1556751347

My FPS increases when things go dark.
https://forums.alliedmods.net/attach...1&d=1556751347

Foxa 05-03-2019 09:18

Re: No lag nightvision
 
Well yeah I probably should've clarified that I've only tested it for CS (don't know if it makes any difference on other games ¯\_(ツ)_/¯), and I called it "No lag nightvision" simply because it doesn't drop my FPS (and I didn't know what else to call it), unlike the default CS nightvision.
I've made it for mods where you would prefer to constantly have 100FPS (deahtrun and kz) - and some maps are really really dark.

Here are some 3rd person screenshots, and the difference it makes for my FPS compared to CS's default nighvision:

Spoiler

DJEarthQuake 05-03-2019 12:06

Re: No lag nightvision
 
Stick with the unreliable channel IMO for stability and performance.
Code:
message_begin(8, g_msgScreenFade, _, id);

Infrared vision would be refreshing to see.

Foxa 05-03-2019 13:44

Re: No lag nightvision
 
Well I'm running CS on Pentium G840, with integrated graphics and 2GB of RAM so yeah, FPS drops A LOT.
Yeah, it only works per player, so other players can't see the light, unless they type "nightvision" in the console (or press the nightvision key obviously).
The MSG_ONE being on 1 half and MSG_ONE_UNRELIABLE on the other.. I don't know why I did that..
Changed all MSG_ONE to MSG_ONE_UNRELIABLE

The infrared vision .. yeah no, I've made this because of all the nighvision plugins that I've seen on other servers this one lights up the map and it doesn't drop my FPS. Yeah infrared is cool and all but unnecessary for the mods that it has been tested on (KZ and Deathrun) where you basically turn it on to see where are the blocks that you're supposed to jump on (since as i said some maps are REALLY dark).

DJEarthQuake 05-03-2019 16:45

Re: No lag nightvision
 
Sometimes if you really want to make sure mission critical; msg_one. What is unfortunate is reliable_channel overflows if we have X number people using it Y number of times per second panicking in dark maps.

When using both what is critical and what is not? The fade seems less important than the effect itself. You matched it all now so it is not as remarkable. Initially it seemed backwards as to what is more critical. The fade had MSG_ONE and the vision had MSG_ONE_UNRELIABLE.

Foxa 05-03-2019 17:33

Re: No lag nightvision
 
Why does it matter if I use MSG_ONE_UNRELIABLE and not 8?? It's literally the same thing.

DJEarthQuake 05-03-2019 18:22

Re: No lag nightvision
 
It's just less typing.


All times are GMT -4. The time now is 19:02.

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