Attaching dynamic lights to actors (ZScript)

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is ON
[img] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Attaching dynamic lights to actors (ZScript)

Re: Attaching dynamic lights to actors (ZScript)

by Matt » Wed May 15, 2019 12:41 pm

Here's the sort of thing I ended up doing:
Spoiler:
though it could also be possible to have an actor inherit from the dynamic light actor (but making sure to call Actor.Tick() in its Tick override)

Re: Attaching dynamic lights to actors (ZScript)

by Nash » Wed May 15, 2019 11:11 am

Rip and Tear wrote:Furthermore, because you can't attach ZScript-defined lights to an actor anymore, the DONTLIGHTSELF flag can no longer be used with these lights.
This is the biggest downside, IMO

On the other hand, the performance improvement gained from this change was desperately needed. Aaaaa

Attaching dynamic lights to actors (ZScript)

by Rip and Tear » Wed May 15, 2019 10:43 am

Previously, it was possible to attach a ZScript-defined dynamic light to an actor with the target pointer, but at some point recently that was removed. There should be some other way of attaching ZScript-defined lights to actors.

Attaching lights is far simpler than manually managing light positions (especially since SetOffset was exposed to ZScript). Furthermore, because you can't attach ZScript-defined lights to an actor anymore, the DONTLIGHTSELF flag can no longer be used with these lights.

Top