Jump to content

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...