Skip to content

Commit

Permalink
medical: Add option to disable visualwounds
Browse files Browse the repository at this point in the history
  • Loading branch information
dastrukar committed Jan 11, 2024
1 parent 0de085d commit aec691f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions cvarinfo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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;
1 change: 1 addition & 0 deletions medical/cvarinfo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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;
1 change: 1 addition & 0 deletions medical/menudef.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion medical/module/medical_wound.zsc
Original file line number Diff line number Diff line change
Expand Up @@ -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.) {
Expand Down
1 change: 1 addition & 0 deletions menudef.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aec691f

Please sign in to comment.