i'm gonna tear my hair out 😭

This commit is contained in:
Fesiug 2023-11-16 22:00:44 -05:00
parent b022449187
commit 9856e6e6cc
2 changed files with 2 additions and 5 deletions

View File

@ -79,7 +79,6 @@ function SWEP:BDeploy( hand, id )
assert( item, "That item doesn't exist. " .. tostring(item) ) assert( item, "That item doesn't exist. " .. tostring(item) )
print(debug.Trace())
self:D_SetID( hand, id ) self:D_SetID( hand, id )
if item.Loaded then if item.Loaded then
local mid = inv[ item.Loaded ] local mid = inv[ item.Loaded ]

View File

@ -118,7 +118,6 @@ function SWEP:Reload()
end end
local mid = self:D_GetMagID( hand ) local mid = self:D_GetMagID( hand )
assert( mid == "" or inv[mid], "That magazine doesn't exist." )
if mid != "" then if mid != "" then
B_Sound( self, wep_class.Sound_MagOut ) B_Sound( self, wep_class.Sound_MagOut )
@ -135,14 +134,13 @@ function SWEP:Reload()
local maglist = p:INV_FindMag( "mag_" .. wep_table.Class ) local maglist = p:INV_FindMag( "mag_" .. wep_table.Class )
PrintTable( maglist ) PrintTable( maglist )
local mag = maglist[1] local mag = maglist[1]
-- print(hand, i, mag, wep_class.Name)
if mag then if mag then
wep_table.Loaded = mag wep_table.Loaded = mag
self:D_SetMagID( hand, mag ) self:D_SetMagID( hand, mag )
self:D_SetClip( hand, inv[mag].Ammo ) self:D_SetClip( hand, inv[mag].Ammo )
-- B_Sound( self, wep_class.Sound_MagIn ) B_Sound( self, wep_class.Sound_MagIn )
else else
-- B_Sound( self, "Common.NoAmmo" ) B_Sound( self, "Common.NoAmmo" )
end end
end end
self:TPReload() self:TPReload()