Forums Index >> Modding >> Goal Help
Page : <1> :
datablock flagdata(NewFlag)
{
bounceStatic = "0.5";
bounceTerrain = "0.7";
category = "Flags";
className = "FlagData";
collISI = "200";
frictionTerrain = "0.4";
hardCollSound = "softCollSound";
hardCollVel = "1";
noPickup = "0";
shapeFile = "game/data/shapes/common/scrumball.dts";
snagFlagSound = "PupOffSound";
softCollVel = "1";
springCorrectScale1 = "2";
springCorrectScale2 = "0.99";
springRange = "0.3";
springVelScale = "1";
unstuckBoost = "10";
unstuckTime = "2500";
};
function NewFlag::onoutofbounds(%db, %flag)
{
%rot = %flag.rotation;
%newPos = ("52.546 45.7144 70.6158" @ " " @ %rot);
%flag.settransform(%newpos);
}
datablock powerupdata(GreenBase)
{
aiPickup = "0";
className = "PowerUpData";
emitterDuration = "0";
maxOff = "0";
minOff = "0";
shadow = "0";
shadowAnimation = "0";
sound = "PupOnSound";
startOn = "1";
staticShadow = "0";
shape = "game/data/shapes/common/scrumgoal.dts";//////Change this!
};
function GreenBase::onenter(%db,%this,%tank)
{
%client = %tank.client;
%team = %client.team;
%name = %client.namebase;
%flag = %tank.getflag();
%flagtype = %flag.getname();
If(%flagtype $= "NewFlag")
{
%tank.incscore(1, 1, 1);
%flag.clearMount();
%flag.setTransform(VectorAdd(pickSpawnPoint(""),"0 0 10"));/////change this if you dont want the flag to spawn at spawn points
bottomprintall(%name@ " Has Scored A Goal For The Green Team!", 2, 1);/////change this also
}
datablock powerupdata(BlueBase)
{
aiPickup = "0";
className = "PowerUpData";
emitterDuration = "0";
maxOff = "0";
minOff = "0";
shadow = "0";
shadowAnimation = "0";
sound = "PupOnSound";
startOn = "1";
staticShadow = "0";
shape = "game/data/shapes/common/scrumgoal.dts";//////Change this!
};
function BlueBase::onenter(%db,%this,%tank)
{
%client = %tank.client;
%team = %client.team;
%name = %client.namebase;
%flag = %tank.getflag();
%flagtype = %flag.getname();
If(%flagtype $= "NewFlag")
{
%tank.incscore(1, 1, 1);
%flag.clearMount();
%flag.setTransform(VectorAdd(pickSpawnPoint(""),"0 0 10"));/////change this if you dont want the flag to spawn at spawn points
bottomprintall(%name@ " Has Scored A Goal For The Blue Team!", 2, 1);/////change this also
}
That doesnt check for team, so if you are wanting it to be like CTF you will need to add that in there.
Last edited: Tuesday, March 29, 2005 at 8:16:08 PM
And I put that where? O thx for you Help.
G-wings, if you can't fix the problem, look at what player scored it, then look at the left of the sreen and see what colour the name is B)
No I need to know how to place two in there and when I blue team knocks the Bot into the green goel it says Blue Team Scored I need two goals for my Foot Ball Mod and how do I change my flag so people can acculy See it?
Where do u put the thinktanks file for moding
Sooo....i'm working with a beginer here?
Stick that on a.cs file, and exec in the top of the mission file you are using.
This is what the goal would look like in the mission file:
new PowerUp() {
dataBlock = "GreenBase";
position = "2.16032 -81.4789 104.691";
rotation = "-0.0204578 0.0810437 0.996501 79.5375";
scale = "1 1 1";
lightBoost = "0";
};
And to change the flag, change the flag datablock path to your liking.
DO I put dis in my mods Mis file?
Yes.
Ok thx but I have to reget TT again becuz my Servers dont open or load so thx again
Meow dis is my Room thingy go post somewhere else do I just put dat power up thing Micheal.
@Kristoffer=STOP POSTING IN MY ROOMS MAN DANG! And I did quit TT im just modding and givin out my Memories.
Does dat Satistfy u and plus u oviously cant Mod!
Do I just do dat New power up thing or dat whole line scriptpart
Do I just do dat New power up thing or dat whole line scriptpart
English?
It's bad enough that white boys like to pretend to sound like intercity African Americans
. But do they have to try and write like they sound like them too?
If your going to mimic another groups culture do it correctly and write like intercity African Americans
.
Which, last time I looked, is correct English.
Page : <1> :
How do I make it to where I have 2 goals like 1 for Blue team and 1 for Green them and when da flag goes into either one it says Green team scored a goal-Blue team scored a goal? Plz help