Garry's Mod

Garry's Mod

92 ratings
SWEP controller (Wire Addon)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Fun
File Size
Posted
Updated
13.740 KB
2 Jan, 2015 @ 9:09am
23 Jun, 2016 @ 7:29am
9 Change Notes ( view )

Subscribe to download
SWEP controller (Wire Addon)

In 1 collection by rafradek
My Wire Addons
4 items
Description
Wire addon which adds SWEP controller that outputs weapon actions

Additionally, it can also throw a linked dupe and make an entity follow you

Creating a SWEP controller will give you special weapon linked with that controller. Pressing E at it does the same

Inputs:
-Throw dupe - input any number other than 0 to fire a dupe from weapon
-Consume primary / secondary ammo - it will reduce loaded ammo by input value
-Primary / secondary ammo - sets the ammo to input value
-FOV - if the value is positive: sets FOV to given amount. If negative: multiplies FOV by given amount. Automatically adjusts mouse sensitivity.

Outputs:
-Active - outputs 1 if the player holds weapon linked with the controller
-Primary / secodary attack - outputs 1 if the player just fired that weapon
-Reload pressed - outputs 1 if the player just started reloading that weapon
-Primary / secodary / reload hold - outputs 1 if the player holds specified button
-Attack angle - outputs an angle between shooting position and a place where player is looking at
-Attack position - outputs shooting position
-Attack direction - outputs vector representing direction at which player just fired his weapon

24 Comments
rafradek  [author] 4 Mar, 2017 @ 2:10pm 
Sadly it can't
Juni 4 Mar, 2017 @ 1:00pm 
can it fire a different prop on seconday fire?
rafradek  [author] 4 Mar, 2017 @ 9:37am 
IT CAN SHOOT ANYTHING
Juni 20 Feb, 2017 @ 1:45pm 
can it fire a different prop on seconday fire?
rafradek  [author] 20 Feb, 2017 @ 1:06pm 
it can shoot props or any other entity, with constrained elements to them.
Kenny 18 Feb, 2017 @ 11:41am 
will this work for tornadoes?
Juni 31 Oct, 2016 @ 12:42pm 
also how do u set the secondary fire prop
Juni 31 Oct, 2016 @ 11:53am 
please add a videao showing how to set it up
i cant get it to shoot anything
BlackJub 11 Jun, 2016 @ 10:17am 
[ERROR] lua/wire/server/wirelib.lua:1138: attempt to index a nil value
1. MakeWireEnt - lua/wire/server/wirelib.lua:1138
2. MakeEnt - lua/wire/tool_loader.lua:65
3. LeftClick_Make - lua/wire/tool_loader.lua:56
4. LeftClick - lua/wire/tool_loader.lua:37
5. unknown - gamemodes/sandbox/entities/weapons/gmod_tool/shared.lua:254

i got this in singleplayer but i installed swep controller on my onlineserver nothing happens
BlackJub 11 Jun, 2016 @ 10:11am 
hi i need help i cant Spwan the controller can you pls add me