- fix: Crushers and spellblade.

This commit is contained in:
Aviu00
2024-08-05 15:39:34 +03:00
parent 18c66116f8
commit cdac0513ae
3 changed files with 10 additions and 2 deletions

View File

@@ -554,6 +554,12 @@ public abstract partial class SharedGunSystem : EntitySystem
Dirty(gun);
}
// WD EDIT
public void SetFireMode(GunComponent gun, SelectiveFire available, SelectiveFire selected)
{
gun.AvailableModes = available;
gun.SelectedMode = selected;
}
public void SetUseKey(GunComponent gun, bool useKey)
{
gun.UseKey = useKey;

View File

@@ -103,6 +103,7 @@ public abstract class SharedSpellBladeSystem : EntitySystem
var gun = EnsureComp<GunComponent>(uid);
_gun.SetUseKey(gun, false);
_gun.SetClumsyProof(gun, true);
_gun.SetFireMode(gun, SelectiveFire.FullAuto, SelectiveFire.FullAuto);
_gun.SetSound(uid, new SoundPathSpecifier("/Audio/Weapons/Guns/Gunshots/Magic/staff_healing.ogg"));
_gun.SetFireRate(uid, 1.2f);
var ammoProvider = EnsureComp<BasicEntityAmmoProviderComponent>(uid);

View File

@@ -34,6 +34,9 @@
soundGunshot: /Audio/Weapons/plasma_cutter.ogg
fireRate: 1
useKey: false
selectedMode: FullAuto
availableModes:
- FullAuto
- type: RechargeBasicEntityAmmo
rechargeCooldown: 0.5
rechargeSound:
@@ -95,8 +98,6 @@
components:
- type: Sprite
sprite: Objects/Weapons/Melee/crusher_glaive.rsi
- type: UseDelay
delay: 1.9
- type: LeechOnMarker
leech:
groups: