summaryrefslogtreecommitdiff
path: root/entities/weapons/rad_revolver/shared.lua
diff options
context:
space:
mode:
Diffstat (limited to 'entities/weapons/rad_revolver/shared.lua')
-rw-r--r--entities/weapons/rad_revolver/shared.lua36
1 files changed, 18 insertions, 18 deletions
diff --git a/entities/weapons/rad_revolver/shared.lua b/entities/weapons/rad_revolver/shared.lua
index 2b34184..d6bcce5 100644
--- a/entities/weapons/rad_revolver/shared.lua
+++ b/entities/weapons/rad_revolver/shared.lua
@@ -1,19 +1,19 @@
if SERVER then
AddCSLuaFile("shared.lua")
-
+
end
if CLIENT then
SWEP.ViewModelFOV = 70
SWEP.ViewModelFlip = false
-
+
SWEP.PrintName = "Colt Python"
SWEP.IconLetter = "f"
SWEP.Slot = 2
SWEP.Slotpos = 1
-
+
end
SWEP.HoldType = "revolver"
@@ -41,31 +41,31 @@ SWEP.Primary.Delay = 0.850
SWEP.Primary.ClipSize = 6
SWEP.Primary.Automatic = false
-function SWEP:ShootEffects()
+function SWEP:ShootEffects()
if SERVER then
-
- self.Owner:ViewBounce( self.Primary.Recoil )
-
+
+ self.Owner:ViewBounce( self.Primary.Recoil )
+
end
-
- self.Owner:MuzzleFlash()
- self.Owner:SetAnimation( PLAYER_ATTACK1 )
-
- self.Weapon:SendWeaponAnim( ACT_VM_PRIMARYATTACK )
-
+
+ self.Owner:MuzzleFlash()
+ self.Owner:SetAnimation( PLAYER_ATTACK1 )
+
+ self.Weapon:SendWeaponAnim( ACT_VM_PRIMARYATTACK )
+
if CLIENT then return end
- local tbl = self.ShellSounds[ ( self.Primary.ShellType or 1 ) ]
+ local tbl = self.ShellSounds[ ( self.Primary.ShellType or 1 ) ]
local pos = self.Owner:GetPos()
-
+
//timer.Simple( math.Rand( self.MinShellDelay, self.MaxShellDelay ), function() sound.Play( table.Random( tbl.Wavs ), pos, 75, tbl.Pitch ) end )
-
+
--[[local ed = EffectData()
ed:SetOrigin( self.Owner:GetShootPos() )
ed:SetEntity( self.Weapon )
ed:SetAttachment( self.Weapon:LookupAttachment( "2" ) )
ed:SetScale( ( self.Primary.ShellType or SHELL_9MM ) )
util.Effect( "weapon_shell", ed, true, true )]]
-
-end \ No newline at end of file
+
+end