diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2023-08-06 17:21:45 +0100 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2023-08-06 17:21:45 +0100 |
| commit | 0bba89a7858ce091f485e04284f853e1f7f304af (patch) | |
| tree | 89ba42616e0f245cc84c96cc5b353eea117057d0 /code/weapon/Pistol.cs | |
| parent | 87d74b50bf443bf199be05bd03afdca6ece082ff (diff) | |
Diffstat (limited to 'code/weapon/Pistol.cs')
| -rw-r--r-- | code/weapon/Pistol.cs | 8 |
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();
|
