Skip to content

Commit

Permalink
Try fix checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirus59 committed Aug 15, 2024
1 parent a7e1792 commit 2b14c98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ private void SetFireMode(EntityUid uid, BatteryWeaponFireModesComponent componen
//SS220 Add Multifaze gun begin
private void OnInit(EntityUid uid, BatteryWeaponFireModesComponent component, ref ComponentInit args)
{
SetFireMode(uid, component, component.CurrentFireMode);
var index = component.CurrentFireMode % component.FireModes.Count;
SetFireMode(uid, component, index);
}
//SS220 Add Multifaze gun end
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
fireCost: 200
soundGunshot: /Audio/Weapons/Guns/Gunshots/taser.ogg
magState: emp-mag
- type: ProjectileBatteryAmmoProvider
proto: BulletDisabler
fireCost: 40
- type: MagazineVisuals
magState: disarm-mag
steps: 5
Expand Down

0 comments on commit 2b14c98

Please sign in to comment.