Cleared up errant print()

This commit is contained in:
Haodong Mo 2022-03-30 22:25:33 +11:00
parent 156ccc7469
commit 54442bafce
3 changed files with 12 additions and 3 deletions

View File

@ -153,4 +153,11 @@ Use these in attachment stats, e.g. AimDownSightsTimeMultCrouch to multiply ADS
- **HipFire**: Enabled when not sighted.
- **Shooting**: Enabled when constantly shooting.
- **Recoil**: Scales with bursts.
- **Move**: Enabled when moving.
- **Move**: Enabled when moving.
## Tips for Developers
- If you want to increase recoil without making view shoot to the top, try increasing RecoilPatternDrift.
- Be creative; stat modifiers can be inserted in more places than you might think.
- Use PrintName for a game's version of a weapon name and TrueName for its real life name.
- Unlike ArcCW, trivia table keys and values are arbitrary. Go wild!
- The same goes for the credits table.

View File

@ -86,6 +86,10 @@ function SWEP:PostModify(toggleonly)
-- self:PruneAttachments()
end
self.PrintName = self:GetValue("PrintName")
self.Ammo = self:GetValue("Ammo")
self.Primary.ClipSize = self:GetValue("ClipSize")
if CLIENT then
-- self:PruneAttachments()
self:SendWeapon()

View File

@ -39,8 +39,6 @@ function SWEP:GetElements()
eles2[ele] = true
end
PrintTable(eles2)
self.ElementsCache = eles2
return eles2