From 5a12658fa7f5247519bc6a93ee0e9c9b367f6266 Mon Sep 17 00:00:00 2001 From: ChocoTaco Date: Mon, 4 Feb 2019 17:50:31 -0500 Subject: [PATCH] Added TacoOverrides.cs --- Classic/scripts/autoexec/TacoOverrides.cs | 32 +++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Classic/scripts/autoexec/TacoOverrides.cs diff --git a/Classic/scripts/autoexec/TacoOverrides.cs b/Classic/scripts/autoexec/TacoOverrides.cs new file mode 100644 index 0000000..aea7bcc --- /dev/null +++ b/Classic/scripts/autoexec/TacoOverrides.cs @@ -0,0 +1,32 @@ +//Various Overrides +// + +package TacoOverrides +{ + +//Issue with the start grenade throw was very soft and bumped it up a tad +function serverCmdEndThrowCount(%client, %data) +{ + if(%client.player.throwStart == 5) + return; + + // --------------------------------------------------------------- + // z0dd - ZOD, 8/6/02. New throw str features + %throwStrength = (getSimTime() - %client.player.throwStart) / 150; + if(%throwStrength > $maxThrowStr) + %throwStrength = $maxThrowStr; + else if(%throwStrength < 0.5) + %throwStrength = 0.5; + // --------------------------------------------------------------- + + %throwScale = %throwStrength / 2; + %client.player.throwStrength = %throwScale; + + %client.player.throwStart = 5; //was 0 +} + +}; + +// Prevent package from being activated if it is already +if (!isActivePackage(TacoOverrides)) + activatePackage(TacoOverrides); \ No newline at end of file