mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-02-27 09:53:35 +00:00
More ammo, lower cap, other armors
This commit is contained in:
parent
d513475cd0
commit
1773c06a6c
1 changed files with 14 additions and 2 deletions
|
|
@ -9,6 +9,7 @@
|
|||
//Kill
|
||||
//Don't get killed
|
||||
//Points are scored for each kill you make and subtracted each time you die
|
||||
//First person to 25 points wins
|
||||
//--- GAME RULES END ---
|
||||
|
||||
$InvBanList[DM, "TurretOutdoorDeployable"] = 1;
|
||||
|
|
@ -99,11 +100,12 @@ function DMGame::equip(%game, %player)
|
|||
%player.setInventory(Shocklance, 1);
|
||||
%player.setInventory(RepairKit, 1);
|
||||
%player.setInventory(TargetingLaser, 1);
|
||||
%player.setInventory(Grenade, 5);
|
||||
%player.use("Shocklance");
|
||||
}
|
||||
else
|
||||
{
|
||||
buyDeployableFavorites(%player.client);
|
||||
buyFavorites(%player.client);
|
||||
%player.setEnergyLevel(%player.getDataBlock().maxEnergy);
|
||||
%player.selectWeaponSlot( 0 );
|
||||
|
||||
|
|
@ -191,7 +193,7 @@ function DMGame::checkScoreLimit(%game, %client)
|
|||
%scoreLimit = MissionGroup.DM_scoreLimit;
|
||||
|
||||
if(%scoreLimit $= "")
|
||||
%scoreLimit = 50;
|
||||
%scoreLimit = 25;
|
||||
if(%client.score >= %scoreLimit)
|
||||
%game.scoreLimitReached();
|
||||
}
|
||||
|
|
@ -512,6 +514,16 @@ function ProjectileData::onCollision(%data, %projectile, %targetObject, %modifie
|
|||
}
|
||||
}
|
||||
|
||||
function Player::maxInventory(%this, %data)
|
||||
{
|
||||
//chocotaco - just runs as an ammo pack cuz messing with the inv max messes up weapons cycling
|
||||
//%max = ShapeBase::maxInventory(%this,%data) * 2;
|
||||
%max = ShapeBase::maxInventory(%this,%data);
|
||||
//if (%this.getInventory(AmmoPack))
|
||||
%max += AmmoPack.max[%data.getName()];
|
||||
return %max;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
function DMGame::sendGameVoteMenu(%game, %client, %key)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue