2014-10-02 08:49:54 +08:00
|
|
|
SWEP.ViewModel = "models/weapons/c_rpg.mdl"
|
|
|
|
SWEP.WorldModel = "models/weapons/w_rocket_launcher.mdl"
|
|
|
|
|
|
|
|
SWEP.Primary.ClipSize = 1
|
|
|
|
SWEP.Primary.Automatic = false
|
|
|
|
SWEP.Primary.Ammo = "SniperRound"
|
|
|
|
SWEP.Primary.Delay = 1.25
|
|
|
|
SWEP.Primary.DefaultClip = 5
|
|
|
|
|
|
|
|
SWEP.Secondary.ClipSize = -1
|
|
|
|
SWEP.Secondary.DefaultClip = -1
|
|
|
|
SWEP.Secondary.Automatic = false
|
|
|
|
SWEP.Secondary.Ammo = "none"
|
|
|
|
|
|
|
|
SWEP.UseHands = true
|
|
|
|
|
|
|
|
if CLIENT then
|
|
|
|
SWEP.ViewModelFOV = 60
|
|
|
|
end
|
|
|
|
|
|
|
|
SWEP.WalkSpeed = SPEED_SLOWEST
|
|
|
|
|
|
|
|
function SWEP:Initialize()
|
2014-11-12 08:15:49 +08:00
|
|
|
self:SetWeaponHoldType("rpg")
|
2014-10-02 08:49:54 +08:00
|
|
|
self:SetDeploySpeed(1.1)
|
|
|
|
end
|
|
|
|
|
|
|
|
function SWEP:CanPrimaryAttack()
|
|
|
|
if self.Owner:IsHolding() or self.Owner:GetBarricadeGhosting() then return false end
|
|
|
|
|
|
|
|
if self:GetPrimaryAmmoCount() <= 0 then
|
|
|
|
self:EmitSound("Weapon_Shotgun.Empty")
|
|
|
|
self:SetNextPrimaryFire(CurTime() + self.Primary.Delay)
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
|
|
|
|
function SWEP:SecondaryAttack()
|
|
|
|
end
|
|
|
|
|
|
|
|
function SWEP:Reload()
|
|
|
|
end
|
|
|
|
|
|
|
|
util.PrecacheModel("models/props_debris/wood_board05a.mdl")
|
|
|
|
util.PrecacheSound("npc/dog/dog_servo12.wav")
|