Forums Index >> Modding >> Goal Help



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

Tuesday, March 29, 2005 at 8:01:18 PM


 

                                        
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

Tuesday, March 29, 2005 at 8:11:12 PM

And I put that where? O thx for you Help.

Wednesday, March 30, 2005 at 4:30:25 PM

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)

Wednesday, March 30, 2005 at 9:32:55 PM

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?

Thursday, March 31, 2005 at 6:26:11 AM

Where do u put the thinktanks file for moding

 

Thursday, March 31, 2005 at 7:45:16 PM

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.

Friday, April 01, 2005 at 2:39:19 PM

DO I put dis in my mods Mis file?

Sunday, April 03, 2005 at 8:40:34 AM

Yes.

Monday, April 04, 2005 at 2:00:43 PM

Ok thx but I have to reget TT again becuz my Servers dont open or load so thx again

Tuesday, April 05, 2005 at 9:19:35 AM

Meow dis is my Room thingy go post somewhere else do I just put dat power up thing Micheal.

Tuesday, April 05, 2005 at 9:20:57 AM

@g wings dats not nice and I thought you quit TT?

Tuesday, April 05, 2005 at 9:54:49 AM

@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!

Wednesday, April 06, 2005 at 3:36:30 PM

Do I just do dat New power up thing or dat whole line scriptpart

Monday, April 11, 2005 at 3:14:48 PM

Do I just do dat New power up thing or dat whole line scriptpart

Monday, April 11, 2005 at 3:14:49 PM

English?

Monday, April 11, 2005 at 5:09:30 PM

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.

Tuesday, April 12, 2005 at 12:49:12 PM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald