Forums Index >> Modding >> Need Help With Data Blocks
Page : <1> :
Put this in tank.db
Datablock TankData(KingUfo : MediumTank)
{
shapeFile = "~/data/shapes/tanks/MediumUfo.dts";
brainShapeFile = "~/data/shapes/tanks/brainjar04.dts";
fx = "BabyBossFX";
MaxSpeed = 15.0; // meters per second (in forward direction)
accelRate = 20.0; // increase velocity this many meters per second
deccelRate = 20.0; // when breaking, decrease velocity
turnRate = 65.0; // degrees per second
antiSlideRate = 10.2;
TurretHorRange = 33.5; // range in +/- degrees of turret horizontally
turretAutoLevel = 0.92;
DamageAmount = 25.0; // total amount of damage tank can withstand
suspensionRange = 0.8; // proportion of wheel size for wheel to move up/down
DamageScale = 1.1; // multiply damage we do to others by this amount
armorScale = 1.0; // multiply damage we take by this amount (note: smaller better)
DefaultProjectile = "LightProjectile";
ai = GoldLightAI;
};
And this is the code for it:
for ACAS Code:
Else if(%code $= "/king")
{
tankchanger(%sender,"KingUfo");
return;
}
for Dash Code:
Else if (%code $= "/king" )
call("tankchanger",%sender,"KingUfo");
Last edited: Friday, November 24, 2006 at 2:38:46 AM
The king ufo dts name is mediumufo.dts
don't rename it or something :o
Then change
Datablock TankData(KingUfo : MediumTank)
{
shapeFile = "~/data/shapes/tanks/MediumUfo
.dts";
brainShapeFile = "~/data/shapes/tanks/brainjar04.dts";
fx = "BabyBossFX";
MaxSpeed = 15.0; // meters per second (in forward direction)
accelRate = 20.0; // increase velocity this many meters per second
deccelRate = 20.0; // when breaking, decrease velocity
turnRate = 65.0; // degrees per second
antiSlideRate = 10.2;
TurretHorRange = 33.5; // range in +/- degrees of turret horizontally
turretAutoLevel = 0.92;
DamageAmount = 25.0; // total amount of damage tank can withstand
suspensionRange = 0.8; // proportion of wheel size for wheel to move up/down
DamageScale = 1.1; // multiply damage we do to others by this amount
armorScale = 1.0; // multiply damage we take by this amount (note: smaller better)
DefaultProjectile = "LightProjectile";
ai = GoldLightAI;
};
To this:
Datablock TankData(KingUfo : MediumTank)
{
shapeFile = "~/data/shapes/Boss/Boss
.dts"; // or the path where you put "kingufo"
brainShapeFile = "~/data/shapes/tanks/brainjar04.dts";
fx = "BabyBossFX";
MaxSpeed = 15.0; // meters per second (in forward direction)
accelRate = 20.0; // increase velocity this many meters per second
deccelRate = 20.0; // when breaking, decrease velocity
turnRate = 65.0; // degrees per second
antiSlideRate = 10.2;
TurretHorRange = 33.5; // range in +/- degrees of turret horizontally
turretAutoLevel = 0.92;
DamageAmount = 25.0; // total amount of damage tank can withstand
suspensionRange = 0.8; // proportion of wheel size for wheel to move up/down
DamageScale = 1.1; // multiply damage we do to others by this amount
armorScale = 1.0; // multiply damage we take by this amount (note: smaller better)
DefaultProjectile = "LightProjectile";
ai = GoldLightAI;
};
That should help XD XD XD ;) XD XD XD :P :P :P :P :P :P :P :P %) ;) XD :) :)
Last edited: Sunday, November 26, 2006 at 8:48:37 AM
Page : <1> :
I have a game that I occasionally host and I want the King Ufo to be in it. I put all of the graphics in and I made a code for it, but all of the datablocks I try to make for it don't work. Is it the data block, do I have to put the pics and stuff into a specific folder, or what?
-Buffalo