|
Author Topic:   TM's weight
coaxs
Member
posted December 25, 2002 04:18 PM            
Has anyone "really" figured out how this entry in the entity really works at weapons points.

We all know the higher the number the increase in the frequency but what is the true mechanism behind it?

I'm guessing that TM works as follows: The probability of getting item A is the (weight of A)divided by/(the sum of the weight for all the weapons and health and ammo boxes). Would this be true?

------------------
Tread Marks Ladders

IP:

KiLlEr
Member
posted December 25, 2002 09:06 PM            
In theory yes. But it tends to clump so its not exactly WEIGHT/sum-of-weights.

What it prolly does is collect the ents and then assigns ranges to them:

Ent 1 (weight 50) start:0 end:49
Ent 2 (weight 100) start:50 end:150
Ent 3 (weight 20) start:151 end:171

Then the random number generator picks a number from 0 and 170. then it tests this against the range of the ents (prolly using a tree search). That would explain the clumping.

IP:

coaxs
Member
posted December 26, 2002 04:07 AM            
Thats interesting, so excluding clumping the probability of getting ENT 1 would still be its weight divided by the total. Thank for telling me how it works mechanisticlly.

------------------
Tread Marks Ladders

IP:

Neo
Member
posted December 26, 2002 08:10 PM            
Hehe, "mechanisticlly". I like that one. I'm gonna say it to my mechanic one day.

And to my plumber: "plumbistically". Or maybe to my electrician, "electrisitically".

sorry.

Ohh man, i feel like GA#1. (No offense GA.)

IP:

coaxs
Member
posted December 26, 2002 08:27 PM            
Mechanistically is a word silly, just forgot to spell check that post.

Its derived from Mechanism not Mechanic

------------------
Tread Marks Ladders

IP:

coaxs
Member
posted December 26, 2002 08:33 PM            
Before Ras jumps on me, I'm using the less frequent use of the word.

[This message has been edited by coaxs (edited December 26, 2002).]

IP: