Forums Index >> Modding >> How do you decrease/increase the rate/chance of ge...
Page : <1> :
Open special.cs and scroll to the bottom
U will see this:
$NumPupTypes = 3;
$pupTypes[0] = "SpeedyProjectile";
$pupTypes[1] = "BounceProjectile";
$pupTypes[2] = "SplashProjectile";
$pupSnds[0] = "ActivateSpeedy";
$pupSnds[1] = "ActivateBounce";
$pupSnds[2] = "ActivateSplash";
Now, supose we want the area projectile to have a higher chance of getting the powerup, lets add 1 to $NumPupTypes and double the splash projectile one, making the number inside [ and ] the same as $NumPupTypes - 1 (if you add one more dont change old ones) doing the same with the sound, so it would be:
$NumPupTypes = 4;
$pupTypes[0] = "SpeedyProjectile";
$pupTypes[1] = "BounceProjectile";
$pupTypes[2] = "SplashProjectile";
$pupTypes[3] = "SplashProjectile";
$pupSnds[0] = "ActivateSpeedy";
$pupSnds[1] = "ActivateBounce";
$pupSnds[2] = "ActivateSplash";
$pupSnds[3] = "ActivateSplash";
Now to decrease the chance we would have to double all others, like:
$NumPupTypes = 5;
$pupTypes[0] = "SpeedyProjectile";
$pupTypes[1] = "BounceProjectile";
$pupTypes[2] = "SplashProjectile";
$pupTypes[3] = "SpeedyProjectile";
$pupTypes[4] = "BounceProjectile";
$pupSnds[0] = "ActivateSpeedy";
$pupSnds[1] = "ActivateBounce";
$pupSnds[2] = "ActivateSplash";
$pupSnds[3] = "ActivateSpeedy";
$pupSnds[4] = "ActivateBounce";
Hope this helps,
Art Crazy
Last edited: Tuesday, April 05, 2005 at 11:20:35 AM
Dang art u beat me to it
-.- oh, well that's common sense lol. Thought it was some sort of function:: script.
Run over it more or less often. Works every time for me!
Page : <1> :
The question says it all folks