Accuracy is a major problem with most turrets so what most people do is use a delta gate which records the change in a value which can be used to slow down the turret which tremedously helps with the accuracy.
Spawn a phx plate then make a wheel (Wire-Physics). Make a target finder (Wire-Beacon) set to target players, but not owner. Make a beacon sensor (Wire-Beacon) with bearing output and wire it to Target-Finder:1. Make a delta gate (Wire-Control>Gate-Arithmetic) and connect it to the Beacon-Sensor:Bearing. Make an add gate and connect Add:A to Beacon-Sensor:Bearing, then connect Add:B to Delta. Make a sign (-1,0,1) gate (Wire-Control>Gate-Arithmetic) and connect it to the add gate. Make a turret (Wire-Physics) facing the same direction as the beacon sensor, then wire it to the target-finder:1. Connect the Wheel:Go to the sign gate and its done. Have fun, but don’t be a minge.
Here are several useful and popular downloads for Garry’s Mod. Several of these addons are updated frequently so they use an updating protocol called SVN for subversion. The best client for svn is TortoiseSVN (http://tortoisesvn.tigris.org/). Below is a guide from Wiremod Forums on how to use it (http://www.wiremod.com/forum/wiremod-general-chat/4-wiremod-svn-guide.html):
- Get a suitable SVN client like Tortoise SVN
- Make sure you remove the “wire” folder from inside your addons folder
- If you have Tortoise SVN, right click the addon folder in your garrysmod folder and choose “SVN Checkout”
- Enter this address: “https://svn.wiremod.com/svn/wiremod/” If prompted for a username and password use anonsvn for username and anonsvn for password.
- Press OK
- After the download completes, delete the “.svn” database folder located in addons (not the ones in any subfolder, JUST the one in addons!). Note the folder is marked as hidden, you need to enable “Show hidden files and folders” in your OS to see it. This is not a critical step, and you can skip it if you wish, but if any other mod uses the “checkout to addons” method, this ensures it stays clean and no conflicts arise. Don’t worry, the three or so wire folders that came from the Repository have their own “.svn” folders to keep track of their respective folders
.
~~~SVN~~~
Wiremod: https://svn.wiremod.com/svn/wiremod (Adds tools that allow for complex creations)
Wire2: https://svn.wiremod.com/svn/wire2 (dunno… seems interesting)
Wiremod Extras: http://svn.dagamers.net/wiremodextras/trunk (Various extras for wiremod)
PHX3: https://phoenix-storms.svn.sourceforge.net/svnroot/phoenix-storms (Useful props)
Ulx: http://ulyssesmod.net/ulx/trunk (Admin Mod)
Ulib: http://ulyssesmod.net/ulib/trunk (Libraries for the above mod)
Stargate: https://svn.wiremod.com/svn/stargate/trunk/addons/ (Adds weapons and the stargate from the show Stargate-SG1)
SBMP: http://spacebuildmodelpack.googlecode.com/svn/trunk/SpacebuildModelPackAlpha2 (Adds props which are useful for building spaceships)
LS3 Pack: http://customaddons.googlecode.com/svn/trunk (Includes Life Support 3, Resource Distribution 2, and some other addons. Make sure to move it’s contents to addons)
LS3 Gas: http://svn.assembla.com/svn/gassystems2/ (Adds gas generators, storage, and thrusters)
LS3 CAF: http://customaddonframework.googlecode.com/svn/trunk/Custom%20Addon%20Framework/ (Required by LS3)
SB3 Beta: http://spacebuild.googlecode.com/svn/trunk/ (The Spacebuild 3 gamemode)
~~~Non-SVN~~~
Notepad: http://garrysmod.org/downloads/?a=view&id=29694 (execute “notepad” in console to use it. Useful for making expressions.)
Measure stick: http://garrysmod.org/downloads/?a=view&id=37778 (Give you the units between the two points you click)
Stacker: http://garrysmod.org/downloads/?a=view&id=29854 (Copies a prop and pastes it in the direction you specify.)
Smart Constraint: http://garrysmod.org/downloads/?a=view&id=22203 (Select multiple props then weld and/or nocollide them)
Smart Snap: http://garrysmod.org/downloads/?a=view&id=35405 (Makes a grid which you can snap to and then accurately place things)
Spawn something flat like a phx 1×1 plate then tilt it at a 45 degree angle (makes the beacon sensor and holo automatically face forward), make a target finder with wanted settings and max bogeys 30, a beacon sensor with split xyz, 3 multiplies (Gate-Arithmetic), a subtract (Gate-Artithmetic), a pulser (Gate-Time), a constant value of {0.02,0.1,1000,60}, and a holoemitter (Wire-Holography). ——– Target finder will be TF, Constant Value will be CV, and Holoemitter will be HE ——– Connect the beacon sensor to TF:1, connect Pulser:Run to TF:1, connect Pulser:Ticktime to CV:0.1, connect TF:Nexttarget to Pulser, connect the A of each multiply to XYZ of the bacon sensor (Mul1 to x, Mul2 to y, and Mul3 to z), connect the B of each multiply to CV:0.02, connect Sub:A to Mul3, and Sub:B to CV:60. Connect HE:X to Mul2, HE:Y to Mul1, HE:Z to Sub, HE:Active to TF:1, HE:Faderate to CV:1000, and its done.
Explanation of Holoradar: The target finders max bogeys refers to how many entities it will track at once, which is neccessary if you want to switch between more than two entities. The pulser caused the target finder to change targets every 1/5 second. The beacon sensor Split XYZ tells how far things are X|Right, Y|Forward, and Z|Up. The multiplys made those numbers 1:50 scale so then you can see everyone. The subtract was to make up for the additional 60 units Z that the holoemitter adds. Faderate makes the dots disappear faster the higher you set it, which we want otherwise we get long paths of where the entities have gone.
I will add a dupe, expression version, and picture of the holoradar later.