ZScript Night-Vision Device Help

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Graaicko
Posts: 532
Joined: Tue Jun 17, 2014 11:22 pm
Graphics Processor: nVidia (Legacy GZDoom)

ZScript Night-Vision Device Help

Post by Graaicko »

Hello. So sometime ago, I created a Night-Vision script using ZScript which is put in the players inventory, It works perfectly much like the DN3D, which has a limit, I even created a slight static filter for it.
There are still a few problems with it which are:

1. Toggling it is done through the inventory selection (inventory activation) but is turned off when I press the GZDoom use key... I would like it to have its own hotkey which I would like to be "N" that toggles it both on and off.

2. As I understand when activated, it illuminates ALL sectors of any existing map. This is fine except its not really how conventional Night-vision works. I would like it to respond much more like Duke Nukem 3D's Night-Vision, dark sectors but actors are seen with that "infrared" vision effect which brings me to issue number 3.

3. I have absolutely no idea how to make it do that infrared vision effect of enemies and actors. The ZScript I built for it doesn't actually do that at the moment.

Conclusion: So to pretty much sum up what I am looking for is I would like it to conviently be activated and deactivated by a single key which I would like to be "N" key. I would also like it to be more dark but somehow have the ability to activate that "infrared" effect on actors, items and enemies preferably. Also If possible, I have created some mugshots of my character wearing the Night-Vision. If it would be possible to implement that when it is activated and deactivated I would be greatly thankful, but this is certainly not required right now. I don't really know how too work with ZScript that much which is why I am seeking assistance.

Decorate
Spoiler:
Additonal Code
Spoiler:
Attachments
My Night-Vision atm
My Night-Vision atm
Post Reply

Return to “Scripting”