Weapon models work now, they use ASTW2 models

This commit is contained in:
Fesiug 2023-10-22 00:39:36 -04:00
parent 13330ccc2c
commit f5637f13ae
1 changed files with 308 additions and 289 deletions

View File

@ -112,20 +112,19 @@ AddSound( "Common.Dryfire.Pistol", "benny/weapons/common/06-13.ogg", 70, 100, 0.
AddSound( "Common.Dryfire.Rifle", "benny/weapons/common/06-12.ogg", 70, 100, 0.5, CHAN_STATIC ) AddSound( "Common.Dryfire.Rifle", "benny/weapons/common/06-12.ogg", 70, 100, 0.5, CHAN_STATIC )
AddSound( "Common.NoAmmo", "benny/weapons/noammo.ogg", 70, 100, 0.5, CHAN_STATIC ) AddSound( "Common.NoAmmo", "benny/weapons/noammo.ogg", 70, 100, 0.5, CHAN_STATIC )
local wep = {} WEAPONS["toolgun"] = {
WEAPONS["toolgun"] = wep Name = "TOOL GUN",
wep.Name = "TOOL GUN" Description = "Developer development device",
wep.Description = "Developer development device" Type = "special",
wep.Type = "special"
wep.WModel = "models/weapons/w_toolgun.mdl" WModel = "models/weapons/w_toolgun.mdl",
wep.Delay = (60/300) Delay = (60/300),
wep.Firemodes = FIREMODE_SEMI Firemodes = FIREMODE_SEMI,
wep.Ammo = 0 Ammo = 0,
wep.Damage = 0 Damage = 0,
function wep.Fire( self, slot ) Fire = function( self, slot )
if self:GetDelay1() > CurTime() then if self:GetDelay1() > CurTime() then
return true return true
end end
@ -154,317 +153,337 @@ function wep.Fire( self, slot )
-- Return true to skip weapon logic -- Return true to skip weapon logic
return true return true
end end,
function wep.Reload( self, slot ) Reload = function( self, slot )
if self:GetOwner():KeyPressed( IN_RELOAD ) then if self:GetOwner():KeyPressed( IN_RELOAD ) then
print( self ) print( self )
end end
-- Return true to skip weapon logic -- Return true to skip weapon logic
return true return true
end end,
}
local wep = {} WEAPONS["melee_bat"] = {
WEAPONS["melee_bat"] = wep Name = "BAT",
wep.Name = "BAT" Description = "meow",
wep.Description = "meow" Type = "melee",
wep.Type = "melee"
wep.WModel = "models/weapons/w_crowbar.mdl" WModel = "models/weapons/w_crowbar.mdl",
wep.Delay = (60/300) Delay = (60/300),
wep.Firemodes = FIREMODE_SEMI Firemodes = FIREMODE_SEMI,
wep.Ammo = 0 Ammo = 0,
wep.Damage = 0 Damage = 0,
}
local wep = {} WEAPONS["melee_baton"] = {
WEAPONS["melee_baton"] = wep Name = "BATON",
wep.Name = "BATON" Description = "meow",
wep.Description = "meow" Type = "melee",
wep.Type = "melee"
wep.WModel = "models/weapons/w_crowbar.mdl" WModel = "models/weapons/w_eq_tonfa.mdl",
wep.Delay = (60/300) Delay = (60/300),
wep.Firemodes = FIREMODE_SEMI Firemodes = FIREMODE_SEMI,
wep.Ammo = 0 Ammo = 0,
wep.Damage = 0 Damage = 0,
}
local wep = {} WEAPONS["melee_knife"] = {
WEAPONS["melee_knife"] = wep Name = "KNIFE",
wep.Name = "KNIFE" Description = "meow",
wep.Description = "meow" Type = "melee",
wep.Type = "melee"
wep.WModel = "models/weapons/w_crowbar.mdl" WModel = "models/weapons/w_knife_ct.mdl",
wep.Delay = (60/300) Delay = (60/300),
wep.Firemodes = FIREMODE_SEMI Firemodes = FIREMODE_SEMI,
wep.Ammo = 0 Ammo = 0,
wep.Damage = 0 Damage = 0,
}
local wep = {} WEAPONS["melee_machete"] = {
WEAPONS["melee_machete"] = wep Name = "MACHETE",
wep.Name = "MACHETE" Description = "meow",
wep.Description = "meow" Type = "melee",
wep.Type = "melee"
wep.WModel = "models/weapons/w_crowbar.mdl" WModel = "models/weapons/w_crowbar.mdl",
wep.Delay = (60/300) Delay = (60/300),
wep.Firemodes = FIREMODE_SEMI Firemodes = FIREMODE_SEMI,
wep.Ammo = 0 Ammo = 0,
wep.Damage = 0 Damage = 0,
}
local wep = {} WEAPONS["1911"] = {
WEAPONS["1911"] = wep Name = "COBRA .45",
wep.Name = "COBRA .45" Description = "Hits hard. They don't make them like they used to!",
wep.Description = "Hits hard. They don't make them like they used to!" Type = "pistol",
wep.Type = "pistol"
wep.Icon = Material( "benny/weapons/mk23.png", "smooth" ) Icon = Material( "benny/weapons/mk23.png", "smooth" ),
wep.WModel = "models/weapons/w_pist_usp.mdl" WModel = "models/weapons/w_colt.mdl",
wep.Sound_Fire = "1911.Fire" Sound_Fire = "1911.Fire",
wep.Sound_DryFire = "Common.Dryfire.Pistol" Sound_DryFire = "Common.Dryfire.Pistol",
wep.Sound_Reload = "1911.Reload" -- placeholder Sound_Reload = "1911.Reload",
wep.Sound_MagOut = "1911.MagOut" -- placeholder Sound_MagOut = "1911.MagOut",
wep.Sound_MagIn = "1911.MagIn" -- placeholder Sound_MagIn = "1911.MagIn",
wep.Delay = (60/300) Delay = (60/300),
wep.Firemodes = FIREMODE_SEMI Firemodes = FIREMODE_SEMI,
wep.Ammo = 8 Ammo = 8,
wep.Damage = 30 Damage = 30,
}
local wep = {} WEAPONS["usp"] = {
WEAPONS["usp"] = wep Name = "MK. 23",
wep.Name = "MK. 23" Description = "If it works for hardasses around the world, it'll work for you.",
wep.Description = "If it works for hardasses around the world, it'll work for you." Type = "pistol",
wep.Type = "pistol"
wep.Icon = Material( "benny/weapons/mk23.png", "smooth" ) Icon = Material( "benny/weapons/mk23.png", "smooth" ),
wep.WModel = "models/weapons/w_pist_usp.mdl" WModel = "models/weapons/w_pist_usp.mdl",
wep.Sound_Fire = "USP.Fire" Sound_Fire = "USP.Fire",
wep.Sound_DryFire = "Common.Dryfire.Pistol" Sound_DryFire = "Common.Dryfire.Pistol",
wep.Sound_Reload = "USP.Reload" -- placeholder Sound_Reload = "USP.Reload",
wep.Sound_MagOut = "USP.MagOut" -- placeholder Sound_MagOut = "USP.MagOut",
wep.Sound_MagIn = "USP.MagIn" -- placeholder Sound_MagIn = "USP.MagIn",
wep.Delay = (60/300) Delay = (60/300),
wep.Firemodes = FIREMODE_SEMI Firemodes = FIREMODE_SEMI,
wep.Ammo = 12 Ammo = 12,
wep.Damage = 30 Damage = 30,
}
local wep = {} WEAPONS["glock"] = {
WEAPONS["glock"] = wep Name = "GLOCK-18",
wep.Name = "GLOCK-18" Description = "Bullet storm. Lasts about a second or so, just like you!",
wep.Description = "Bullet storm. Lasts about a second or so, just like you!" Type = "pistol",
wep.Type = "pistol"
wep.Icon = Material( "benny/weapons/mk23.png", "smooth" ) Icon = Material( "benny/weapons/mk23.png", "smooth" ),
wep.WModel = "models/weapons/w_pist_glock18.mdl" WModel = "models/weapons/w_pist_glock18.mdl",
wep.Sound_Fire = "Glock.Fire" Sound_Fire = "Glock.Fire",
wep.Sound_DryFire = "Common.Dryfire.Pistol" Sound_DryFire = "Common.Dryfire.Pistol",
wep.Sound_MagOut = "Glock.MagOut" -- placeholder Sound_MagOut = "Glock.MagOut",
wep.Sound_MagIn = "Glock.MagIn" -- placeholder Sound_MagIn = "Glock.MagIn",
wep.Delay = (60/800) Delay = (60/800),
wep.Firemodes = FIREMODE_AUTOSEMI Firemodes = FIREMODE_AUTOSEMI,
wep.Ammo = 17 Ammo = 17,
wep.Damage = 18 Damage = 18,
}
local wep = {} WEAPONS["nambu"] = {
WEAPONS["nambu"] = wep Name = "NAMBU .38",
wep.Name = "NAMBU .38" Description = "Eastern revolver that hits as hard as it costs.",
wep.Description = "Eastern revolver that hits as hard as it costs." Type = "pistol",
wep.Type = "pistol"
wep.Icon = Material( "benny/weapons/mk23.png", "smooth" ) Icon = Material( "benny/weapons/mk23.png", "smooth" ),
wep.WModel = "models/weapons/w_pist_glock18.mdl" WModel = "models/weapons/w_pist_derringer.mdl",
wep.Sound_Fire = "Nambu.Fire" Sound_Fire = "Nambu.Fire",
wep.Sound_DryFire = "Common.Dryfire.Pistol" Sound_DryFire = "Common.Dryfire.Pistol",
wep.Sound_MagOut = "Nambu.MagOut" -- placeholder Sound_MagOut = "Nambu.MagOut",
wep.Sound_MagIn = "Nambu.MagIn" -- placeholder Sound_MagIn = "Nambu.MagIn",
wep.Delay = (60/180) Delay = (60/180),
wep.Firemodes = FIREMODE_SEMI Firemodes = FIREMODE_SEMI,
wep.Ammo = 6 Ammo = 6,
wep.Damage = 26 Damage = 26,
}
local wep = {} WEAPONS["anaconda"] = {
WEAPONS["anaconda"] = wep Name = "ANACONDA",
wep.Name = "ANACONDA" Description = "Precise and kicks like a mule.",
wep.Description = "Precise and kicks like a mule." Type = "pistol",
wep.Type = "pistol"
wep.Icon = Material( "benny/weapons/mk23.png", "smooth" ) Icon = Material( "benny/weapons/mk23.png", "smooth" ),
wep.WModel = "models/weapons/w_pist_glock18.mdl" WModel = "models/weapons/w_357.mdl",
wep.Sound_Fire = "Anaconda.Fire" Sound_Fire = "Anaconda.Fire",
wep.Sound_DryFire = "Common.Dryfire.Pistol" Sound_DryFire = "Common.Dryfire.Pistol",
wep.Sound_MagOut = "Anaconda.MagOut" -- placeholder Sound_MagOut = "Anaconda.MagOut",
wep.Sound_MagIn = "Anaconda.MagIn" -- placeholder Sound_MagIn = "Anaconda.MagIn",
wep.Delay = (60/180) Delay = (60/180),
wep.Firemodes = FIREMODE_SEMI Firemodes = FIREMODE_SEMI,
wep.Ammo = 6 Ammo = 6,
wep.Damage = 40 Damage = 40,
}
local wep = {} WEAPONS["tmp"] = {
WEAPONS["tmp"] = wep Name = "TMP",
wep.Name = "TMP" Description = "Small, compact, and fast.",
wep.Description = "Precise and sharp, like a damn suit's pet." Type = "smg",
wep.Type = "smg"
wep.WModel = "models/weapons/w_pist_glock18.mdl" WModel = "models/weapons/w_smg_tmp_us.mdl",
wep.Sound_Fire = "TMP.Fire" HoldType = "rpg",
wep.Sound_DryFire = "Common.Dryfire.Rifle"
wep.Sound_Reload = "TMP.Reload" -- placeholder
wep.Sound_MagOut = "TMP.MagOut" -- placeholder
wep.Sound_MagIn = "TMP.MagIn" -- placeholder
wep.Delay = (60/700) Sound_Fire = "TMP.Fire",
wep.Firemodes = FIREMODE_AUTOSEMI Sound_DryFire = "Common.Dryfire.Rifle",
wep.Ammo = 15 Sound_Reload = "TMP.Reload",
wep.Damage = 18 Sound_MagOut = "TMP.MagOut",
Sound_MagIn = "TMP.MagIn",
local wep = {} Delay = (60/700),
WEAPONS["mp7"] = wep Firemodes = FIREMODE_AUTOSEMI,
wep.Name = "MP7" Ammo = 15,
wep.Description = "Small, pistol-sized." Damage = 18,
wep.Type = "smg" }
wep.WModel = "models/weapons/w_pist_glock18.mdl" WEAPONS["mp7"] = {
wep.Sound_Fire = "MP7.Fire" Name = "MP7",
wep.Sound_DryFire = "Common.Dryfire.Rifle" Description = "Small, pistol-sized.",
wep.Sound_Reload = "MP7.Reload" -- placeholder Type = "smg",
wep.Sound_MagOut = "MP7.MagOut" -- placeholder
wep.Sound_MagIn = "MP7.MagIn" -- placeholder
wep.Delay = (60/700) WModel = "models/weapons/w_smg1.mdl",
wep.Firemodes = FIREMODE_AUTOSEMI HoldType = "rpg",
wep.Ammo = 20
wep.Damage = 16
local wep = {} Sound_Fire = "MP7.Fire",
WEAPONS["mp5k"] = wep Sound_DryFire = "Common.Dryfire.Rifle",
wep.Name = "MP5K" Sound_Reload = "MP7.Reload",
wep.Description = "Quality manufacturing, but cumbersome." Sound_MagOut = "MP7.MagOut",
wep.Type = "smg" Sound_MagIn = "MP7.MagIn",
wep.WModel = "models/weapons/w_pist_glock18.mdl" Delay = (60/700),
wep.Sound_Fire = "MP5K.Fire" Firemodes = FIREMODE_AUTOSEMI,
wep.Sound_DryFire = "Common.Dryfire.Rifle" Ammo = 20,
wep.Sound_Reload = "MP5K.Reload" -- placeholder Damage = 16,
wep.Sound_MagOut = "MP5K.MagOut" -- placeholder }
wep.Sound_MagIn = "MP5K.MagIn" -- placeholder
wep.Delay = (60/700) WEAPONS["mp5k"] = {
wep.Firemodes = FIREMODE_AUTOSEMI Name = "MP5K",
wep.Ammo = 15 Description = "Quality manufacturing, but cumbersome.",
wep.Damage = 18 Type = "smg",
local wep = {} WModel = "models/weapons/w_smg_mp5k.mdl",
WEAPONS["mac11"] = wep HoldType = "rpg",
wep.Name = "MAC-11"
wep.Description = "More fit for combat in a phone booth."
wep.Type = "smg"
wep.WModel = "models/weapons/w_pist_glock18.mdl" Sound_Fire = "MP5K.Fire",
wep.Sound_Fire = "MAC11.Fire" Sound_DryFire = "Common.Dryfire.Rifle",
wep.Sound_DryFire = "Common.Dryfire.Rifle" Sound_Reload = "MP5K.Reload",
wep.Sound_Reload = "MAC11.Reload" -- placeholder Sound_MagOut = "MP5K.MagOut",
wep.Sound_MagOut = "MAC11.MagOut" -- placeholder Sound_MagIn = "MP5K.MagIn",
wep.Sound_MagIn = "MAC11.MagIn" -- placeholder
wep.Delay = (60/800) Delay = (60/700),
wep.Firemodes = FIREMODE_AUTOSEMI Firemodes = FIREMODE_AUTOSEMI,
wep.Ammo = 16 Ammo = 15,
wep.Damage = 16 Damage = 18,
}
local wep = {} WEAPONS["mac11"] = {
WEAPONS["bizon"] = wep Name = "MAC-11",
wep.Name = "BIZON" Description = "More fit for combat in a phone booth.",
wep.Description = "Unwieldy bullet storm." Type = "smg",
wep.Type = "smg"
wep.WModel = "models/weapons/w_pist_glock18.mdl" WModel = "models/weapons/w_smg_mac10.mdl",
wep.Sound_Fire = "Bizon.Fire" HoldType = "revolver",
wep.Sound_DryFire = "Common.Dryfire.Rifle"
wep.Sound_Reload = "Bizon.Reload" -- placeholder
wep.Sound_MagOut = "Bizon.MagOut" -- placeholder
wep.Sound_MagIn = "Bizon.MagIn" -- placeholder
wep.Delay = (60/600) Sound_Fire = "MAC11.Fire",
wep.Firemodes = FIREMODE_AUTOSEMI Sound_DryFire = "Common.Dryfire.Rifle",
wep.Ammo = 40 Sound_Reload = "MAC11.Reload",
wep.Damage = 16 Sound_MagOut = "MAC11.MagOut",
Sound_MagIn = "MAC11.MagIn",
Delay = (60/800),
Firemodes = FIREMODE_AUTOSEMI,
Ammo = 16,
Damage = 16,
}
WEAPONS["bizon"] = {
Name = "BIZON",
Description = "Unwieldy bullet storm.",
Type = "smg",
WModel = "models/weapons/w_smg_bizon.mdl",
HoldType = "rpg",
Sound_Fire = "Bizon.Fire",
Sound_DryFire = "Common.Dryfire.Rifle",
Sound_Reload = "Bizon.Reload",
Sound_MagOut = "Bizon.MagOut",
Sound_MagIn = "Bizon.MagIn",
Delay = (60/600),
Firemodes = FIREMODE_AUTOSEMI,
Ammo = 40,
Damage = 16,
}
-- Shotguns -- Shotguns
local wep = {} WEAPONS["spas12"] = {
WEAPONS["spas12"] = wep Name = "SPAS-12",
wep.Name = "SPAS-12" Description = "meow",
wep.Description = "meow" Type = "shotgun",
wep.Type = "shotgun"
wep.WModel = "models/weapons/w_crowbar.mdl" WModel = "models/weapons/w_shotgun.mdl",
HoldType = "rpg",
wep.Delay = (60/600) Delay = (60/600),
wep.Firemodes = FIREMODE_AUTOSEMI Firemodes = FIREMODE_SEMI,
wep.Ammo = 8 Ammo = 8,
wep.Damage = 2 Damage = 2,
}
-- Rifles -- Rifles
local wep = {} WEAPONS["fnc"] = {
WEAPONS["fnc"] = wep Name = "FNC PARA",
wep.Name = "FNC PARA" Description = "meow",
wep.Description = "meow" Type = "rifle",
wep.Type = "rifle"
wep.Icon = Material( "benny/weapons/fnc.png", "smooth" ) Icon = Material( "benny/weapons/fnc.png", "smooth" ),
wep.WModel = "models/weapons/w_crowbar.mdl" WModel = "models/weapons/w_rif_ar556.mdl",
wep.Sound_Fire = "FNC.Fire" HoldType = "rpg",
wep.Sound_MagOut = "FNC.MagOut" -- placeholder
wep.Sound_MagIn = "FNC.MagIn" -- placeholder
Sound_Fire = "FNC.Fire",
Sound_MagOut = "FNC.MagOut",
Sound_MagIn = "FNC.MagIn",
wep.Delay = (60/700) Delay = (60/700),
wep.Firemodes = FIREMODE_AUTOSEMI Firemodes = FIREMODE_AUTOSEMI,
wep.Ammo = 30 Ammo = 30,
wep.Damage = 2 Damage = 2,
}
local wep = {} WEAPONS["m16a2"] = {
WEAPONS["m16a2"] = wep Name = "M16A2",
wep.Name = "M16A2" Description = "meow",
wep.Description = "meow" Type = "rifle",
wep.Type = "rifle"
wep.Icon = Material( "benny/weapons/m16a2.png", "smooth" ) Icon = Material( "benny/weapons/m16a2.png", "smooth" ),
wep.WModel = "models/weapons/w_crowbar.mdl" WModel = "models/weapons/w_rif_m16a2.mdl",
wep.Sound_Fire = "M16A2.Fire" HoldType = "rpg",
wep.Sound_MagOut = "M16A2.MagOut" -- placeholder
wep.Sound_MagIn = "M16A2.MagIn" -- placeholder
wep.Delay = (60/1000) Sound_Fire = "M16A2.Fire",
wep.Firemodes = { Sound_MagOut = "M16A2.MagOut",
Sound_MagIn = "M16A2.MagIn",
Delay = (60/1000),
Firemodes = {
{ Mode = 3 }, { Mode = 3 },
{ Mode = 1 }, { Mode = 1 },
},
Ammo = 30,
Damage = 2,
} }
wep.Ammo = 30
wep.Damage = 2
-- Machine guns -- Machine guns
local wep = {} WEAPONS["stoner63"] = {
WEAPONS["stoner63"] = wep Name = "STONER 63",
wep.Name = "STONER 63" Description = "meow",
wep.Description = "meow" Type = "machinegun",
wep.Type = "machinegun"
wep.WModel = "models/weapons/w_crowbar.mdl" WModel = "models/weapons/w_mach_hk21e.mdl",
HoldType = "rpg",
wep.Delay = (60/700) Sound_Fire = "FNC.Fire",
wep.Firemodes = FIREMODE_AUTOSEMI Sound_MagOut = "M16A2.MagOut",
wep.Ammo = 100 Sound_MagIn = "M16A2.MagIn",
wep.Damage = 2
Delay = (60/700),
Firemodes = FIREMODE_AUTOSEMI,
Ammo = 100,
Damage = 2,
}