Better melee combat (#542)
* - add: NextMobAttack, EquipCooldown. * - fix: Some combat fixes. * - add: Telebaton. * - add: Stun baton rework. * - tweak: Reduce melee range. * - add: Rework melee block system. * - add: ExaminedEvent.
This commit is contained in:
@@ -97,6 +97,10 @@ public record struct GetMeleeAttackRateEvent(EntityUid Weapon, float Rate, float
|
||||
public record struct GetHeavyDamageModifierEvent(EntityUid Weapon, FixedPoint2 DamageModifier, float Multipliers, EntityUid User);
|
||||
|
||||
// WD START
|
||||
[ByRefEvent]
|
||||
public record struct MeleeBlockAttemptEvent(EntityUid Attacker, bool Blocked = false);
|
||||
public sealed class MeleeBlockAttemptEvent(EntityUid attacker, DamageSpecifier damage) : HandledEntityEventArgs
|
||||
{
|
||||
public EntityUid Attacker = attacker;
|
||||
|
||||
public DamageSpecifier Damage = damage;
|
||||
}
|
||||
// WD END
|
||||
|
||||
Reference in New Issue
Block a user