GetSky for ACS

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: GetSky for ACS

Re: GetSky for ACS

by SPZ1 » Mon Nov 18, 2024 11:52 pm

That does sound like a good idea. I should have thought of it myself.

Re: GetSky for ACS

by InsanityBringer » Wed Nov 13, 2024 5:15 pm

I'm not going to say that the functionality couldn't be useful elsewhere, but I feel like you should be able to remember what sky was last set yourself already (store the string if you're generating it at run time? or the index if you're looking it up from a big array) and do the comparison, rather than having to ask the information for something you can keep track of yourself.

Re: GetSky for ACS

by SPZ1 » Wed Nov 13, 2024 3:00 pm

I already knew about the LevelLocals struct. I was hoping to avoid ZScript for this.

Re: GetSky for ACS

by MartinHowe » Tue Nov 12, 2024 2:07 am

The bare bones is: define a function in ZScript that does the check, and then call the function from ACS using the ScriptCall ACS function.

(Gotta leave home for work soon, so no time to flesh it out right now; but hopefully that should give you the ideas to research)

GetSky for ACS

by SPZ1 » Mon Nov 11, 2024 5:49 pm

I worked out a day/night system for a potential future GZDoom mod. The problem is that changing the sky texture every second seems to slow down the framerate. I think that if I could do a check for the current sky texture it might speed things up. I'm not sure though so I'm asking. I know ZScript has this feature but I can't see any good way to integrate this into my ACS.

Top