Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SWEP.Author = "Mikael #"
- SWEP.Contact = "mikaelgame@hotmail.com"
- SWEP.Purpose = "Used to hack the vault!"
- SWEP.Instructions = "Have the swep out, and left click on the vault."
- SWEP.Spawnable = true
- SWEP.AdminSpawnable = false
- SWEP.PrintName = "Vault Cracker"
- SWEP.ViewModel = "models/weapons/c_crowbar.mdl"
- SWEP.WorldModel = "models/weapons/w_crowbar.mdl"
- SWEP.UseHands = true
- SWEP.DrawAmmo = false
- SWEP.Primary.ClipSize = -1
- SWEP.Primary.DefaultClip = -1
- SWEP.Primary.Ammo = "none"
- SWEP.Primary.AmmoType = "none"
- SWEP.Secondary.Ammo = "none"
- SWEP.DrawCrosshair = false
- if SERVER then
- function SWEP:PrimaryAttack()
- local ply = self.Owner
- local ei = self:EntIndex()
- local ent = ply:GetEyeTrace().Entity
- if ply:GetActiveWeapon():GetClass() == "swat_shield" then
- if ply.isshieldout then
- ply.isshieldout = false
- else
- ply.isshieldout = true
- end
- end
- end
- function GM:ScalePlayerDamage( ply, hitgroup, dmginfo )
- if ply.isshieldout && ( hitgroup == HITGROUP_HEAD ) then
- dmginfo:ScaleDamage( 0.50 )
- elseif ( hitgroup == HITGROUP_HEAD ) then
- dmginfo:ScaleDamage( 2 )
- end
- end
- end
- function SWEP:SecondaryAttack() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement