[Feat&Fix] Система лежания (#288)
* лежать * лучше так сделать * - remove: Gravity is fine. * - add: Hit moving lying targets. * - tweak: Lie down insted of stun on FTL. * - fix: Fix double component. * - remove: Disable recoil. --------- Co-authored-by: Aviu00 <aviu00@protonmail.com>
This commit is contained in:
@@ -562,6 +562,11 @@ public abstract partial class SharedGunSystem : EntitySystem
|
||||
|
||||
RefreshModifiers(weapon);
|
||||
}
|
||||
|
||||
public static void SetTarget(GunComponent gun, EntityUid? target)
|
||||
{
|
||||
gun.Target = target;
|
||||
}
|
||||
// WD EDIT END
|
||||
protected abstract void CreateEffect(EntityUid uid, MuzzleFlashEvent message, EntityUid? user = null);
|
||||
/// <summary>
|
||||
|
||||
@@ -132,6 +132,8 @@ public sealed class ReflectSystem : EntitySystem
|
||||
|
||||
_adminLogger.Add(LogType.BulletHit, LogImpact.Medium, $"{ToPrettyString(user)} reflected {ToPrettyString(projectile)} from {ToPrettyString(projectileComp.Weapon)} shot by {projectileComp.Shooter}");
|
||||
|
||||
projectileComp.IgnoreTarget = true; // WD
|
||||
|
||||
projectileComp.Shooter = user;
|
||||
projectileComp.Weapon = user;
|
||||
Dirty(projectile, projectileComp);
|
||||
|
||||
Reference in New Issue
Block a user