Power-Up Problem
Posted: Sat Feb 07, 2009 3:56 pm
Alright so i was trying to make custom Power-ups in my server. i followed benblue's tutorial, but when i tried to open my server, BANG it quits. why??? here's my P-up part of special.cs.
things i tried (on suggestion from Squishin RT):
changing it to NinjaStarProjectile.
i have all the files listed there, i just don't know what happened!
Code: Select all
datablock ProjectileData(NinjaStar)
{
velocity = 150; // meters per second
inheritVelocity = 5; // how much of shooters velocity to inherit
numBounce = 0; // usually 0
splashArea = 0.0; // usually 0
count = 20; // how many shots per clip?
saveOldCartridge = true; // chuck old cartridge or keep it around
canSave = false; // can this cartridge be saved if another comes along?
reloadTime = 1400; // in milliseconds
burstDelay = 2000; // milliseconds until next burst if button held down
burstCount = 3; // number of projectiles to fire per burst
synchTime = 1000; // synch over this many milliseconds
synchBefore = 500; // synch if not older than this in milliseconds
damage = 2; // usually 1
gravityScale = 2; //
sizeScale = 0.8; // scale of projectile (meters for bitmaps)
resource = "~/data/shapes/tanks/NinjaStar.jpg"; // shape or bitmap
tankExplosion = "DefaultTankExplosion"; // datablock for explosion
ownTankExplosion = "DefaultTankExplosion"; // datablock for explosion
bounceExplosion = "DefaultExplosion"; // datablock for explosion
otherExplosion = "DefaultExplosion"; // datablock for explosion
reticle = "NinjaReticle";
};
Code: Select all
$NumPupTypes = 4;
$pupTypes[0] = "SpeedyProjectile";
$pupTypes[1] = "BounceProjectile";
$pupTypes[2] = "SplashProjectile";
$pupTypes[3] = "NinjaStarProjectile";
$pupSnds[0] = "ActivateSpeedy";
$pupSnds[1] = "ActivateBounce";
$pupSnds[2] = "ActivateSplash";
$pupSnds[3] = "ActivateSplash";
things i tried (on suggestion from Squishin RT):
changing it to NinjaStarProjectile.
i have all the files listed there, i just don't know what happened!