Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
OldDoomMapper

GZDoom spotlight

Recommended Posts

Hello all,

I've spent much time and effort searching and trying, but I've not been able to put a simple spotlight in my UDMF map for GZDoom.

In GZDB it is not shown under dynamic lights items; trying to spawn it from ACS code failed. It seems it's something using ZScript, that I've never used.Can someone kindly explain how this thing is supposed to work?

Thank you.

Share this post


Link to post

Spotlights have their own category in the GZDB Thing menu:

 

image.png.e11f2854be6e952d698c9334e0dfad61.png  

 

The controls on the right dictate the direction the light is shone: angle is X/Y, pitch is Z, and roll is (I think) unused for Spotlights.

 

On the subsequent screen:

 

image.png.676d79e329063f9cf0573bff8db06212.png

 

The Color is a Hex value.  The Inner Angle is how wide (in degrees) the bright center part of the spotlight is.  The Outer Angle is how wide the dimmer outer part of the spotlight is.  The intensity is how far the spotlight reaches.

 

When you first place a Spotlight it can be a little confusing to work out where it's facing because you obviously can't see the cone of light, only whatever surfaces it hits.  I'd suggest jacking the intensity and then spinning the Angle and Pitch until you can a bearing on where it's facing, and then edit the various angles and color.

Share this post


Link to post
9 hours ago, OldDoomMapper said:

Hello all,

I've spent much time and effort searching and trying, but I've not been able to put a simple spotlight in my UDMF map for GZDoom.

In GZDB it is not shown under dynamic lights items; trying to spawn it from ACS code failed. It seems it's something using ZScript, that I've never used.Can someone kindly explain how this thing is supposed to work?

Thank you.

 

In addition to Bauul's answers:

Dynamic Spotlights were added in GZDoom Builder - Bugfix r2995 and then improved upon in subsequent revisions.

https://devbuilds.drdteam.org/gzdbbf/

Edited by Kappes Buur

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×