mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-19 16:14:44 +00:00
Nerfed point for SL & Flag Catch
This commit is contained in:
parent
8bcb0b64a2
commit
aec604308f
|
|
@ -17,6 +17,9 @@
|
|||
// Thanks for helping me test!
|
||||
// maradona, pip, phantom jaguar, hilikus, the_ham, pip, wiggle, dragon, pancho villa, w/o, nectar and many others..
|
||||
//
|
||||
// v3.40 Sept 2022
|
||||
// Nerfed Shocklance height bonus and Flag catching height
|
||||
//
|
||||
// v3.39 Aug 2021
|
||||
// Added Leave Mission Area Damage from Arena
|
||||
//
|
||||
|
|
@ -575,7 +578,7 @@ function Armor::damageObject(%data, %targetObject, %sourceObject, %position, %am
|
|||
%height = getHeight(%sourceObject);
|
||||
%heightBonus = (mPow(%height,1.20)/14)+1; //was 10
|
||||
%velBonus /= 2;
|
||||
%points = mFloor(%distance/2) + (%heightBonus);
|
||||
%points = mFloor(%distance/2) + (%heightBonus/3); //Added /3 for height
|
||||
|
||||
%accuracy = " [Height:" @ %height @"m]";
|
||||
// borlak -- check rear shocklance hit
|
||||
|
|
@ -1921,11 +1924,11 @@ function LakRabbitGame::playerTouchFlag(%game, %player, %flag)
|
|||
// borlak -- points for MA flag grabs
|
||||
%mask = $TypeMasks::StaticShapeObjectType | $TypeMasks::InteriorObjectType | $TypeMasks::TerrainObjectType;
|
||||
%rayStart = %player.getWorldBoxCenter();
|
||||
%rayEnd = getWord(%rayStart, 0) SPC getWord(%rayStart, 1) SPC getWord(%rayStart, 2) - 5;
|
||||
%rayEnd = getWord(%rayStart, 0) SPC getWord(%rayStart, 1) SPC getWord(%rayStart, 2) - 20;
|
||||
%ground = ContainerRayCast(%rayStart, %rayEnd, %mask, 0);
|
||||
if(!%ground)
|
||||
{
|
||||
%points = mFloor((getSpeed(%player)/7.3) + (getHeight(%player)/3.3)); //was 5.3 - 2.3
|
||||
%points = mFloor((getSpeed(%player)/8.3) + (getHeight(%player)/2.3)); //was 5.3 - 2.3
|
||||
%points = %points > 5 ? %points : 5;
|
||||
messageAll('MsgRabbitFlagTaken', '\c4%1 gets %2 points for a Mid-Air flag grab! [Speed:%3] [Height:%4]~wfx/misc/hunters_horde.wav', %player.client.name, %points, getSpeed(%player), getHeight(%player));
|
||||
%player.client.morepoints += %points;
|
||||
|
|
|
|||
Loading…
Reference in a new issue