Please login or register.

Xuras

Author Topic: Homing missile YouTube vid!  (Read 1150 times)

Offline Red_Snappa

  • Global Moderator
  • Posts far too much
  • *****
  • Posts: 969
  • Cookies: 7
  • Not the fish!
    • View Profile
Homing missile YouTube vid!
« on: 07 February, 2010, 16:18:49 pm »
Here is the Expression 2 chip:
Code: [Select]
@name rocket controler
@inputs GPS:wirelink Thruster:wirelink Target:entity
@inputs On Save
@outputs
@persist A B
@trigger all

if(first())
{
             A = 0
             B = 0
}

if(On)
{
             Thruster:setNumber("Mul",10000)
             interval(10)
             if(!A & !B)
             {
                              Thruster:setNumber("X",GPS:number("X")-GPS:number("Recall X"))
                              Thruster:setNumber("Y",GPS:number("Y")-GPS:number("Recall Y"))
                              Thruster:setNumber("Z",GPS:number("Z")-(GPS:number("Recall Z")+2500))
             }
             if( GPS:number("Z")<GPS:number("Recall Z")+2600 &
             GPS:number("Z")>GPS:number("Recall Z")+2400 &
             GPS:number("X")<GPS:number("Recall X")+100 &
             GPS:number("X")>GPS:number("Recall X")-100 &
             GPS:number("Y")<GPS:number("Recall Y")+100 &
             GPS:number("Y")>GPS:number("Recall Y")-100 )
             {
                              A = 1
             }
             if(!B & A)
             {
                              Thruster:setNumber("X",GPS:number("X")-Target:pos():x())
                              Thruster:setNumber("Y",GPS:number("Y")-Target:pos():y())
                              Thruster:setNumber("Z",GPS:number("Z")-(Target:pos():z()+2500))
             }
             if( GPS:number("Z")<Target:pos():z()+2600 &
             GPS:number("Z")>Target:pos():z()+2400 &
             GPS:number("X")<Target:pos():x()+100 &
             GPS:number("X")>Target:pos():x()-100 &
             GPS:number("Y")<Target:pos():y()+100 &
             GPS:number("Y")>Target:pos():y()-100 )
             {
                              B = 1
             }
             if(A & B)
             {
                              Thruster:setNumber("X",GPS:number("X")-Target:pos():x())
                              Thruster:setNumber("Y",GPS:number("Y")-Target:pos():y())
                              Thruster:setNumber("Z",GPS:number("Z")-Target:pos():z())
             }
}
if(!On)
{
             Thruster:setNumber("Mul",0)
             A = 0
             B = 0
}
if(Save)
{
             GPS:setNumber("Store/Save Pos",1)
}
else
{
             GPS:setNumber("Store/Save Pos",0)
}

Here is the video:
« Last Edit: 08 February, 2010, 22:25:32 pm by thingshappen »
Quote
22:54 - Red_Snappa: i don't have dropbox D:
22:54 - [XURAS] thingshappen: oeghnoaegbaouga

Online Sona

  • Coca-Cola addict
  • Global Moderator
  • Almost lives here
  • *****
  • Posts: 1,562
  • Cookies: 10
    • View Profile
Re: Homing missile YouTube vid!
« Reply #1 on: 07 February, 2010, 17:16:42 pm »
Good video : > Now i can make it and improve it! Might make a launching pad with all the fancy shite in it :D

Offline Donkie

  • Not l33t anymore
  • Almost lives here
  • ***
  • Posts: 1,710
  • Cookies: 10
  • Victory is near! Make the last push!
    • View Profile
Re: Homing missile YouTube vid!
« Reply #2 on: 08 February, 2010, 06:16:05 am »
OMAGAAD REDSNAPPA CAN SPEAK!
Sexy voice and sexy rocket. Love how you say "Nocollide". Though, shouldent complain, cant talk that good english D:

I got alot to brag about ^
Code: [Select]
22:25 - Donkie: go it
22:25 - Donkie: got tit
22:25 - Donkie: aergaergaer
22:25 - Donkie: got it*

Online Sona

  • Coca-Cola addict
  • Global Moderator
  • Almost lives here
  • *****
  • Posts: 1,562
  • Cookies: 10
    • View Profile
Re: Homing missile YouTube vid!
« Reply #3 on: 08 February, 2010, 09:12:53 am »
>.< Ive been talking to snappa on mics for a loooooooooooooong time now, i could say his englishhh is perfectsshhh

Offline Red_Snappa

  • Global Moderator
  • Posts far too much
  • *****
  • Posts: 969
  • Cookies: 7
  • Not the fish!
    • View Profile
Re: Homing missile YouTube vid!
« Reply #4 on: 08 February, 2010, 12:28:51 pm »
lol thanks guys :D
Quote
22:54 - Red_Snappa: i don't have dropbox D:
22:54 - [XURAS] thingshappen: oeghnoaegbaouga

Soul-Chicken

  • Guest
Re: Homing missile YouTube vid!
« Reply #5 on: 08 February, 2010, 15:53:34 pm »
Nice tut.

Couldnt have done that E2 for the life of me :(
only got holos down, barely.

Also i love the was you say your "S" its like "Sch"  :hurrrr:
« Last Edit: 08 February, 2010, 15:59:56 pm by Soul-Chicken »

Offline Red_Snappa

  • Global Moderator
  • Posts far too much
  • *****
  • Posts: 969
  • Cookies: 7
  • Not the fish!
    • View Profile
Re: Homing missile YouTube vid!
« Reply #6 on: 08 February, 2010, 18:50:11 pm »
what is so funny about it? :wtf:
Quote
22:54 - Red_Snappa: i don't have dropbox D:
22:54 - [XURAS] thingshappen: oeghnoaegbaouga

Offline Donkie

  • Not l33t anymore
  • Almost lives here
  • ***
  • Posts: 1,710
  • Cookies: 10
  • Victory is near! Make the last push!
    • View Profile
Re: Homing missile YouTube vid!
« Reply #7 on: 08 February, 2010, 20:10:49 pm »
Snappa, first of all. Put the code in the [code.] brackets. This will remove the &nbsp; which is some html code shit. (for space i think).
Secondly, i hope you have heard of the button called "Tab" because your code looks very unclean, dunno if that is just because of the non-code brackets. Anyways, good tutorial.

Edit: Just got to notice, if i wrote
Code: [Select]
the text got like this, thats why i added a dot in ther

I got alot to brag about ^
Code: [Select]
22:25 - Donkie: go it
22:25 - Donkie: got tit
22:25 - Donkie: aergaergaer
22:25 - Donkie: got it*

Offline sleepy

  • Founder
  • Global Administrator
  • Lives here
  • *****
  • Posts: 2,055
  • Cookies: 39
    • View Profile
    • Xuras!
Re: Homing missile YouTube vid!
« Reply #8 on: 08 February, 2010, 21:46:07 pm »
Done some edits with Code and stuff in tags but the same content! :D Nice Tut!
Any problems contact me
sleepy@alflatters.co.uk




Offline thingshappen

  • Founder
  • Global Administrator
  • Lives here
  • *****
  • Posts: 3,030
  • Cookies: 1337
  • GENTLE MANNE of LEISURE
    • STEAM_0:1:15987148
    • View Profile
    • You're on it!
Re: Homing missile YouTube vid!
« Reply #9 on: 08 February, 2010, 22:26:02 pm »
Also done some edits with the tabbing, fixed the &nbsp;'s sleepy created too :3


Offline sleepy

  • Founder
  • Global Administrator
  • Lives here
  • *****
  • Posts: 2,055
  • Cookies: 39
    • View Profile
    • Xuras!
Re: Homing missile YouTube vid!
« Reply #10 on: 10 February, 2010, 14:53:45 pm »
&nbsp;'s get annoying at times
Any problems contact me
sleepy@alflatters.co.uk




Offline Red_Snappa

  • Global Moderator
  • Posts far too much
  • *****
  • Posts: 969
  • Cookies: 7
  • Not the fish!
    • View Profile
Re: Homing missile YouTube vid!
« Reply #11 on: 11 February, 2010, 14:42:03 pm »
thanks guys :]
Quote
22:54 - Red_Snappa: i don't have dropbox D:
22:54 - [XURAS] thingshappen: oeghnoaegbaouga

Online Sona

  • Coca-Cola addict
  • Global Moderator
  • Almost lives here
  • *****
  • Posts: 1,562
  • Cookies: 10
    • View Profile
Re: Homing missile YouTube vid!
« Reply #12 on: 13 February, 2010, 23:24:27 pm »
Lol, just tried to make one of these on souls server and i failed. Andrerm sais the code is way outdated and its full of bugs lol.

Soul-Chicken

  • Guest
Re: Homing missile YouTube vid!
« Reply #13 on: 14 February, 2010, 22:04:28 pm »
Make one i can mount onto a harrier :D

Offline Red_Snappa

  • Global Moderator
  • Posts far too much
  • *****
  • Posts: 969
  • Cookies: 7
  • Not the fish!
    • View Profile
Re: Homing missile YouTube vid!
« Reply #14 on: 15 February, 2010, 13:16:56 pm »
ok sure, i have a holiday coming up so i have something to do then :D
Quote
22:54 - Red_Snappa: i don't have dropbox D:
22:54 - [XURAS] thingshappen: oeghnoaegbaouga

 


SimplePortal 2.3.2 © 2008-2010, SimplePortal