Random MeleeDamage

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
Terra-jin
Posts: 65
Joined: Mon Oct 27, 2003 7:15 am
Location: Bilthoven, Holland

Random MeleeDamage

Post by Terra-jin »

The damage for the MeleeDamage and normal Damage is always (random 1,8)*[value]. I would like to know if you can make it use different random numbers, e.g. (random 1,6)*10; the Cacodemon melee damage.
I'm making 'quad' monsters, which require separate damage values, but so far I could only use the (random 1,8) formula.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Instead of using random(1,6)*10 you can do random(1,8)*8. Yes, the maximum is slightly higher and the distribution is different but do such minor issues really matter?

What do you mean with 'quad' monsters, anyway?
Terra-jin
Posts: 65
Joined: Mon Oct 27, 2003 7:15 am
Location: Bilthoven, Holland

Post by Terra-jin »

Hmmm, I guess you're right... somehow it just didn't feel 'complete'... nevermind.

And quad monsters, well, have you ever played Quake? :D
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

You mean quad damage? Simply multiply the MeleeDamage value by 4.
Terra-jin
Posts: 65
Joined: Mon Oct 27, 2003 7:15 am
Location: Bilthoven, Holland

Post by Terra-jin »

Yeah I know :)

I'm creating many new versions of existing enemies, and I use Quake powerups and stuff for inspiration. If I was any good with Paint, I'd make my own monsters, but alas... I ain't.
User avatar
Ultraviolet
Posts: 1152
Joined: Tue Jul 15, 2003 9:08 pm
Location: PROJECT DETAILS CLASSIFIED.

Post by Ultraviolet »

Um... Paint? Why?
Locked

Return to “Editing (Archive)”