Can someone either explain to me how I can implement a flashlight for dark areas similar to Doom 3 but that requires batteries or alternatively a link to a ready made one? I'm sure Interstellar Enforcer used a similar mechanic.
Thanks in advance.
Flashlight mechanics
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!)
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!)
- Hidden Hands
- Posts: 1053
- Joined: Tue Sep 20, 2016 8:11 pm
- Location: London, England
- Contact:
Re: Flashlight mechanics
To make a flashlight, you would have to either spawn a bunch of light actors in DECORATE, or make a spotlight in ZScript.
The ZScript spotlight method is of course better. Both in looks and performance.
There is a very handy flashlight mod here that can be easily edited with a powerup.
As for making it have a depleting battery, you would need to do some CustomInventory wizardry.
Here is a working one:
The ZScript spotlight method is of course better. Both in looks and performance.
There is a very handy flashlight mod here that can be easily edited with a powerup.
As for making it have a depleting battery, you would need to do some CustomInventory wizardry.
Here is a working one:
Spoiler:
Re: Flashlight mechanics
The flashlight I carry with me when I'm walking my dog: battery life 3 years and counting (used every day).
Game flashlight: battery life 1 minute if you're lucky.
Game flashlight: battery life 1 minute if you're lucky.
