Forums Index >> Modding >> Last Problem For My Mod



Page : <1> :


I'll go straight to the point:
How do you make it so you get points every second while in a scrum goal that you can see. Also no one can be spawned here. EX CTF except you don't need the scrum. I'm not a lazzy bum, I'v tried to get this to work and this is what I got so far:

Function kothgoal::onenter(%db, %this, %tank) {
bottomPrintall(%tank.client.namebase SPC "has control and is scoring!",5,2);
}
datablock PowerUpData(kothgoal)
{
category = "goal";
shape = "~/data/shapes/common/scrumgoal.dts";
type = "goal";
startOn = true;
shadow = true;
shadowAnimation = true;
aiPickup = true;

Sound = "PupOnSound";
soundOff = "PupOffSound";
};
//--- OBJECT WRITE BEGIN ---
And this at bottom:

New PowerUp() {
dataBlock = "kothgoal";
position = "0 0 100";
rotation = "1 0 0 0";
scale = "1 1 1";
lightBoost = "0";
};
};
//--- OBJECT WRITE END ---
Now all I need from that is some code like %tank.client.addpoints or I don't know, but thats what I'm stuck on. If any of you have a tottaly different way that works then please tell me. Thanks.

Saturday, February 12, 2005 at 8:18:23 AM

Function kothgoal::onenter(%db, %this, %tank) {
bottomPrintall(%tank.client.namebase SPC "has control and is scoring!",5,2);
$kothgoal:schedule1 = %tank.schedule(*number of miliseconds between scoreing* , incscore, 1, 1, 1);
}

Saturday, February 12, 2005 at 8:32:48 AM

I'm going to keep tring diffrent ways, but so far all I'v got is when you get in the goal you only get one point. When you say "miliseconds" you mean like.000001 of a second right? So to make that one second I would make it 1000000? This is what how I had it:
Function kothgoal::onenter(%db, %this, %tank) {
bottomPrintall(%tank.client.namebase SPC "has control and is scoring!",5,2);
$kothgoal:schedule1 = %tank.schedule(100 , incscore, 1, 1, 1);
Well I'v goten a little farther then. Thanks for the help so far!

Saturday, February 12, 2005 at 1:15:16 PM


mili- means 1000. So I think you know what to do...


Saturday, February 12, 2005 at 3:44:06 PM

Ok I think you meant milisecond means.001. So when I pulg in 1000 so it is one second as shown below it still only gives me one point. Heres what I got so far:

Function kothgoal::onenter(%db, %this, %tank) {
bottomPrintall(%tank.client.namebase SPC "has control of the hill and is scoring!",5,2);
$kothgoal:schedule1 = %tank.schedule(1000 , incscore, 1, 1, 1);
}

Last edited: Saturday, February 12, 2005 at 4:11:36 PM

Saturday, February 12, 2005 at 4:11:20 PM

Oh, I didnt see you wanted the scrum, try this:
function kothgoal::onenter(%db,%this,%tank)
{
%client = %tank.client;
%team = %client.team;
%name = %client.namebase;
%flag = %tank.getflag();
%flagtype = %flag.getname();

If(%flagtype $= "*flag*")
{
$kothgoal:schedule1 = %tank.schedule(*number of miliseconds between scoreing* , incscore, 1, 1, 1);
}

You will have to play around with the schedule and stuff, but that is the general idea of what you want.

Saturday, February 12, 2005 at 4:13:15 PM

 

 

EX CTF except you don't need the scrum

 


I want this to be a battle mode game type so you wouldn't need the scrum. I'll mess around with the schedule thing to get it to work. If I want to get a point every second it should be 1000? Anyway to figure this out I need to know what the incsore the 1s after it mean. Thanks.

Saturday, February 12, 2005 at 6:04:51 PM

Incscore, 1, 1, 1
first is player score, second is team score, not sure what the 3rd is.

Saturday, February 12, 2005 at 6:39:28 PM

Not to change the subject but how is ur underground mod going bomber?

Saturday, February 12, 2005 at 7:06:51 PM

O that ant working, I thought if I put a spawn point under ground you would be under ground but that doesn't seem to work.

Saturday, February 12, 2005 at 8:57:20 PM

I need too that and it always crashes for me :(

Saturday, February 12, 2005 at 11:41:30 PM

What does the inscore mean and what ever els you can tell me about it.

Friday, February 18, 2005 at 8:01:47 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