Залив
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
ATTACHMENT.Base = "att_ammo"
|
||||
ATTACHMENT.Name = "Dragons Breath"
|
||||
ATTACHMENT.Icon = Material("viper/mw/attachments/icons/romeo870/icon_attachment_sh_romeo870_caldb.vmt")
|
||||
local BaseClass = GetAttachmentBaseClass(ATTACHMENT.Base)
|
||||
function ATTACHMENT:OnImpact(weapon, dmgInfo, tr)
|
||||
BaseClass.OnImpact(self, weapon, dmgInfo, tr)
|
||||
|
||||
if (SERVER && table.HasValue(weapon.FireSurfaces, tr.MatType)) then
|
||||
tr.Entity:Ignite(2)
|
||||
end
|
||||
|
||||
ParticleEffect(self.Particle || "mw_fas2_muzzleflash_slug", tr.HitPos, tr.HitNormal:Angle())
|
||||
util.Decal("Dark", tr.HitPos + tr.HitNormal, tr.HitPos - (tr.HitNormal * 3), {weapon, weapon:GetOwner()})
|
||||
weapon:MakeLight(tr.HitPos, Color(255, 50, 0), 2, CurTime() + 1)
|
||||
|
||||
dmgInfo:SetDamageType(dmgInfo:GetDamageType() + DMG_BURN + DMG_SLOWBURN)
|
||||
end
|
||||
|
||||
function ATTACHMENT:Stats(weapon)
|
||||
BaseClass.Stats(self, weapon)
|
||||
weapon:doDBStats()
|
||||
end
|
||||
|
||||
function ATTACHMENT:PostProcess(weapon)
|
||||
BaseClass.PostProcess(self, weapon)
|
||||
weapon.Projectile = nil
|
||||
weapon.ParticleEffects.MuzzleFlash = "mw_fas2_muzzleflash_slug"
|
||||
end
|
||||
@@ -0,0 +1,10 @@
|
||||
ATTACHMENT.Base = "att_ammo"
|
||||
ATTACHMENT.Name = "Default"
|
||||
ATTACHMENT.Icon = Material("viper/mw/attachments/icons/romeo870/icon_attachment_sh_romeo870_ammo.vmt")
|
||||
local BaseClass = GetAttachmentBaseClass(ATTACHMENT.Base)
|
||||
|
||||
function ATTACHMENT:PostProcess(weapon)
|
||||
BaseClass.PostProcess(self, weapon)
|
||||
weapon.Projectile = nil
|
||||
weapon.Primary.TrailingSound = nil
|
||||
end
|
||||
@@ -0,0 +1,15 @@
|
||||
ATTACHMENT.Base = "att_ammo"
|
||||
ATTACHMENT.Name = "Flechette"
|
||||
ATTACHMENT.Icon = Material("viper/mw/attachments/icons/romeo870/icon_attachment_sh_romeo870_ammo.vmt")
|
||||
local BaseClass = GetAttachmentBaseClass(ATTACHMENT.Base)
|
||||
function ATTACHMENT:Stats(weapon)
|
||||
BaseClass.Stats(self, weapon)
|
||||
|
||||
weapon.Bullet.NumBullets = 20
|
||||
end
|
||||
function ATTACHMENT:PostProcess(weapon)
|
||||
BaseClass.PostProcess(self, weapon)
|
||||
|
||||
weapon.Projectile = nil
|
||||
weapon.Primary.TrailingSound = nil
|
||||
end
|
||||
@@ -0,0 +1,26 @@
|
||||
ATTACHMENT.Base = "att_ammo"
|
||||
ATTACHMENT.Name = "Explosive Rounds"
|
||||
ATTACHMENT.Icon = Material("viper/mw/attachments/icons/romeo870/icon_attachment_sh_romeo870_caldb.vmt")
|
||||
local BaseClass = GetAttachmentBaseClass(ATTACHMENT.Base)
|
||||
function ATTACHMENT:OnImpact(weapon, dmgInfo, tr)
|
||||
BaseClass.OnImpact(self, weapon, dmgInfo, tr)
|
||||
|
||||
if (SERVER) then
|
||||
util.BlastDamage(weapon, weapon:GetOwner(), tr.HitPos, self.Radius || 32, weapon.Bullet.Damage[1] / weapon.Bullet.NumBullets)
|
||||
end
|
||||
|
||||
ParticleEffect(self.Particle || "mw_fas2_muzzleflash_slug", tr.HitPos, tr.HitNormal:Angle())
|
||||
util.Decal("FadingScorch", tr.HitPos + tr.HitNormal, tr.HitPos - (tr.HitNormal * 3), {weapon, weapon:GetOwner()})
|
||||
sound.Play("MW.ExplosiveRounds", tr.HitPos, SNDLVL_100dB, 100, 1)
|
||||
weapon:MakeLight(tr.HitPos, Color(255, 150, 0), 1, CurTime() + 0.5)
|
||||
|
||||
dmgInfo:SetDamageType(dmgInfo:GetDamageType() + DMG_BLAST + DMG_AIRBOAT + DMG_ALWAYSGIB)
|
||||
end
|
||||
|
||||
function ATTACHMENT:PostProcess(weapon)
|
||||
BaseClass.PostProcess(self, weapon)
|
||||
|
||||
weapon.Projectile = nil
|
||||
weapon.Primary.TrailingSound = nil
|
||||
weapon.ParticleEffects.MuzzleFlash = "mw_fas2_muzzleflash_slug"
|
||||
end
|
||||
@@ -0,0 +1,24 @@
|
||||
ATTACHMENT.Base = "att_ammo"
|
||||
ATTACHMENT.Name = "Slugs"
|
||||
ATTACHMENT.Icon = Material("viper/mw/attachments/icons/romeo870/icon_attachment_sh_romeo870_ammo.vmt")
|
||||
local BaseClass = GetAttachmentBaseClass(ATTACHMENT.Base)
|
||||
function ATTACHMENT:Stats(weapon)
|
||||
BaseClass.Stats(self, weapon)
|
||||
|
||||
weapon.Bullet.Damage[1] = 120
|
||||
weapon.Bullet.Damage[2] = 40
|
||||
weapon.Bullet.EffectiveRange = 35
|
||||
weapon.Bullet.NumBullets = 1
|
||||
weapon.Cone.Ads = 0.15
|
||||
weapon.Projectile = {
|
||||
Class = "mg_slug",
|
||||
Speed = 4000,
|
||||
Gravity = 2
|
||||
}
|
||||
end
|
||||
|
||||
function ATTACHMENT:PostProcess(weapon)
|
||||
BaseClass.PostProcess(self, weapon)
|
||||
weapon.Primary.TrailingSound = nil
|
||||
weapon.ParticleEffects.MuzzleFlash = "mw_fas2_muzzleflash_slug"
|
||||
end
|
||||
Reference in New Issue
Block a user