add: new modules, sprite visuals, client and shared logic

This commit is contained in:
CaYpeN1
2024-03-20 21:07:17 +05:00
parent ff681c54d8
commit 796a1f3d5d
18 changed files with 187 additions and 46 deletions

View File

@@ -544,6 +544,14 @@ public abstract partial class SharedGunSystem : EntitySystem
RefreshModifiers(weapon);
}
public void setFireRate(EntityUid weapon, float fireRate)
{
TryComp<GunComponent>(weapon, out var gunComponent);
gunComponent!.FireRate = fireRate;
RefreshModifiers(weapon);
}
public void setSound(EntityUid weapon, SoundSpecifier sound)
{
TryComp<GunComponent>(weapon, out var gunComponent);