Skip to content

Commit

Permalink
Add Server Setting FireTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Deaod committed Mar 13, 2024
1 parent c2410e7 commit 35f7ee6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Classes/ServerSettings.uc
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ var config int MaxPosError;
var config int MaxHitError;
var config float MaxJitterTime;
var config float WarpFixDelay;
var config float FireTimeout;
var config float MinNetUpdateRate;
var config float MaxNetUpdateRate;
var config bool bEnableInputReplication;
Expand Down Expand Up @@ -119,6 +120,7 @@ function DumpServerSettings(PlayerPawn P) {
DumpSetting(P, "MaxHitError");
DumpSetting(P, "MaxJitterTime");
DumpSetting(P, "WarpFixDelay");
DumpSetting(P, "FireTimeout");
DumpSetting(P, "MinNetUpdateRate");
DumpSetting(P, "MaxNetUpdateRate");
DumpSetting(P, "bEnableInputReplication");
Expand Down Expand Up @@ -166,6 +168,7 @@ defaultproperties
MaxHitError=10000
MaxJitterTime=0.1
WarpFixDelay=0.25
FireTimeout=0.1
MinNetUpdateRate=60.0
MaxNetUpdateRate=200.0
ShowTouchedPackage=False
Expand Down
4 changes: 2 additions & 2 deletions Classes/bbPlayer.uc
Original file line number Diff line number Diff line change
Expand Up @@ -3543,7 +3543,7 @@ function xxNN_Fire( float TimeStamp, int ProjIndex, vector ClientLoc, vector Cli
return;
LastFireTimeStamp = TimeStamp;

if (TimeStamp + 0.1 < CurrentTimeStamp)
if (TimeStamp + zzUTPure.Settings.FireTimeout < CurrentTimeStamp)
return;

xxEnableCarcasses();
Expand Down Expand Up @@ -3634,7 +3634,7 @@ function xxNN_AltFire( float TimeStamp, int ProjIndex, vector ClientLoc, vector
return;
LastAltFireTimeStamp = TimeStamp;

if (TimeStamp + 0.1 < CurrentTimeStamp)
if (TimeStamp + zzUTPure.Settings.FireTimeout < CurrentTimeStamp)
return;

xxEnableCarcasses();
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -972,6 +972,7 @@ Server settings can be found inside InstaGibPlus.ini.
1. [bEnableJitterBounding](#benablejitterbounding)
1. [bEnableWarpFix](#benablewarpfix)
1. [WarpFixDelay](#warpfixdelay)
1. [FireTimeout](#firetimeout)
1. [bEnableCarcassCollision](#benablecarcasscollision)
1. [ShowTouchedPackage](#showtouchedpackage)
1. [ExcludeMapsForKickers](#excludemapsforkickers)
Expand Down Expand Up @@ -1545,6 +1546,14 @@ Each entry can be used to force a setting on clients:

If True, carcasses left by dead players have collision. If false, carcasses will not have collision.

## FireTimeout

**Type: float**
**Default: 0.1**
**Unit: seconds**

Shots more than this long in the past are rejected.

# Building

1. Go to the installation directory of UT99 in a command shell
Expand Down

0 comments on commit 35f7ee6

Please sign in to comment.