Random scale in DECORATE

Discuss all aspects related to modding Zandronum here.
Post Reply
bleson
 
Posts: 65
Joined: Thu Dec 20, 2012 7:15 am
Location: Australia
Contact:

Random scale in DECORATE

#1

Post by bleson » Tue Jan 08, 2013 6:24 am

Is it possible to use Random (min, max) in DECORATE?

Here's what I'm trying to do

Code: Select all

  scale ( Random ( 1, 2 ) )
Not surprisingly, this is what I get.
Image

Any suggestions?
Last edited by bleson on Tue Jan 08, 2013 9:31 am, edited 1 time in total.

User avatar
Ivan
Addicted to Zandronum
Posts: 2229
Joined: Mon Jun 04, 2012 5:38 pm
Location: Omnipresent

RE: Random values in DECORATE

#2

Post by Ivan » Tue Jan 08, 2013 6:27 am

You do not give random to the Scale parameter. It's either one value or nothing.
=== RAGNAROK DM ON ... uh... dead forever? ===
=== ALWAYS BET ON ... uh... dead forever? ===
=== Who wanta sum wang? ===
=== Death and Decay - A new Monster/Weapon replacer ===

bleson
 
Posts: 65
Joined: Thu Dec 20, 2012 7:15 am
Location: Australia
Contact:

RE: Random scale in DECORATE

#3

Post by bleson » Tue Jan 08, 2013 9:33 am

I tried using A_SetScale, and that's apparently invalid?

Image

Code: Select all

 TNT1 A 0 A_SetScale (Random(1.0,4.0), Random(1.0,4.0)) 

Qent
Retired Staff / Community Team Member
Posts: 1424
Joined: Tue May 29, 2012 7:56 pm
Contact:

RE: Random scale in DECORATE

#4

Post by Qent » Tue Jan 08, 2013 2:41 pm

That's not in Zandronum yet. Do you want the actor to jump randomly between two sizes?

bleson
 
Posts: 65
Joined: Thu Dec 20, 2012 7:15 am
Location: Australia
Contact:

RE: Random scale in DECORATE

#5

Post by bleson » Tue Jan 08, 2013 2:58 pm

Qent wrote: That's not in Zandronum yet. Do you want the actor to jump randomly between two sizes?
If possible,
I want the actor to set itself to a random scale (from min to max) at the start of its spawning. The randomization should be so vast that each of the same monster in a map would have a different scale, even if just by a decimal.
Upon killing one, the game would use its scale number to generate a unique score.
Last edited by bleson on Tue Jan 08, 2013 2:59 pm, edited 1 time in total.

User avatar
Ænima
Addicted to Zandronum
Posts: 3579
Joined: Tue Jun 05, 2012 6:12 pm

RE: Random scale in DECORATE

#6

Post by Ænima » Tue Jan 08, 2013 4:53 pm

For now, you'd have to create a bunch of separate actors. :/
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

Qent
Retired Staff / Community Team Member
Posts: 1424
Joined: Tue May 29, 2012 7:56 pm
Contact:

RE: Random scale in DECORATE

#7

Post by Qent » Tue Jan 08, 2013 5:15 pm

Yes, and use a RandomSpawner to spawn one at random.

bleson
 
Posts: 65
Joined: Thu Dec 20, 2012 7:15 am
Location: Australia
Contact:

RE: Random scale in DECORATE

#8

Post by bleson » Wed Jan 09, 2013 4:16 pm

Alright, that's what I'll have to resort to. It should be worth the amount of copypasting (using inheritance of course).
Last edited by bleson on Wed Jan 09, 2013 4:17 pm, edited 1 time in total.

Post Reply