[DECORATE] Dynamic Lighting Help

Discuss all aspects related to modding Zandronum here.
Post Reply
false_chicken
 
Posts: 36
Joined: Sat Aug 09, 2014 10:47 pm

[DECORATE] Dynamic Lighting Help

#1

Post by false_chicken » Wed Oct 12, 2016 12:23 pm

Hello! I am currently trying to have a torch weapon that the player can carry in my mod. I am trying to have a dynamic light follow the player while the torch is equipped but I am having trouble getting the light to.... work. I have tried creating and binding a point light to an object then using A_SpawnItemEx in the torch decorate code to spawn the invisible object that the light is attached to (Using GLDEFS) with no luck. I have also tried using decorate directly using Light but it never seems to work.

No error. Just no dynamic light. I am sure I am simply doing something wrong and I have it enabled in the settings. Is there a mod that does something similar that I can look at? I have found a few but they also use ACS and do not contain the source. Only the binary object. Thanks!

User avatar
ZZYZX
Posts a lot
Posts: 742
Joined: Thu Jun 07, 2012 5:56 pm
Location: Ukraine
Clan: A3
Clan Tag: [A3]

[DECORATE] Re: Dynamic Lighting Help

#2

Post by ZZYZX » Wed Oct 12, 2016 1:39 pm

Do other dynamic lights work? Are they even enabled?
Does the dynamic light thing placed in the editor work?
What does your GLDEFS definition look like?

false_chicken
 
Posts: 36
Joined: Sat Aug 09, 2014 10:47 pm

[DECORATE] Re: Dynamic Lighting Help

#3

Post by false_chicken » Wed Oct 12, 2016 4:29 pm

Here is the source for the mod: https://github.com/falsechicken/SpellBinder

Ill try the editor stuff when I get home. Thanks. I have also tried in vanilla GZDoom and it doesn't work their either. I have tried a lot of stuff before it got to where it is now xD.

EDIT: Dynamic lights are working. I can see the glow under armor and turn it off.

Post Reply