Scripts / animatednightvision.lua - how to make the weapons appear normal after use of nightvision

Author
Message
R.E.Z.
9
Years of Service
User Offline
Joined: 9th Apr 2015
Location:
Posted: 12th May 2015 19:53
Hello,

I noticed, that almost all weapons appear different lighted (some are just balck, others have a kind of green fog over them), after having switched nightvision on and off.
Only the sword f.e. shows up the same, before and after the use of the nightvision.
Might someone has a hint or know, which lines to change, to avoid this?

That would be great.

C.U. R.E.Z.
PM
perelect
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 14th May 2015 02:02
This might help

Put this into your nightvision script at the bottom.
It just sets all the visual settings back to normal.

I may be old, but at least my memory still ....hmmm

Pavilion dv6 Notebook, Intel(R) Core(TM) i5-2410M CPU @ 2.30 GHz, Win 7 64 bit, 16 GB Ram, Radeon (TM) HD 6490M, 2789 MB Memory. Resolution 1366x768, Intel(R) HD Graphics 3000. (WEI 5.8)
R.E.Z.
9
Years of Service
User Offline
Joined: 9th Apr 2015
Location:
Posted: 19th May 2015 19:39 Edited at: 19th May 2015 20:14
Hello perelect,

thank You for Your answer.
I did try this, but the issue is still there.
I found out, when I set the
SetFogIntensity(40) to under 50 it works.
But after I ran the nightvision, the problem is back.

Might there be a way to put this into the nightvision code?

When I add this line for the settings, I get an error.

SetFogIntensity(40)

[Edit] Actually, each time I edit the Visuals (using Tab) setting the FogIntensity new, the issue is changed.
Then, after running the nightvision, it is back.
Is there any way, to force the nightvision after it is finished, to load the Visual stettings, that are set in the level by Editing the Visuals?

Might anyone know an answer? That would be great.

C.U. R.E.Z.
PM
perelect
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 20th May 2015 10:00 Edited at: 22nd May 2015 11:25
Hi R.E.Z.

Sorry I miss read your original post. That code I posted is to get back to daylight settings.
Delete it as it wont fixed the problem.
After reading your posts again. I think.

You are talking about, after you take the goggles off, its still dark, but the weapons are shaded still and you just want the weapons to show up better.

The issue is the two fog settings (nearest and distance) its just that the weapons are under the fog layers still.

I have just attached a snippet of code and the areas to change, as I am not the writer of the original code and I don't think I can publish it here.
So keep adjusting the setting until you are happy with it.



Try that and see what happens, also because the fog distance have been changed it will appear lighter.
So you will have to decrease the colour setting in the same areas to make it darker, just play with it until your happy.


And the SetFogIntensity(40) wont work as it is not in the global.lua script for some reason, that's why you are getting an error, I get the same error.
I'm only new to GG as well. So I am not sure how long its been missing.

I will keep an eye on this post if you need any further help.
I may be old, but at least my memory still ....hmmm

Pavilion dv6 Notebook, Intel(R) Core(TM) i5-2410M CPU @ 2.30 GHz, Win 7 64 bit, 16 GB Ram, Radeon (TM) HD 6490M, 2336 MB Memory. Resolution 1366x768, Intel(R) HD Graphics 3000. (WEI 5.8)
3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 20th May 2015 10:22
Quote: "And the SetFogIntensity(40) wont work as it is not in the global.lua script for some reason"

Anyway you can add it manually.



3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 8.1 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
perelect
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 20th May 2015 10:32
Thanks 3com,

Ill add it in.
I may be old, but at least my memory still ....hmmm

Pavilion dv6 Notebook, Intel(R) Core(TM) i5-2410M CPU @ 2.30 GHz, Win 7 64 bit, 16 GB Ram, Radeon (TM) HD 6490M, 2789 MB Memory. Resolution 1366x768, Intel(R) HD Graphics 3000. (WEI 5.8)
R.E.Z.
9
Years of Service
User Offline
Joined: 9th Apr 2015
Location:
Posted: 25th Jun 2015 19:30
Hello perelect and
hello 3com,

thank You for Your help

I did the adjustment of You, perelect and it works ))
Really great.
Thank You both for the time You took to help me.

C.U. R.E.Z.
PM

Login to post a reply

Server time is: 2024-05-08 22:13:14
Your offset time is: 2024-05-08 22:13:14