I made (or rather, customizing) a 40 hitscan bullets attack, and my idea to make it more consistent while using the vanilla 5*random(1,3) damage parameter, was to use randompick with the following line of code:

- Code: Select all • Expand view
`TNT1 A 0 A_FireBullets(14, 8, 40, randompick(5, 10, 10, 15), "NewBulletPuff", FBF_NORANDOM);`

But here is the quirk, randompick seems to be picking a number and applying it TO EVERY iteration of this function. So the damage ALWAYS is coming out as 200, 400 and 600. It NEVER delivers anything else. Nothing on the wiki states this behavior, so i'm a bit confused here, isn't RANDOMPick suppose to pick a random value for every iteration? And if this is the intended way, how could i fix this to make the damage a bit more consistent?

Thanks!