Garry's Mod

Garry's Mod

FA:S 2.0 Alpha SWEPs
RaDK 16 Apr, 2016 @ 7:31pm
Integrating FA:S 2.0 into a gamemode that has restricted lots of functions of sandbox.
I'm not sure many of you have heard of the gamemode Combine Control, but putting a new swep base into it can be a pain in the ♥♥♥. It works just fine with ♥♥♥♥♥♥ weapon bases. Here's a Screenshot[s24.postimg.org] of the files I've put in I'm getting the error:

[ERROR] gamemodes/combinecontrol/entities/weapons/fas2_base/shared.lua:1201: bad argument #1 to 'tonumber' (value expected) 1. tonumber - [C]:-1 2. unknown - gamemodes/combinecontrol/entities/weapons/fas2_base/shared.lua:1201

I'm fairly new to Lua scripting and help from anyone would be greatly appreciated.
Here's the tonumber function as well:

if tonumber(self.Owner:GetInfo("fas2_holdtoaim")) > 0 then self.Secondary.Automatic = true if not self.Owner:KeyDown(IN_ATTACK2) then if self.dt.Status == FAS_STAT_ADS then self.dt.Status = FAS_STAT_IDLE self:SetNextSecondaryFire(CT + 0.1) self.ReloadWait = CT + 0.3 self:EmitSound(table.Random(self.BackToHipSounds), 50, 100) end end else self.Secondary.Automatic = false end end end
Last edited by RaDK; 16 Apr, 2016 @ 7:34pm