Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup configs #217

Merged
merged 1 commit into from
Dec 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions Fika.Core/Coop/Players/CoopPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,20 +212,6 @@ public override void ApplyDamageInfo(DamageInfoStruct damageInfo, EBodyPart body
return;
}
}
if (colliderType == EBodyPartColliderType.HeadCommon)
{
damageInfo.Damage *= FikaPlugin.HeadDamageMultiplier.Value;
}

if (colliderType is EBodyPartColliderType.RightSideChestUp or EBodyPartColliderType.LeftSideChestUp)
{
damageInfo.Damage *= FikaPlugin.ArmpitDamageMultiplier.Value;
}

if (bodyPartType is EBodyPart.Stomach)
{
damageInfo.Damage *= FikaPlugin.StomachDamageMultiplier.Value;
}
}

if (damageInfo.Weapon != null)
Expand Down
15 changes: 1 addition & 14 deletions Fika.Core/FikaPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,6 @@ public ManualLogSource FikaLogger
public static ConfigEntry<ESmoothingRate> SmoothingRate { get; set; }

// Gameplay
public static ConfigEntry<float> HeadDamageMultiplier { get; set; }
public static ConfigEntry<float> ArmpitDamageMultiplier { get; set; }
public static ConfigEntry<float> StomachDamageMultiplier { get; set; }
public static ConfigEntry<bool> DisableBotMetabolism { get; set; }
#endregion

Expand Down Expand Up @@ -644,7 +641,7 @@ private void SetupConfig()
ForceIP = Config.Bind("Network", "Force IP", "",
new ConfigDescription("Forces the server when hosting to use this IP when broadcasting to the backend instead of automatically trying to fetch it. Leave empty to disable.", tags: new ConfigurationManagerAttributes() { Order = 8 }));

ForceBindIP = Config.Bind("Network", "Force Bind IP", "",
ForceBindIP = Config.Bind("Network", "Force Bind IP", "0.0.0.0",
new ConfigDescription("Forces the server when hosting to use this local IP when starting the server. Useful if you are hosting on a VPN.", new AcceptableValueList<string>(GetLocalAddresses()), new ConfigurationManagerAttributes() { Order = 7 }));

AutoRefreshRate = Config.Bind("Network", "Auto Server Refresh Rate", 10f,
Expand All @@ -669,16 +666,6 @@ private void SetupConfig()
new ConfigDescription("Local simulation is behind by Send Rate * Smoothing Rate. This guarantees that we always have enough snapshots in the buffer to mitigate lags & jitter during interpolation.\n\nLow = 1.5\nMedium = 2\nHigh = 2.5\n\nSet this to 'High' if movement isn't smooth. Cannot be changed during a raid.", tags: new ConfigurationManagerAttributes() { Order = 0 }));

// Gameplay

HeadDamageMultiplier = Config.Bind("Gameplay", "Head Damage Multiplier", 1f,
new ConfigDescription("X multiplier to damage taken on the head collider. 0.2 = 20%", new AcceptableValueRange<float>(0.05f, 1f), new ConfigurationManagerAttributes() { Order = 4 }));

ArmpitDamageMultiplier = Config.Bind("Gameplay", "Armpit Damage Multiplier", 1f,
new ConfigDescription("X multiplier to damage taken on the armpits collider. 0.2 = 20%", new AcceptableValueRange<float>(0.05f, 1f), new ConfigurationManagerAttributes() { Order = 3 }));

StomachDamageMultiplier = Config.Bind("Gameplay", "Stomach Damage Multiplier", 1f,
new ConfigDescription("X multiplier to damage taken on the stomach collider. 0.2 = 20%", new AcceptableValueRange<float>(0.05f, 1f), new ConfigurationManagerAttributes() { Order = 2 }));

DisableBotMetabolism = Config.Bind("Gameplay", "Disable Bot Metabolism", false,
new ConfigDescription("Disables metabolism on bots, preventing them from dying from loss of energy/hydration during long raids.", tags: new ConfigurationManagerAttributes() { Order = 1 }));
}
Expand Down
Loading