Add ability for +VVEDIT users to scale damage/healing in the game (#35255)

* Initial commit

* Add universal modifier for all damage/heals, make guidebooks work.

* help text
This commit is contained in:
SlamBamActionman
2025-02-18 08:28:42 +01:00
committed by GitHub
parent 2764638763
commit 3200ba88a5
16 changed files with 253 additions and 19 deletions

View File

@@ -212,7 +212,7 @@ public sealed partial class GunSystem : SharedGunSystem
var hitName = ToPrettyString(hitEntity);
if (dmg != null)
dmg = Damageable.TryChangeDamage(hitEntity, dmg, origin: user);
dmg = Damageable.TryChangeDamage(hitEntity, dmg * Damageable.UniversalHitscanDamageModifier, origin: user);
// check null again, as TryChangeDamage returns modified damage values
if (dmg != null)