All contributions

Vretu-Dev/UsefulHints

UsefulHints

A plugin for SCP: Secret Laboratory on Exiled and LabAPI that shows players extra hints: item timers, warnings, a kill counter and friendly fire warnings.

Language
C#
GitHub stars
18
Merged changes
1

What we changed

The class_d_are_teammates option now works: set to false, it stops the friendly fire warning when two Class-D players hurt each other. Other pairs from the same side still get it as before.

What this work shows

  • SCP: Secret Laboratory plugins on Exiled
  • Game event handling in C#
  • Game server plugin configuration
What was broken

The Class-D option had no effect

In FFWarning.OnHurting the if branch that checked ClassDAreTeammates and the else branch did the same thing: they showed the attacker a warning and told the victim who hit them. Setting class_d_are_teammates: false changed nothing, and the warning still appeared when one Class-D player hurt another.

How we fixed it

The warning is skipped only for Class-D

One condition replaces the two branches: the warning shows unless both players are Class-D and ClassDAreTeammates is off. Other pairs from the same side, such as MTF or Chaos, work as before.

#12

Merged change 1

  1. #12 Fix ClassDAreTeammates config being ignored for Class-D friendly fire Merged 16 November 2026

What it taught us

Reading the code, we catch bugs nobody has reported. Here identical if and else branches meant a config option had no effect at all.

More about this technology: C# and .NET

Other projects we write code for

Describe your project.

A free quote comes back within an hour during working hours.