Go Back   Wiremod Forums > Wiremod Skills > Wiremod Tutorials

Wiremod Tutorials Post your wiremod tutorials/guides here.

Reply
 
LinkBack Thread Tools Display Modes
Old 11-19-2008   #1 (permalink)
Newbie
 
Swij's Avatar
 

Join Date: Nov 2008
Location: Sweden, Jönköping
Posts: 5
Swij is on a distinguished road
Send a message via MSN to Swij Send a message via Skype™ to Swij
Post Swij's - 3D tracking turret

== 3D Tracking Turret ==

The same tutorial in a better version

Okay, in this tutorial i will teach you how to make a 3D tracking turret.
This turret will be able to aim Up/Down and Left/right, it can be set to track
anything from RPG's to vehicles.

1) First create a wire wheel on the ground.
Model: Oil drum
Torque: 8000
Friction: 10

2) Create another wheel on the side of the oil drum wheel
Model: Car wheel
torque: 1000
Friction: 2

3) Spawn a Beacon sensor on the bottom of one of the polygons on the wheel
and spawn a wire Turret just above the Beacon sensor. settings:
output X,Y,Z

4) Spawn a target finder on the ground, you can insert any settings you want.



5) Link the beacon sensor to the target finder by right clicking on the beacon sensor
with the beacon sensor tool and then left clicking on the target finder.

6) Choose your physical properties tool (under the "Tools" tab)
Set the material to ice and uncheck the gravity box

7) Apply physical properties to all of the parts on the turret

8) Now create 2 arithmetic - sign gates on the ground, Do not put any gate or
target finder on the turret because that will make it spass and not working correctly

9) Create 2 Comparison - is in range exclusive gates on the ground

10) Name one of the sign gates to First with the namer tool and name the other one to second.
do the same thing with the two in range gates.

11) Create a Logic - And (all) gate on the ground

12) Create a Constant value with 2 values
value 1 to 90
value 2 to -90

13) Now for the wiring, Wire the first sign gate's '''A''' to the beacon sensors '''X''' input.

14) Wire the Second sign gate's '''A''' to the beacon sensors '''Y''' input.

15) Wire the Oil drum wheel's output '''Go''' to the first sign gate

16) Wire the Car wheel's output '''Go" to the second sign gate

17) Wire the first in range gate's '''MIN''' to constant value of -90 and
wire the '''MAX''' to constant value of 90

18) Do the same thing to the second in range gate

19) Wire the first in range gate's '''value''' to the beacon sensor '''X''' input

20) Wire the second in range gate's '''value''' to the beacon sensors '''Y''' input

21) Wire the And (all) gate's '''A''' to the target finder's '''entitie'''
and the '''B''' to the first in range gate.
and the '''C''' to the second in range gate.

22) Wire your turret's '''Fire''' to the and (all) gate.

23) now your ready and your turret should find the closest target and shoot at it.





Modifications

If you would like to aim the turret with your mouse instead of it aiming by itself you could:

1) Create a airboat seat.

2) Apply the same physical properties as before

3) Easy weld it to the side of the car wheel so it you can see where the turret aims

4) Create a advanced pod controller on the ground and link it to the seat by right clicking on the pod controller and then right clicking on the seat

5) Remove the target finder

6) Take the Beacon sensor tool and link the beacon sensor to the pod controller

7) Wire the pod controller's crosshair output to the pod controller's active input

8) Now wire the turrets fire output to the pod controller's mouse1 input

9) Now you can aim the turret with your mouse and shoot with your left mouse button

If you got any questions about the turret just PM me or add me on steam,
My steam name is Swij and my hotmail is Swij@hotmail.com

Garrysmod.com - Garrysmod.com Tutorial

Youtube.com -

Credits:

Swij - Creating and writing this Tutorial

Borafor - Giving me some idea.

Jolt - being the perfect victim.
__________________

Last edited by Swij; 3 Weeks Ago at 02:11 PM.. Reason: Add->TargetFinder Error
Swij is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 11-19-2008   #2 (permalink)
Wire uruG

 
Jat Goodwin's Avatar
 

Join Date: Aug 2008
Location: Las Vegas
Posts: 552
Jat Goodwin is a name known to allJat Goodwin is a name known to allJat Goodwin is a name known to allJat Goodwin is a name known to allJat Goodwin is a name known to allJat Goodwin is a name known to all
Send a message via Skype™ to Jat Goodwin
Default Re: Swij's - 3D tracking turret

Very nice Tutorial. Simple to understand and very clear.
__________________

Quote:
<l3ulletje> Cuddle importance > Reply on holo emitter importance.

<Anticept> I am asleep, then suddenly I hear a faint, but noticable "HELP MEEE HELP MEEEE, WHY ARE YOU DOING THIS?" followed by a gulp sound.

<-=Fox=-> Orgasm... oooh ahh... ok... so?
Add jatgoodwin on Xfire for WireMod help.
Jat Goodwin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-19-2008   #3 (permalink)
Newbie
 
Swij's Avatar
 

Join Date: Nov 2008
Location: Sweden, Jönköping
Posts: 5
Swij is on a distinguished road
Send a message via MSN to Swij Send a message via Skype™ to Swij
Default Re: Swij's - 3D tracking turret

Quote:
Originally Posted by Jat Goodwin View Post
Very nice Tutorial. Simple to understand and very clear.
Thank you, it's my first so i do not realy know how to write tutorials but i managed to write good tutorial on my first attempt
__________________
Swij is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-24-2008   #4 (permalink)
Newbie
 
4n0nym0u5's Avatar
 

Join Date: Nov 2008
Posts: 3
4n0nym0u5 is on a distinguished road
Default Re: Swij's - 3D tracking turret

21) Wire the And (all) gate's '''A''' to the target finder's '''entitiy 1'''

when i try to do this wiremod says "error outputs normal and inputs ENTITY"
what should i do?
4n0nym0u5 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-24-2008   #5 (permalink)
Kanguru

 
l3ulletje's Avatar
 
Disco Racer Champion!
Join Date: Jun 2008
Posts: 740
l3ulletje has a spectacular aura aboutl3ulletje has a spectacular aura about
Default Re: Swij's - 3D tracking turret

He made a little error there. Wire it to the "1" output and it should work.

@Swij: I hope you don't mind that I edit it out.
__________________
My signature has a point.
Quote:
Originally Posted by Squeakyneb View Post
when l3ulletje says do it, do it.
That
l3ulletje is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-24-2008   #6 (permalink)
Newbie
 
4n0nym0u5's Avatar
 

Join Date: Nov 2008
Posts: 3
4n0nym0u5 is on a distinguished road
Default Re: Swij's - 3D tracking turret

actually, the turret now is just spinning around wildly whenever i unfreeze it
4n0nym0u5 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 3 Weeks Ago   #7 (permalink)
Newbie
 
Swij's Avatar
 

Join Date: Nov 2008
Location: Sweden, Jönköping
Posts: 5
Swij is on a distinguished road
Send a message via MSN to Swij Send a message via Skype™ to Swij
Default Re: Swij's - 3D tracking turret

Quote:
Originally Posted by 4n0nym0u5 View Post
actually, the turret now is just spinning around wildly whenever i unfreeze it
I know what causes that bug now, its the beacon sensor. the settings should be set to output X,Y,Z . Forgot to mention that.
__________________
Swij is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 3 Weeks Ago   #8 (permalink)
Advanced Member

 
Lapsus's Avatar
 

Join Date: Apr 2007
Location: Ontario, Canada
Posts: 162
Lapsus has disabled reputation
Send a message via MSN to Lapsus
Default Re: Swij's - 3D tracking turret

It's rare for me to see a wheel-based turret that works so smoothly, I'm impressed.
Also, nice and readable tutorial, and a wiring diagram too! Awesome :3

It's been too long since I've played gmod, I can't comment more on it without building it, I'll reply again later once I've built it and tested it again.
__________________
Lick the capacitor, lose your tongue, visual cortex and heart function.
-SkilletAudio
Lapsus is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 2 Weeks Ago   #9 (permalink)
Newbie
 
Rombishead's Avatar
 

Join Date: Dec 2008
Location: England
Posts: 7
Rombishead is on a distinguished road
Send a message via MSN to Rombishead
Default Re: Swij's - 3D tracking turret

i have built this one before but i have seen somone make this with delta chips on it and it dosent move up and down as it targets?does anyone know how to achive such perfection?
Rombishead is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 1 Week Ago   #10 (permalink)
Newbie
 
Edyscape's Avatar
 

Join Date: Dec 2008
Posts: 2
Edyscape is on a distinguished road
Default Re: Swij's - 3D tracking turret

i made it , i spawned a zombie the zombie became red and further nothing happened
i dont understand why this happened please help me.

Edit : SOLVED

Last edited by Edyscape; 1 Week Ago at 07:49 AM..
Edyscape is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply

Bookmarks

Tags
auto, tracking, turret, tutorial

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -7. The time now is 11:06 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.

Page top