+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: Xtensity's "Spaceman Turret V6" Tutorial, "Head Shots FTW"

  1. #1
    Wirererer Xtensity's Avatar
    Join Date
    Apr 2008
    Posts
    126

    Default Xtensity's "Spaceman Turret V6" Tutorial, "Head Shots FTW"

    What are you building? Watch this video for a demonstration.
    [ame=http://www.youtube.com/watch?v=t32EdNgaUyU]YouTube - Spaceman Turret V6[/ame]

    This is a pure picture tutorial of my 6th revision of my "Spaceman Turret"
    The whole idea behind this is to use on any enemy.
    If they duck you press 2 and if you want to head shot them standing you press 1
    The number wired to 1 wire mod is a head shot standing, and 2 is a head shot while ducking, no number pressed is a normal shot (feet on human)

    The main reason I made this was due to space build, I am in flat grass just for an open area to test the range of this turret, which it can head shot an enemy from across the map. It takes a second to aim but yeah..

    Code:
    N@Spaceman Turret V6
    I@Elevation Bearing Dist Roll Num
    O@ElevationThrust BearingThrust RollThrust
    BearingThrust = (Bearing+$Bearing*10)
    ElevationThrust =(HeightAngle+$Elevation*10)
    RollThrust = (Roll+$Roll*5)
    Bearing == 0 -> BearingThrust = 0;
    Elevation == -90 -> ElevationThrust = 0;
    HeightAngle = Elevation + atan(Num/Dist)
    I know little trig so I used orbs trig function from his head shot turret on mine, the rest of everything else is made by me.

    This expression is so accurate when it adjust to the targets bearing within 3-5 seconds or less, I haven't counted, it gets to .001 bearing and elevation, now if you tell it to aim for the head it will say the elevation is off


    Yeah in this picture I said turret on accident lol but I mean thrusters, don't get it mixed and expect turrets to thrust the turret lol.







    I added the adv dupe file
    Attached Files Attached Files
    Last edited by Xtensity; 09-19-2008 at 09:07 AM.

  2. #2
    Wirererer Aspras's Avatar
    Join Date
    Apr 2008
    Posts
    134

    Default Re: Xtensity's "Spaceman Turret V6" Tutorial, "Head Shots FTW"

    Ok i was taught that stuff in trig 3 years ago and currently doin advaced trig at senior highschool but i had to look up the english terms on google lol (im greek) . I havent watched Orb's tut on how to do the headshot but i guess that since u know the elevation which u tweaked to match the oposide side , u also know the distance which is the bottom side , u were able to find the angle (θ) with the tangent and output it to the either pitch or roll thrusters. Anyways what i dont understand in ur e-gate is the +*'s u got there what kind of function are those .

  3. #3
    Wirererer drpepper's Avatar
    Join Date
    Nov 2007
    Location
    Made in the USA
    Posts
    137

    Default Re: Xtensity's "Spaceman Turret V6" Tutorial, "Head Shots FTW"

    Is the +* in your e gate the delta?? If soo sweet, I didn't know the formula for a delta.

  4. #4
    Wirererer Xtensity's Avatar
    Join Date
    Apr 2008
    Posts
    126

    Default Re: Xtensity's "Spaceman Turret V6" Tutorial, "Head Shots FTW"

    WTF!

    Why do the delta things always disappear the code gets ass fucked! It doesn't make any sense! I cant post the code since it keeps doing this ffs and idk how to fix it.

    No dr its not, the delta for a variable is a dollar sign before the variable.

    Aspras


    Its like this


  5. #5
    Wirererer Aspras's Avatar
    Join Date
    Apr 2008
    Posts
    134

    Default Re: Xtensity's "Spaceman Turret V6" Tutorial, "Head Shots FTW"

    Yup thats exactly what i typed right there lol. Anyways im really getting pissed off with my turret im still trying to get the firing thing positioned correctly , no matter where i position it the god damn bearing is at 0.001 and the bullets go nowhere near the guy .

  6. #6
    Wirererer drpepper's Avatar
    Join Date
    Nov 2007
    Location
    Made in the USA
    Posts
    137

    Default Re: Xtensity's "Spaceman Turret V6" Tutorial, "Head Shots FTW"

    Sweet thanks so much Xtensity, I never knew what that blasted delta command was.

  7. #7
    Wirererer Xtensity's Avatar
    Join Date
    Apr 2008
    Posts
    126

    Default Re: Xtensity's "Spaceman Turret V6" Tutorial, "Head Shots FTW"

    Quote Originally Posted by Aspras View Post
    Yup thats exactly what i typed right there lol. Anyways im really getting pissed off with my turret im still trying to get the firing thing positioned correctly , no matter where i position it the god damn bearing is at 0.001 and the bullets go nowhere near the guy .
    Hm you sure? I'll go onto Gmod and make one using my tutorial and upload the adv dupe file and you can compare them.

    Also one thing. I don't know shit about trig really just basics.

    But what do sin and cos have to do with right triangles at all(not relating to circles) if Atan can get you the angle of a point....

    Also whats your elevation go to when its aligned or w/e, show me a picture.

    Edit, I added the adv dupe file.
    Last edited by Xtensity; 05-06-2008 at 07:28 PM.

  8. #8
    Wirererer Aspras's Avatar
    Join Date
    Apr 2008
    Posts
    134

    Default Re: Xtensity's "Spaceman Turret V6" Tutorial, "Head Shots FTW"

    You use the sine to find the angle when u know the oposite side and the hypothenuse length , you use the cosine instead to find the angle again if u know the bottom side's length and the hypothenuse the tangent is currently the only trig function used because we know the distance which is the bottom side and the height of the player which is the oposite side when the elevation is at 0. Its all basic trigonometry and you can use those 3 functions to find any of the 2 angles in the triangle as long as it has an angle which is 90 degrees it doesnt matter if its right , left sided it could be rotated as well when watching it from the side its always the same thing as long as 1 of the angles of the triangle is 90 degrees. Also the most accurate and fast way to aim in the z axis would be to use the pitch or the roll to rotate towards your target and its easier to use that instead of the elevation where u have to add 180 and stuff.



    PS: I realised why my turret wouldnt even aim close to the target even though the bearing was 0.001 , i thought about it a little bit and i realised that the beacon sensor has to be positioned in the exact middle of the object so that its x , y and z compared to the object itself are 0.

  9. #9
    Wire Amateur MadDog986's Avatar
    Join Date
    Apr 2008
    Posts
    97

    Default Re: Xtensity's "Spaceman Turret V6" Tutorial, "Head Shots FTW"

    You know you could put th gyro inside the expression ship and save yourself another prop. You also only need 1 thruster each for yaw, pitch and roll (looks like you got two)(would also save you another few props).

  10. #10
    Wirererer Xtensity's Avatar
    Join Date
    Apr 2008
    Posts
    126

    Default Re: Xtensity's "Spaceman Turret V6" Tutorial, "Head Shots FTW"

    Quote Originally Posted by MadDog986 View Post
    You know you could put th gyro inside the expression ship and save yourself another prop. You also only need 1 thruster each for yaw, pitch and roll (looks like you got two)(would also save you another few props).
    That would make it aim slower if it used less thrusters, and I can't put the gyro inside the chip, I tried it and it was an utter fail. It updated but it spazzed out since it did not work properly, I did it the right way it just didn't work.

+ Reply to Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. Want to understand "interval" and "timer" in Expression 2
    By anthraxyhe in forum Installation and Malfunctions Support
    Replies: 25
    Last Post: 12-08-2009, 09:36 AM
  2. Wired Portal "Turret"
    By The UnSkilled78 in forum Ideas & Suggestions
    Replies: 6
    Last Post: 02-07-2009, 04:30 PM
  3. some guidence on a "mouse-aimed" turret
    By L0ck-0n in forum Installation and Malfunctions Support
    Replies: 8
    Last Post: 08-23-2008, 03:56 AM
  4. Requesting "Text Screen" Tutorial
    By ppiksmada in forum Installation and Malfunctions Support
    Replies: 2
    Last Post: 09-22-2007, 07:38 PM
  5. Need the pack that has the "Generator" and "Razor" models...
    By Mr. Brightside in forum Installation and Malfunctions Support
    Replies: 2
    Last Post: 06-06-2007, 11:16 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots