mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-03-06 05:00:21 +00:00
Added TacoOverrides.cs
This commit is contained in:
parent
02c488a051
commit
5a12658fa7
1 changed files with 32 additions and 0 deletions
32
Classic/scripts/autoexec/TacoOverrides.cs
Normal file
32
Classic/scripts/autoexec/TacoOverrides.cs
Normal file
|
|
@ -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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue