From 0bba89a7858ce091f485e04284f853e1f7f304af Mon Sep 17 00:00:00 2001 From: Leonardo Bishop Date: Sun, 6 Aug 2023 17:21:45 +0100 Subject: Reformat --- code/weapon/Pistol.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'code/weapon/Pistol.cs') diff --git a/code/weapon/Pistol.cs b/code/weapon/Pistol.cs index 4c0c70b..6358b10 100644 --- a/code/weapon/Pistol.cs +++ b/code/weapon/Pistol.cs @@ -4,14 +4,14 @@ namespace MurderGame; public partial class Pistol : Weapon { - public override string ModelPath => "weapons/rust_pistol/rust_pistol.vmdl"; - public override string ViewModelPath => "weapons/rust_pistol/v_rust_pistol.vmdl"; - public Pistol() { MaxAmmo = 1; } + public override string ModelPath => "weapons/rust_pistol/rust_pistol.vmdl"; + public override string ViewModelPath => "weapons/rust_pistol/v_rust_pistol.vmdl"; + [ClientRpc] protected virtual void ShootEffects() { @@ -25,7 +25,7 @@ public partial class Pistol : Weapon public override void PrimaryAttack() { - if (Ammo > 0) + if ( Ammo > 0 ) { --Ammo; ShootEffects(); -- cgit v1.2.3-70-g09d2