mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-11 06:04:33 +00:00
DM update
This commit is contained in:
parent
ab52d8bf3f
commit
e3004337cd
1 changed files with 16 additions and 0 deletions
|
|
@ -524,6 +524,22 @@ function Player::maxInventory(%this, %data)
|
|||
return %max;
|
||||
}
|
||||
|
||||
function Armor::damageObject(%data, %targetObject, %sourceObject, %position, %amount, %damageType, %momVec, %mineSC)
|
||||
{
|
||||
parent::damageObject(%data, %targetObject, %sourceObject, %position, %amount, %damageType, %momVec, %mineSC);
|
||||
|
||||
//Other armors get more damage
|
||||
if(%targetObject.client.armor $= "Medium")
|
||||
{
|
||||
%amount *= 1.2;
|
||||
}
|
||||
|
||||
if(%targetObject.client.armor $= "Heavy")
|
||||
{
|
||||
%amount *= 1.5;
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
function DMGame::sendGameVoteMenu(%game, %client, %key)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue