Shift over one, fix deagle mag

This commit is contained in:
Fesiug 2024-01-01 17:08:11 -05:00
parent 15464b9af7
commit 8d0a23eb51
1 changed files with 143 additions and 135 deletions

View File

@ -22,174 +22,182 @@ do -- Sound definitions
end end
ItemDef("base", { do -- Bases
Name = "Base Item",
Category = "base",
Type = "base",
Description = "Base of everything",
WModel = "models/weapons/w_357.mdl", ItemDef("base", {
Name = "Base Item",
Category = "base",
Type = "base",
Description = "Base of everything",
Speed_Move = 1, WModel = "models/weapons/w_357.mdl",
Speed_Aiming = 1,
Speed_Reloading = 1,
Speed_Firing = 1,
Speed_FiringTime = 0.2,
ShootHolsterTime = 0,
Func_Attack = function( self, hand ) Speed_Move = 1,
end, Speed_Aiming = 1,
Speed_Reloading = 1,
Speed_Firing = 1,
Speed_FiringTime = 0.2,
ShootHolsterTime = 0,
Func_Attack2 = function( self, hand ) Func_Attack = function( self, hand )
end, end,
Func_Reload = function( self, hand ) Func_Attack2 = function( self, hand )
end, end,
Func_Deploy = function( self, hand ) Func_Reload = function( self, hand )
end, end,
Func_HolsterStart = function( self, hand ) Func_Deploy = function( self, hand )
end, end,
Func_HolsterFinish = function( self, hand ) Func_HolsterStart = function( self, hand )
end, end,
})
ItemDef("base_firearm", { Func_HolsterFinish = function( self, hand )
Name = "Base Firearm", end,
Category = "base", })
Base = "base",
Description = "Base for firearms",
Features = "firearm",
WModel = "models/weapons/w_pistol.mdl", ItemDef("base_firearm", {
HoldType = "pistol", Name = "Base Firearm",
Category = "base",
Base = "base",
Description = "Base for firearms",
Features = "firearm",
-- Firearm specific WModel = "models/weapons/w_pistol.mdl",
Firemodes = { HoldType = "pistol",
{
Mode = 1, -- Firearm specific
Firemodes = {
{
Mode = 1,
},
}, },
},
Damage = 0, Damage = 0,
AmmoStd = 1, AmmoStd = 1,
Pellets = 1, Pellets = 1,
Delay = 60/600, Delay = 60/600,
Spread = 0, Spread = 0,
SpreadAdd = 0, SpreadAdd = 0,
SpreadAddMax = 1, SpreadAddMax = 1,
SpreadDecay_Start = 1, SpreadDecay_Start = 1,
SpreadDecay_End = 2, SpreadDecay_End = 2,
SpreadDecay_RampTime = 1, SpreadDecay_RampTime = 1,
Reload_MagOut = 0.2, Reload_MagOut = 0.2,
Reload_MagIn = 0.8, Reload_MagIn = 0.8,
Reload_MagIn_Bonus1 = 0.56, Reload_MagIn_Bonus1 = 0.56,
Reload_MagIn_Bonus2 = 0.56+0.1, Reload_MagIn_Bonus2 = 0.56+0.1,
Func_Attack = function( self, hand ) Func_Attack = function( self, hand )
end, end,
}) })
ItemDef("base_melee", { ItemDef("base_melee", {
Name = "Base Melee", Name = "Base Melee",
Category = "base", Category = "base",
Base = "base", Base = "base",
Description = "Base for melee weapons", Description = "Base for melee weapons",
Features = "firearm", Features = "firearm",
WModel = "models/weapons/w_pistol.mdl", WModel = "models/weapons/w_pistol.mdl",
HoldType = "pistol", HoldType = "pistol",
-- Firearm specific -- Firearm specific
Firemodes = { Firemodes = {
{ {
Mode = 1, Mode = 1,
},
}, },
},
Damage = 0, Damage = 0,
Delay = 60/600, Delay = 60/600,
Spread = 0, Spread = 0,
SpreadAdd = 0, SpreadAdd = 0,
SpreadAddMax = 1, SpreadAddMax = 1,
SpreadDecay_Start = 1, SpreadDecay_Start = 1,
SpreadDecay_End = 2, SpreadDecay_End = 2,
SpreadDecay_RampTime = 1, SpreadDecay_RampTime = 1,
Func_Attack = function( self, hand ) Func_Attack = function( self, hand )
end, end,
}) })
ItemDef("base_grenade", { ItemDef("base_grenade", {
Name = "Base Grenade", Name = "Base Grenade",
Category = "grenade", Category = "grenade",
Base = "base", Base = "base",
Description = "Base for grenades", Description = "Base for grenades",
Features = "grenade", Features = "grenade",
WModel = "models/weapons/w_grenade.mdl", WModel = "models/weapons/w_grenade.mdl",
HoldType = "slam", HoldType = "slam",
}) })
ItemDef("base_magazine", { ItemDef("base_magazine", {
Name = "Base Magazine", Name = "Base Magazine",
Category = "magazine", Category = "magazine",
Base = "base", Base = "base",
Description = "Base for magazines", Description = "Base for magazines",
Features = "magazine", Features = "magazine",
WModel = "models/weapons/w_slam.mdl", WModel = "models/weapons/w_slam.mdl",
HoldType = "slam", HoldType = "slam",
}) })
ItemDef("deagle", { end
Name = "DEAGLE",
Description = "Autoloading .50 caliber pistol.",
Base = "base_firearm",
Category = "pistol",
WModel = "models/weapons/w_pist_deagle.mdl", do -- Pistols
HoldType = "revolver", ItemDef("deagle", {
Name = "DEAGLE",
Description = "Autoloading .50 caliber pistol.",
Base = "base_firearm",
Category = "pistol",
Sound_Fire = "Anaconda.Fire", WModel = "models/weapons/w_pist_deagle.mdl",
Sound_DryFire = "Common.Dryfire.Pistol", HoldType = "revolver",
Sound_MagOut = "Anaconda.MagOut",
Sound_MagIn = "Anaconda.MagIn",
Sound_Cock = "Deagle.Cock",
-- Sound_Fire = "Anaconda.Fire",
AmmoStd = 7, Sound_DryFire = "Common.Dryfire.Pistol",
Delay = (60/180), Sound_MagOut = "Anaconda.MagOut",
Firemodes = FIREMODE_SEMI, Sound_MagIn = "Anaconda.MagIn",
Damage = 47, Sound_Cock = "Deagle.Cock",
Spread = 30/60,
SpreadAdd = 4,
SpreadAddMax = 15,
SpreadDecay_Start = 8, --
SpreadDecay_End = 25, AmmoStd = 7,
SpreadDecay_RampTime = 0.5, Delay = (60/180),
Firemodes = FIREMODE_SEMI,
Damage = 47,
Spread = 30/60,
SpreadAdd = 4,
SpreadAddMax = 15,
Speed_Move = 0.95, SpreadDecay_Start = 8,
Speed_Aiming = 0.95, SpreadDecay_End = 25,
Speed_Reloading = 0.95, SpreadDecay_RampTime = 0.5,
Speed_Firing = 0.95,
Speed_FiringTime = 0.5,
})
ItemDef("mag_deagle", { Speed_Move = 0.95,
Name = "MAG: DEAGLE 7-rnd", Speed_Aiming = 0.95,
Base = "base_magazine", Speed_Reloading = 0.95,
Speed_Firing = 0.95,
Speed_FiringTime = 0.5,
})
Ammo = 14, ItemDef("mag_deagle", {
}) Name = "MAG: DEAGLE 7-rnd",
Base = "base_magazine",
Ammo = 7,
})
end
--[[ --[[
ItemDef("deagle", { ItemDef("deagle", {
Name = "DEAGLE", Name = "DEAGLE",