Forums Index >> Modding >> Someone joining a game...
Page : <1> :
Yes, it's possible put this bottom of your.mis. Now when someone joins with light, med or heavy they will be a ufo.
lighttank.accelRate = "15";
lighttank.antiSlideRate = "10.2";
lighttank.armorScale = "1.8";
lighttank.brainShapeFile = "game/data/shapes/tanks/brainjar04.dts";
lighttank.Camera = "DefaultTankCamera";
lighttank.category = "Tanks";
lighttank.className = "TankData";
lighttank.coastDeccelRate = "10";
lighttank.damageAmount = "10";
lighttank.damageScale = "1";
lighttank.deccelRate = "16";
lighttank.defaultProjectile = "LightProjectile";
lighttank.fireScale = "1";
lighttank.fx = "BabyBossFX";
lighttank.maxSpeed = "16";
lighttank.misc = "DefaultTankMisc";
lighttank.shapeFile = "game/data/shapes/tanks/tank05.dts";
lighttank.springCorrectScale1 = "2";
lighttank.springCorrectScale2 = "0.99";
lighttank.springRangeX = "0.06";
lighttank.springRangeY = "0.06";
lighttank.springRangeZ = "0";
lighttank.springVelScale = "1";
lighttank.suspensionRange = "0.8";
lighttank.turnRate = "61";
lighttank.turretAutoLevel = "0.92";
lighttank.turretHorRange = "33.5";
lighttank.turretVerCenter = "2";
lighttank.turretVerRange = "21";
mediumtank.accelRate = "15";
mediumtank.antiSlideRate = "10.2";
mediumtank.armorScale = "1.8";
mediumtank.brainShapeFile = "game/data/shapes/tanks/brainjar04.dts";
mediumtank.Camera = "DefaultTankCamera";
mediumtank.category = "Tanks";
mediumtank.className = "TankData";
mediumtank.coastDeccelRate = "10";
mediumtank.damageAmount = "10";
mediumtank.damageScale = "1";
mediumtank.deccelRate = "16";
mediumtank.defaultProjectile = "LightProjectile";
mediumtank.fireScale = "1";
mediumtank.fx = "BabyBossFX";
mediumtank.maxSpeed = "16";
mediumtank.misc = "DefaultTankMisc";
mediumtank.shapeFile = "game/data/shapes/tanks/tank05.dts";
mediumtank.springCorrectScale1 = "2";
mediumtank.springCorrectScale2 = "0.99";
mediumtank.springRangeX = "0.06";
mediumtank.springRangeY = "0.06";
mediumtank.springRangeZ = "0";
mediumtank.springVelScale = "1";
mediumtank.suspensionRange = "0.8";
mediumtank.turnRate = "61";
mediumtank.turretAutoLevel = "0.92";
mediumtank.turretHorRange = "33.5";
mediumtank.turretVerCenter = "2";
mediumtank.turretVerRange = "21";
heavytank.accelRate = "15";
heavytank.antiSlideRate = "10.2";
heavytank.armorScale = "1.8";
heavytank.brainShapeFile = "game/data/shapes/tanks/brainjar04.dts";
heavytank.Camera = "DefaultTankCamera";
heavytank.category = "Tanks";
heavytank.className = "TankData";
heavytank.coastDeccelRate = "10";
heavytank.damageAmount = "10";
heavytank.damageScale = "1";
heavytank.deccelRate = "16";
heavytank.defaultProjectile = "LightProjectile";
heavytank.fireScale = "1";
heavytank.fx = "BabyBossFX";
heavytank.maxSpeed = "16";
heavytank.misc = "DefaultTankMisc";
heavytank.shapeFile = "game/data/shapes/tanks/tank05.dts";
heavytank.springCorrectScale1 = "2";
heavytank.springCorrectScale2 = "0.99";
heavytank.springRangeX = "0.06";
heavytank.springRangeY = "0.06";
heavytank.springRangeZ = "0";
heavytank.springVelScale = "1";
heavytank.suspensionRange = "0.8";
heavytank.turnRate = "61";
heavytank.turretAutoLevel = "0.92";
heavytank.turretHorRange = "33.5";
heavytank.turretVerCenter = "2";
heavytank.turretVerRange = "21";
You don't have to let go of one rope before grabbing the other. But you'll have to let go of one if you want to swing forward.
Last edited: Saturday, June 25, 2005 at 1:29:38 PM
Thank you Trivox [Bot]! But where is its main source of.cs? :o
I don't like cramming my.mis that much.
EDIT: Oh I can see that it onvolved the tankDB.cs file.
- b20
Last edited: Saturday, June 25, 2005 at 2:01:04 PM
On second thought. This won't work. I have another question that will help me a lot.
How can I make it so that I can only allow the codes /ufo and /light in the codes.cs?
Thank you again. :)
- b20
^ Erm... Not helping... :o
I checked and it only disables every of the codes.
- b20
Last edited: Saturday, June 25, 2005 at 10:08:38 PM
I haven't tested this, but give this a try (for forcing the UFO on join):
// ---------------------------------------------
package ForceUFO {
function GameConnection::startMission(%this)
{
%this.startingTankDB = BabyBoss;
Parent::startMission(%this);
}
};
ActivatePackage(ForceUFO);
// ---------------------------------------------
Stick it at the bottom of main.cs or in the mission file at the top or bottom. Tell me if it works...
Last edited: Sunday, June 26, 2005 at 1:49:42 AM
Yes that worked too. I tested it from main.cs.
You don't have to let go of one rope before grabbing the other. But you'll have to let go of one if you want to swing forward.
Hey thanks 56k Lag Man! It worked! XD
- b20
Page : <1> :
Hi everybody!
I would like to on how to make it so when someone joins my server they automatically become a UFO no matter what tank they are in. Is that possible?
Thank you for your cooperation.
-CompUComp-
- b20