mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +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!
|
// Thanks for helping me test!
|
||||||
// maradona, pip, phantom jaguar, hilikus, the_ham, pip, wiggle, dragon, pancho villa, w/o, nectar and many others..
|
// 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
|
// v3.39 Aug 2021
|
||||||
// Added Leave Mission Area Damage from Arena
|
// Added Leave Mission Area Damage from Arena
|
||||||
//
|
//
|
||||||
|
|
@ -575,7 +578,7 @@ function Armor::damageObject(%data, %targetObject, %sourceObject, %position, %am
|
||||||
%height = getHeight(%sourceObject);
|
%height = getHeight(%sourceObject);
|
||||||
%heightBonus = (mPow(%height,1.20)/14)+1; //was 10
|
%heightBonus = (mPow(%height,1.20)/14)+1; //was 10
|
||||||
%velBonus /= 2;
|
%velBonus /= 2;
|
||||||
%points = mFloor(%distance/2) + (%heightBonus);
|
%points = mFloor(%distance/2) + (%heightBonus/3); //Added /3 for height
|
||||||
|
|
||||||
%accuracy = " [Height:" @ %height @"m]";
|
%accuracy = " [Height:" @ %height @"m]";
|
||||||
// borlak -- check rear shocklance hit
|
// borlak -- check rear shocklance hit
|
||||||
|
|
@ -1921,11 +1924,11 @@ function LakRabbitGame::playerTouchFlag(%game, %player, %flag)
|
||||||
// borlak -- points for MA flag grabs
|
// borlak -- points for MA flag grabs
|
||||||
%mask = $TypeMasks::StaticShapeObjectType | $TypeMasks::InteriorObjectType | $TypeMasks::TerrainObjectType;
|
%mask = $TypeMasks::StaticShapeObjectType | $TypeMasks::InteriorObjectType | $TypeMasks::TerrainObjectType;
|
||||||
%rayStart = %player.getWorldBoxCenter();
|
%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);
|
%ground = ContainerRayCast(%rayStart, %rayEnd, %mask, 0);
|
||||||
if(!%ground)
|
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;
|
%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));
|
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;
|
%player.client.morepoints += %points;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue