Garry's Mod

Garry's Mod

[SWEP] Battering ram
 This topic has been pinned, so it's probably important
2krev  [developer] 4 Oct, 2022 @ 7:45am
Bug reports
:/
< >
Showing 1-15 of 25 comments
2krev  [developer] 4 Oct, 2022 @ 10:32am 
you see the viewmodel but can't attack by clicking on left mouse button?
Alix_D 4 Oct, 2022 @ 2:08pm 
same

Originally posted by Dr.Ligsey:
When i click it, It won't equip
2krev  [developer] 4 Oct, 2022 @ 2:12pm 
Are there any lua errors in the log related to this addon?
7H3_HuN73R-03 4 Oct, 2022 @ 2:34pm 
the weapon don't let you use it
Originally posted by 2krev:
Are there any lua errors in the log related to this addon?
nope, no lua errors when you attempt to use it.
it just will not spawn/equip
2krev  [developer] 4 Oct, 2022 @ 4:04pm 
but why...
if anyone want to do an experiment then execute this in the console:
lua_run for _, ply in ipairs(player.GetAll()) do ply:Give("swep_battering_ram") end
this will give a ram to every player
ah, it works now for somereason...?
i just restarted gmod and it worked.
2krev  [developer] 4 Oct, 2022 @ 5:33pm 
that's what I say, everything should be fine, I don't see any mistakes in the code
7H3_HuN73R-03 4 Oct, 2022 @ 7:12pm 
Originally posted by 2krev:
but why...
if anyone want to do an experiment then execute this in the console:
lua_run for _, ply in ipairs(player.GetAll()) do ply:Give("swep_battering_ram") end
this will give a ram to every player
I paste it in the console and it gave me this message in the console:

> for _, ply in ipairs(player.GetAll()) do ply:Give("swep_battering_ram") end...
Attempted to create unknown entity type swep_battering_ram!
NULL Ent in GiveNamedItem!
Originally posted by Dr.Ligsey:
When i click it, It won't equip
Same
reload the game and make sure you have all the items installed
StepanTheEditor 5 Oct, 2022 @ 4:21am 
[[SWEP] Battering ram] lua/weapons/swep_battering_ram/shared.lua:116: attempt to call global 'getInteractiveDoorsInterface' (a nil value)
1. unknown - lua/weapons/swep_battering_ram/shared.lua:116
TheCarson116 5 Oct, 2022 @ 7:52am 
If you stand too close to a door while hitting it with the ram, you receive damage & are sent flying back away from the door. If you die while doing so, this lua error occurs:
[[SWEP] Battering ram] lua/weapons/swep_battering_ram/shared.lua:123: Tried to use a NULL entity!
1. SendWeaponAnim - [C]:-1
2. unknown - lua/weapons/swep_battering_ram/shared.lua:123

Timer Failed! [Simple][@lua/weapons/swep_battering_ram/shared.lua (line 122)]
This only seems to happen when you're facing the door with the "hinge" on the right.
Last edited by TheCarson116; 5 Oct, 2022 @ 10:34am
< >
Showing 1-15 of 25 comments
Per page: 1530 50