就是更改添加一些新的BOT,像原来固有的坦克:Babyboss ,Bosstank等一样可以在房间里出现的BOT坦克.....
1, 在game\server\scripts中找到tankDb.cs,打开模仿并创建新的坦克.例如:由BABYBOSS那一栏:[内容可能与你的tankdb.cs不同,这只是
个例子]
datablock TankData(BabyBoss : MediumTank)
{
shapeFile = "~/data/shapes/tanks/tank05.dts";
brainShapeFile = "~/data/shapes/tanks/brainjar04.dts";
fx = "BabyBossFX";
maxSpeed = 16.0; // meters per second (in forward direction)
accelRate = 15.0; // increase velocity this many meters per second
deccelRate = 16.0; // when breaking, decrease velocity
turnRate = 61.0; // degrees per second
antiSlideRate = 10.2;
turretHorRange = 33.5; // range in +/- degrees of turret horizontally
turretAutoLevel = 0.92;
damageAmount = 10.0; // total amount of damage tank can withstand
suspensionRange = 1000.8; // proportion of wheel size for wheel to move up/down
damageScale = 1.0; // multiply damage we do to others by this amount
armorScale = 1.8; // multiply damage we take by this amount (note: smaller better)
defaultProjectile = "ufoProjectile";
ai = GoldLightAI;
};
可模仿创建为:
datablock TankData(XYTANK : MediumTank)
{
shapeFile = "~/data/shapes/fighter2/fighter.dts";
brainShapeFile = "~/data/shapes/tanks/bot03.dts";
fx = "BabyBossFX";
maxSpeed = 32.0; // meters per second (in forward direction)
accelRate = 20.0; // increase velocity this many meters per second
deccelRate = 32.0; // when breaking, decrease velocity
turnRate = 61.0; // degrees per second
antiSlideRate = 12.2;
turretHorRange = 33.5; // range in +/- degrees of turret horizontally
turretAutoLevel = 0.92;
damageAmount = 30.0; // total amount of damage tank can withstand
suspensionRange = 1000.8; // proportion of wheel size for wheel to move up/down
