Skip to content

Commit

Permalink
Replicate UseReducedHitbox Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Deaod committed Jul 30, 2024
1 parent cb5b1bf commit e611411
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Classes/WeaponSettingsRepl.uc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ var float SniperHeadshotDamage;
var float SniperMomentum;
var float SniperHeadshotMomentum;
var float SniperReloadTime;
var bool SniperUseReducedHitbox;

var float EightballSelectTime;
var float EightballDownTime;
Expand Down Expand Up @@ -69,6 +70,7 @@ var float ShockSelectTime;
var float ShockDownTime;
var float ShockBeamDamage;
var float ShockBeamMomentum;
var bool ShockBeamUseReducedHitbox;
var float ShockProjectileDamage;
var float ShockProjectileHurtRadius;
var float ShockProjectileMomentum;
Expand Down Expand Up @@ -97,6 +99,7 @@ var float EnforcerMomentum;
var float EnforcerReloadTime;
var float EnforcerReloadTimeAlt;
var float EnforcerReloadTimeRepeat;
var bool EnforcerUseReducedHitbox;

var bool EnforcerAllowDouble;
var float EnforcerDamageDouble;
Expand Down Expand Up @@ -134,6 +137,7 @@ replication {
SniperMomentum,
SniperHeadshotMomentum,
SniperReloadTime,
SniperUseReducedHitbox,

EightballSelectTime,
EightballDownTime,
Expand Down Expand Up @@ -192,6 +196,7 @@ replication {
ShockDownTime,
ShockBeamDamage,
ShockBeamMomentum,
ShockBeamUseReducedHitbox,
ShockProjectileDamage,
ShockProjectileHurtRadius,
ShockProjectileMomentum,
Expand Down Expand Up @@ -220,6 +225,7 @@ replication {
EnforcerReloadTime,
EnforcerReloadTimeAlt,
EnforcerReloadTimeRepeat,
EnforcerUseReducedHitbox,

EnforcerAllowDouble,
EnforcerDamageDouble,
Expand Down Expand Up @@ -455,6 +461,7 @@ function InitFromWeaponSettings(WeaponSettings S) {
SniperMomentum = S.SniperMomentum;
SniperHeadshotMomentum = S.SniperHeadshotMomentum;
SniperReloadTime = S.SniperReloadTime;
SniperUseReducedHitbox = S.SniperUseReducedHitbox;

EightballSelectTime = S.EightballSelectTime;
EightballDownTime = S.EightballDownTime;
Expand Down Expand Up @@ -514,6 +521,7 @@ function InitFromWeaponSettings(WeaponSettings S) {
ShockDownTime = S.ShockDownTime;
ShockBeamDamage = S.ShockBeamDamage;
ShockBeamMomentum = S.ShockBeamMomentum;
ShockBeamUseReducedHitbox = S.ShockBeamUseReducedHitbox;
ShockProjectileDamage = S.ShockProjectileDamage;
ShockProjectileHurtRadius = S.ShockProjectileHurtRadius;
ShockProjectileMomentum = S.ShockProjectileMomentum;
Expand Down Expand Up @@ -542,6 +550,7 @@ function InitFromWeaponSettings(WeaponSettings S) {
EnforcerReloadTime = S.EnforcerReloadTime;
EnforcerReloadTimeAlt = S.EnforcerReloadTimeAlt;
EnforcerReloadTimeRepeat = S.EnforcerReloadTimeRepeat;
EnforcerUseReducedHitbox = S.EnforcerUseReducedHitbox;

EnforcerAllowDouble = S.EnforcerAllowDouble;
EnforcerDamageDouble = S.EnforcerDamageDouble;
Expand Down Expand Up @@ -593,7 +602,7 @@ final static function CreateWeaponSettings(
if (SettingsName == "")
SettingsName = DefaultName;

Helper = new(none, 'InstaGibPlus') class'Object';
Helper = new(L.XLevel, 'InstaGibPlus') class'Object';
WS = new(Helper, SU.StringToName(SettingsName)) class'WeaponSettings';
WS.SaveConfig();
WSR = L.Spawn(class'WeaponSettingsRepl');
Expand All @@ -617,6 +626,7 @@ defaultproperties
SniperMomentum=1.0
SniperHeadshotMomentum=1.0
SniperReloadTime=0.6666666666
SniperUseReducedHitbox=False

EightballSelectTime=0.606061
EightballDownTime=0.366667
Expand Down Expand Up @@ -676,10 +686,11 @@ defaultproperties
ShockDownTime=0.259259
ShockBeamDamage=40
ShockBeamMomentum=1.0
ShockBeamUseReducedHitbox=False
ShockProjectileDamage=55
ShockProjectileHurtRadius=70
ShockProjectileMomentum=1.0
ShockProjectileBlockBullets=False
ShockProjectileBlockBullets=True
ShockProjectileTakeDamage=False
ShockProjectileCompensatePing=False
ShockProjectileHealth=30
Expand All @@ -704,6 +715,7 @@ defaultproperties
EnforcerReloadTime=0.27
EnforcerReloadTimeAlt=0.26
EnforcerReloadTimeRepeat=0.266667
EnforcerUseReducedHitbox=False

EnforcerAllowDouble=True
EnforcerDamageDouble=17
Expand Down

0 comments on commit e611411

Please sign in to comment.