Files
wwdpublic/Content.Shared/Damage/Events/DamageOtherOnHitEvents.cs
TotallyNotAHSKveez 603aafdbc2 [Add] Hos bats (#378)
* I hate it

* Added ability to choose target body part on item throwing

* забыл

* WeaponRandom works with throwable weapon

* RadialEntityMorph & RadialBUI fix

* ru&en localization

* Я себя зарежу нахуй за такое

* Правки рисованной хуйни и прототипы с лодаутами

* fuck

* ну хорошо блять, убедил, одну пустую строчку уберу

* loadout move to _White

* Я после тех 3х банок не помню нахуй это нужно было

* 1 more fix
2025-03-27 17:24:25 +03:00

22 lines
1014 B
C#

using Content.Shared.Damage;
using Content.Shared.Damage.Components;
using Content.Shared.Item.ItemToggle.Components;
namespace Content.Shared.Damage.Events;
/// <summary>
/// Raised on a throwing weapon to calculate potential damage bonuses or decreases.
/// </summary>
[ByRefEvent]
public record struct GetThrowingDamageEvent(EntityUid Weapon, DamageSpecifier Damage, List<DamageModifierSet> Modifiers, EntityUid? User, bool IsExaminingDamage); //WWDP - Summary: Added bool isExaminingDamage to prevent WeaponRandom from triggering during GetDamage.
/// <summary>
/// Raised on a throwing weapon when DamageOtherOnHit has been successfully initialized.
/// </summary>
public record struct DamageOtherOnHitStartupEvent(Entity<DamageOtherOnHitComponent> Weapon);
/// <summary>
/// Raised on a throwing weapon when ItemToggleDamageOtherOnHit has been successfully initialized.
/// </summary>
public record struct ItemToggleDamageOtherOnHitStartupEvent(Entity<ItemToggleDamageOtherOnHitComponent> Weapon);