Hey I need to create some sort of weighted powerup system for Dogfight. Basically I need a way of having it so the good powerups are rarer than the slightly less useful ones. Does anyone have a good system for this? The only way I can think of is creating duplicate entries in the powerups table but this is hardly ideal and doesn’t really work. Anyone got a way I can just set a value so 50% of the time you get this powerup and 10% of the time you get this one?
function RegisterPowerup(tab, class)
That is my powerup register function tab being the ENT tab in the scripted entity and class being its class name.