aboutsummaryrefslogtreecommitdiffstats
path: root/code/weapon/Pistol.cs
diff options
context:
space:
mode:
Diffstat (limited to 'code/weapon/Pistol.cs')
-rw-r--r--code/weapon/Pistol.cs8
1 files changed, 4 insertions, 4 deletions
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();