Forums Index >> General >> Chong And Racers Soccer.......Pre-download The Ter...
Page : <1> : 2
Hey sounds good...
Gj
one Q:
Do we carry the ball like in scrum or do we kick it arround (it isnt a bot right?)?
If its carry its easier than all think, get a new terrain and the.dts and then make them use the same basis as the scrum goal and spawn a scrum... It would be much nicer to kick it, but impossible for TT...
Gj tough
Wrong.
We took BB/187's puck-tank and will be replacing the puck body with a ball as soon as I get Unwrap3D. We are making it kickable right now. And we will be using a similar scoring system as what BB/187 used.
Last edited: Tuesday, February 22, 2005 at 10:05:59 AM
Lol no.....i dont support shitty 1st Division teams lol
Hey Art do you think you could write me and Racer a version of the script that lets a bot enter the Goal and it dies and gives the opposite team a point.......exactly like the one BillyBob used for ice hockey ?
function GOALDATABLOCKFORBLUETEAM(not the one they score on)::OnEnter(%this,%db,%tank)
{
%client = %tank.client;
if(%client.namebase $= "BOT NAME FOR THE BALL")
{
%team = "greenTeam";
%team.score += 1;
%team.cumScore += 1;
messageAll('MsgTeamScoreChanged', "", %team.score, %team.cumScore, %team.getId());
}
}
function GOALDATABLOCKFORGREENTEAM(not the one they score on)::OnEnter(%this,%db,%tank)
{
%client = %tank.client;
if(%client.namebase $= "BOT NAME FOR THE BALL")
{
%team = "blueTeam";
%team.score += 1;
%team.cumScore += 1;
messageAll('MsgTeamScoreChanged', "", %team.score, %team.cumScore, %team.getId());
}
}
That should work, never tested it tough.., u need to create the goal datablocks, and change GOALDATABLOCKFORBLUETEAM(not the one they score on) and GOALDATABLOCKFORGREENTEAM(not the one they score on) to the corresponding datablock and BOT NAME FOR THE BALL to the name ur gonna give "puck"
PS: By doing this I just made the only things that needed to be scripted, as datablocks arent :P
Last edited: Tuesday, February 22, 2005 at 1:30:44 PM
Uhm Art I made datablocks and all and got the Goals loading like this
New Powerup(BlueSoccerGoal) {
position = "29.4607 -145.959 129.506";
rotation = "0.00201322 0.000277131 0.999998 180.546";
scale = "1 1 1";
dataBlock = "BlueSoccerGoal";
treeLighting = "0";
lightBoost = "0";
But I put the bot into the goal and I dont get a point it doesnt work at all.............
And I get this error on console
Sheena all ready has come out with one like this nice try you 2 B)
Wtf lol sheena can't script she came up with this mod that used the DefaultFlag.Create() command where she just changed the DefaultFlag shape so there is hundreds of them, Now go away back to play thinktanks or something lonewolf.
Well so far I have managed to make the Goals act as Scrum goals so when you drive in you get a point..........but when I push the bot in I dont get a point........
You get both on hers LOL
told you she all ready beat you to this type of modded map ! :P
Lonewolf you dont understand what we are trying to do, the only people who have made a mod like this before was 187 and BillyBob and the only people who can script this are Art Crazy, Billy Bob and 187........and Sheena cant script, so somehow I think not. All she does is use DefaultFlag.create() and do it a ridiculous number of times and make the Hockey goal act as a scrum goal........we are making it so you dont have to carry the ball into the goal you can just push it.
Now PLEASE lonewolf go and play your little tank game and learn what you are talking about before you come thinking you know something, do yourself a favour.
Yes you push it or you can carry it in. You can do both ! Thats all I am saying it sounds just like the one you are trying to make. Ask her to put it up and see for your self !
P.S.
Learn how to spell ! B)
LoneWolf, this is highly unlikely as Sheena cannot script.
Stupid wierdow aren't you getting into a flame war with a 14 year old when your.....how old ?
You have serious problems and are really sad.
P.S. You cant script so shut up and you dont know what we are talking about because there is no way Sheena could make a mod like this.......END OF STORY you sad little man.
Last edited: Wednesday, February 23, 2005 at 5:27:07 AM
Just go ask her to put it up this will solve your problem of acting like a little child (under 10). Throwing a fit because some one has possible beat you to your idea and you say I am acting like a child go back and read your comments. You are the one who is sad ! B)
I am telling you Sheena cant script lol
End Of Story!
Yeh she uses shapes and just changes the Goal's datablock......that aint what we are talking about we make a Bot in the shape of a soccer ball to enter the goal and give a team a point.......Slight lack of understanding here.
Couldn't you use a normal scrum balli to play soccer on there. Because would it be possible to permenantly have a different scrum ball attached to everyone so that whenyou hit this other one it just goes flying.
Because the specifications of the bot I'm using havent been modded yet....when they have they will have the same specifications as a soccer ball.....a fair speed and stuff I am also putting up a barrier to stop the ball from coming off of the soccer pitch
@Chong
What the hell is the line " tfansi..." on your soccer.cs file? Its not my script problem!
This is what I got:
function BlueGoal::OnEnter(%this,%db,%tank)
{
%client = %tank.client;
if(%client.namebase $= "Ball")
{
%team = "greenTeam";
%team.score += 1;
%team.cumScore += 1;
messageAll('MsgTeamScoreChanged', "Green Team Scored a Goal!", %team.score, %team.cumScore, %team.getId());
}
function GreenGoal::OnEnter(%this,%db,%tank)
{
%client = %tank.client;
if(%client.namebase $= "Ball")
{
%team = "blueTeam";
%team.score += 1;
%team.cumScore += 1;
messageAll('MsgTeamScoreChanged', "Blue Team Scored a Goal", %team.score, %team.cumScore, %team.getId());
}
Now you need the powerup datablock like:
datablock PowerUpData(DefaultGoal)
{
category = "Goal";
shape = "~/data/shapes/common/scrumgoal.dts";
type = "goal";
minOff = 0;
maxOff = 0;
startOn = true;
shadow = false;
shadowAnimation = false;
Sound = "PupOnSound";
soundOff = "";
};
And after doing it you put it in the.mis
About the other problem its not my script's, as it seems to find a line like rtf1/ansi
Last edited: Wednesday, February 23, 2005 at 8:48:52 AM
I have got these in the special.cs and they work I just need a script that works when the bot enters it like Billybob's:
datablock PowerUpData(GreenSoccerGoal)
{
category = "Goal";
shape = "~/data/shapes/chongsoccer/greengoal/hockeygoal.dts";
type = "goal";
minOff = 0;
maxOff = 0;
startOn = true;
shadow = false;
shadowAnimation = false;
Sound = "PupOffSound";
soundOff = "";
};
Datablock PowerUpData(BlueSoccerGoal)
{
category = "Goal";
shape = "~/data/shapes/chongsoccer/bluegoal/hockeygoal.dts";
type = "goal";
minOff = 0;
maxOff = 0;
startOn = true;
shadow = false;
shadowAnimation = false;
Sound = "PupOffSound";
soundOff = "";
};
Then the BlueGoal::OnEnter must be BlueSoccerGoal::OnEnter and so on
Well Art I don't get the error anymore........and both GreenSoccerGoal.cs and BlueSoccerGoal.cs compiled (I seperated them into two files so it loaded) but........it doesnt work lol
.......what now ?
Art you there buddy I'm kinda desperate here lol
...................
Chong, no errors? Ok did u put the exec("file"); in the begin of the.mis file and then changed a powerup to have the desired datablock, changed the OnEnter name to the desired datablocks etc?
Yup I did all that Art
Help me please lol
@Kris
Yup
@Chong
How strange.. Oh well, I think its cos of the %team.. You better ask BB, he's came online today and talked to me, I'll ask when he gets back.
PS: You might put both datablocks like this
function GOALDATABLOCK::OnEnter(%this,%db,%tank)
{
%client = %tank.client;
if(%client.namebase $= "BOT NAME FOR THE BALL")
{
%client.incscore(0,1);
}
}
But that would only work right if the bot would change teams :P
Last edited: Wednesday, February 23, 2005 at 1:02:23 PM
Art dude......i did it!
I just messed about with the script a bit and it worked!
Only thing is the bot doesn't die......how would I do that ?
Oh lol paste here the code you currently have and I'll edit it.
function BlueSoccerGoal::OnEnter(%this,%db,%tank)
{
%client = %tank.client;
if(%client.namebase $= "Ball™")
{
%team = "greenTeam";
%team.score += 1;
%team.cumScore += 1;
Messageall('MsgTeamScoreChanged', "The Green Team Scored!", %team.score, %team.cumScore, %team.getId());
}
}
function GreenSoccerGoal::OnEnter(%this,%db,%tank)
{
%client = %tank.client;
if(%client.namebase $= "Ball™")
{
%team = "blueTeam";
%team.score += 1;
%team.cumScore += 1;
Messageall('MsgTeamScoreChanged', "The Blue Team Scored!", %team.score, %team.cumScore, %team.getId());
}
}
function BlueSoccerGoal::OnEnter(%this,%db,%tank)
{
%client = %tank.client;
if(%client.namebase $= "Ball™")
{
%team = "greenTeam";
%team.score += 1;
%team.cumScore += 1;
Messageall('MsgTeamScoreChanged', "The Green Team Scored!", %team.score, %team.cumScore, %team.getId());
}
%tank.hurtme(999);
}
function GreenSoccerGoal::OnEnter(%this,%db,%tank)
{
%client = %tank.client;
if(%client.namebase $= "Ball™")
{
%team = "blueTeam";
%team.score += 1;
%team.cumScore += 1;
Messageall('MsgTeamScoreChanged', "The Green Team Scored!", %team.score, %team.cumScore, %team.getId());
}
%tank.hurtme(999);
}
That should work
It doesn't work lol
U think its becouse of the same problem you had, tweak it again :P
It's open.
Keep on the good work folks Hockey was a fun Mod...
Page : <1> : 2
We have just got a few more touches to add then we are releasing it, download the terrain from
HERE!