Forums Index >> Modding >> How can i change the scoring system in BM
Page : <1> :
Im not sure but I think its in Tank2.cs under Other stuff........Just look through that and try different things out
Not tank2. It's under special.cs
Fully editable
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
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. :)
Is this client side only? Does this affect all maps? Cuse I'd like to do the same with just one map.
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-
It's server and Does effect all maps.
function lighttank::ondestroyed(%db, %this, %tank) {
%tank.incscore(0);
}
I haven't scripted in a VERY long time, but try it.
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?