diff --git a/cvarinfo.txt b/cvarinfo.txt index c280365..8bee4de 100644 --- a/cvarinfo.txt +++ b/cvarinfo.txt @@ -48,5 +48,6 @@ user bool UaS_Medical_SwitchFiremode = false; nosave float UaS_Wheel_Alpha = 0.75; nosave float UaS_Wheel_Scale = 1.00; nosave float UaS_Bandage_HUDScale = 1.00; +nosave bool UaS_Medical_VisualWounds = true; server bool UaS_VisWepsEnabled = false; server noarchive bool UaS_YOLO = false; diff --git a/medical/cvarinfo.txt b/medical/cvarinfo.txt index 8361fb6..1e5f431 100644 --- a/medical/cvarinfo.txt +++ b/medical/cvarinfo.txt @@ -6,3 +6,4 @@ user bool UaS_Medical_SwitchFiremode = false; nosave float UaS_Wheel_Alpha = 0.75; nosave float UaS_Wheel_Scale = 1.00; nosave float UaS_Bandage_HUDScale = 1.00; +nosave bool UaS_Medical_VisualWounds = true; diff --git a/medical/menudef.txt b/medical/menudef.txt index cdfbd78..ce242d0 100644 --- a/medical/menudef.txt +++ b/medical/menudef.txt @@ -21,6 +21,7 @@ AddOptionMenu "UaS_Controls" { OptionMenu "UaS_Medical_Options" { Title "Medical Module Settings" + Option "Enable visual wounds","UaS_Medical_VisualWounds", "YesNo" Slider "Trauma Kit UI Scale","UaS_TraumaKit_HUDScale", 0, 2, 0.05, 2 Slider "Bandage UI Scale","UaS_Bandage_HUDScale", 0, 2, 0.05, 2 //Slider "Item Wheel UI Scale","UaS_Wheel_Scale", 0, 2, 0.05, 2 diff --git a/medical/module/medical_wound.zsc b/medical/module/medical_wound.zsc index a7fe890..6f0d7ee 100644 --- a/medical/module/medical_wound.zsc +++ b/medical/module/medical_wound.zsc @@ -39,7 +39,7 @@ class UaS_Wound : HDBleedingWound { if (!bleeder) { return; } if (!CheckSkip()) { TryStabilise(); } - BloodDrops(); + if (UaS_Medical_VisualWounds) { BloodDrops(); } // Make sure bandage doesn't fall off when trying to bandage yourself while incap if (HDPlayerPawn(bleeder) && HDIncapWeapon(HDPlayerPawn(bleeder).Player.ReadyWeapon) && pressure <= 0.) { diff --git a/menudef.txt b/menudef.txt index 7a727f7..2ba4089 100644 --- a/menudef.txt +++ b/menudef.txt @@ -304,6 +304,7 @@ AddOptionMenu "UaS_Controls" { OptionMenu "UaS_Medical_Options" { Title "Medical Module Settings" + Option "Enable visual wounds","UaS_Medical_VisualWounds", "YesNo" Slider "Trauma Kit UI Scale","UaS_TraumaKit_HUDScale", 0, 2, 0.05, 2 Slider "Bandage UI Scale","UaS_Bandage_HUDScale", 0, 2, 0.05, 2 //Slider "Item Wheel UI Scale","UaS_Wheel_Scale", 0, 2, 0.05, 2