[Decorate] A_SpawnItemEx Flag: Transfer Scale

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 OFF
Smilies are ON

Topic review
   

Expand view Topic review: [Decorate] A_SpawnItemEx Flag: Transfer Scale

Re: [Decorate] A_SpawnItemEx Flag: Transfer Scale

by Major Cooke » Tue Oct 13, 2015 2:21 pm

I think this was meant to be tagged as [Already In] or [Duplicate]. The OP suggested SXF_TRANSFERSCALE. :P

Re: [Decorate] A_SpawnItemEx Flag: Transfer Scale

by D2JK » Mon Oct 12, 2015 5:02 am

However, you also have SXF_IS* flags you can use, if you want to set the scale of the actor just after spawning with A_SetScale call being done from the spawner, pointing it at the child actor via those flags.
Thanks for that, I didn't realize A_SetScale had an actor pointer parameter.

Re: [Decorate] A_SpawnItemEx Flag: Transfer Scale

by Major Cooke » Sun Oct 11, 2015 4:39 pm

Not going to happen.
Spoiler: Four big reasons I can think of why it won't happen
However, you also have SXF_IS* flags you can use, if you want to set the scale of the actor just after spawning with A_SetScale call being done from the spawner, pointing it at the child actor via those flags.

Re: [Decorate] A_SpawnItemEx Flag: Transfer Scale

by D2JK » Sun Oct 11, 2015 4:03 pm

Sorry for the bump, but I think it would have been more flexible if the function had a dedicated "scale" parameter. This would also enable the use of expressions; for example, the "ScaleX" variable should already make the above flag redundant.

Sometimes you don't want the scale of the spawned actor to be neither default, nor equal to that of the calling actor. Currently, a roundabout way to control the scale of the spawned actor is to temporarily re-scale the calling actor (A_SetScale before and after the spawning). A dedicated scale parameter would make this more straightforward.

Re: [Decorate] A_SpawnItemEx Flag: Transfer Scale

by NeuralStunner » Sun Aug 25, 2013 9:12 pm

Just ran across this again. It's been added already.

Re: [Decorate] A_SpawnItemEx Flag: Transfer Scale

by FDARI » Sun Apr 15, 2012 6:18 am

I put it in my big submission. http://forum.zdoom.org/viewtopic.php?f= ... 40#p616940
Of course, if there is any kind of problem with that package, the feature could be submitted independently as well.
Most recent patch is untested (I don't have the time right now, must leave immediately).

[Decorate] A_SpawnItemEx Flag: Transfer Scale

by NeuralStunner » Fri Apr 13, 2012 6:33 pm

SXF_TRANSFERSCALE: The caller's ScaleX and ScaleY are transferred to the spawned actor. This would remove the need for a lot of redundant Decorate code.

Top