Forums Index >> Modding >> How can i change the scoring system in BM



Page : <1> :


I never liked how in Battlemode when u die u lose a point I dont know y but it always just bugged me so how can I chage it to where it wont deduct a point when u die or get killed? Is it in the prefs file?

Thursday, August 19, 2004 at 2:33:45 AM

Im not sure but I think its in Tank2.cs under Other stuff........Just look through that and try different things out

Thursday, August 19, 2004 at 2:41:46 AM

Err won't that crash it?
Kris

Thursday, August 19, 2004 at 6:30:10 AM

Not tank2. It's under special.cs

Fully editable

Friday, August 20, 2004 at 11:16:34 PM

Hey Devestator.....why dont u go find in special.cs were it has the Scoring for battlemode....cuz I sure in the hell cant find it......Like I said before Tank2.cs

Saturday, August 21, 2004 at 1:57:35 PM

You asked for it ;)

 

If ($Game::MissionType $= "Scrum")
{
if (%tank.getFlag() != -1)
{
serverPlay3D(PupOffSound,%this.getTransform());
%flag = %tank.getFlag();
%flag.clearMount();
%flag.setTransform(VectorAdd(pickSpawnPoint(""),"0 0 10"));
%flag.setGoal(pickGoal());
if ($Game::TeamGame)
bottomPrintAll(%tank.client.nameBase SPC "scored a goal for the" SPC %tank.client.team.shortName SPC "team!",4,2);
else
bottomPrintAll(%tank.client.nameBase SPC "scored a goal!",4,2);
%tank.incScore(1,1);
}
}
}
else if (%db.type $= "brain")
{
if ($Game::SinglePlayer)
{
if (%tank.getId() == LocalClientConnection.player.getId())
{
%startScore = strfrap(strswiz($Game::idleText @ "client",12),%tank.client.spscore);
%score = %startScore + $Game::BrainPoints;
%tank.client.spscore = strfrip(strswiz($Game::idleText @ "client",12),%score);
SPScoreGui.setScore(%score);
LocalClientConnection.brains++;
SPBrainCounter.setCount(LocalClientConnection.brains);
LocalClientConnection.lastKillTime = getSimTime(); // delay exit for a moment

// this code currently duplicates code in tank.cs...consolidate??? No, for "security" reasons
%freeLives = mFloor(%score/10000)-mFloor(%startScore/10000);
if (%freeLives>0)
{
alxPlay(SPExtra);
%tank.client.lives = %tank.client.lives + %freeLives;
SPLivesGui.showLives(%tank.client.lives);
}
}
}
}
}

Function PowerUpData::onLeave(%db,%this,%tank)
{
//echo(%tank.client.name @ " leaves powerup " @ %this.getId() @ " of type " @ %db.type);
}

Function FlagData::onOutOfBounds(%db,%flag)
{
%flag.clearMount();
%flag.setTransform(VectorAdd(pickSpawnPoint(""),"0 0 10"));
%flag.setGoal(pickGoal());
}

 

Oh...he wanted battlemode? Well, THAT'S in tank2,

Guess we were both right. :)

Sunday, August 22, 2004 at 9:01:47 PM

Is this client side only? Does this affect all maps? Cuse I'd like to do the same with just one map.

Monday, August 23, 2004 at 2:51:09 AM

If you just want to do it with one map....Then copy and paste the part that u changed into the top of your mis file...That way only the mission will be changed.

-Billy Bob-

Monday, August 23, 2004 at 12:00:59 PM

It's server and Does effect all maps.

Sunday, September 12, 2004 at 10:24:09 PM


function lighttank::ondestroyed(%db, %this, %tank) {
%tank.incscore(0);
}

I haven't scripted in a VERY long time, but try it.

Monday, September 13, 2004 at 9:11:54 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