XurasGarry's ModTutorials (Moderator: Red_Snappa)Homing missile YouTube vid!
Pages: [1] 2   Go Down
Print
Author Topic: Homing missile YouTube vid!  (Read 470 times)
0 Members and 1 Guest are viewing this topic.
Red_Snappa
Moderator
Unlife
*****

Cookies: 5
Offline Offline

Steam Friends name: red_snappa
Posts: 759


Not the fish!


View Profile
« on: February 07, 2010, 05:18:49 PM »

Here is the Expression 2 chip:
Code:
@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:
<a href="http://www.youtube.com/v/IXydW0u-7-g&rel=1" target="_blank">http://www.youtube.com/v/IXydW0u-7-g&rel=1</a>
« Last Edit: February 08, 2010, 11:25:32 PM by thingshappen » Logged

Quote
19:14 - [XURAS] Red_Snappa: think thingsy think!
19:14 - [XURAS] thingshappen: Mehh
19:15 - [XURAS] Red_Snappa: please omg?
19:15 - [XURAS] thingshappen: I can't
Sona
Pepsi Addict
Beta Tester
Unlife
*****

Cookies: 10
Offline Offline

Steam Friends name: Son4
Posts: 909


View Profile
« Reply #1 on: February 07, 2010, 06: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 vhappy
Logged

Donkie
Not l33t anymore
Beta Tester
Über Unlife
*****

Cookies: 10
Offline Offline

Steam Friends name: dannneman
Posts: 1,396


lolfail


View Profile WWW
« Reply #2 on: February 08, 2010, 07: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 omg
Logged

Sona
Pepsi Addict
Beta Tester
Unlife
*****

Cookies: 10
Offline Offline

Steam Friends name: Son4
Posts: 909


View Profile
« Reply #3 on: February 08, 2010, 10:12:53 AM »

>.< Ive been talking to snappa on mics for a loooooooooooooong time now, i could say his englishhh is perfectsshhh
Logged

Red_Snappa
Moderator
Unlife
*****

Cookies: 5
Offline Offline

Steam Friends name: red_snappa
Posts: 759


Not the fish!


View Profile
« Reply #4 on: February 08, 2010, 01:28:51 PM »

lol thanks guys vhappy
Logged

Quote
19:14 - [XURAS] Red_Snappa: think thingsy think!
19:14 - [XURAS] thingshappen: Mehh
19:15 - [XURAS] Red_Snappa: please omg?
19:15 - [XURAS] thingshappen: I can't
Soul-Chicken
Mustang
Beta Tester
Über Unlife
*****

Cookies: 8
Offline Offline

Steam Friends name: SoulChicken
Posts: 1,693


View Profile
« Reply #5 on: February 08, 2010, 04:53:34 PM »

Nice tut.

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

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

Shoot to Thrill
Play to Kill
Red_Snappa
Moderator
Unlife
*****

Cookies: 5
Offline Offline

Steam Friends name: red_snappa
Posts: 759


Not the fish!


View Profile
« Reply #6 on: February 08, 2010, 07:50:11 PM »

what is so funny about it? wtf
Logged

Quote
19:14 - [XURAS] Red_Snappa: think thingsy think!
19:14 - [XURAS] thingshappen: Mehh
19:15 - [XURAS] Red_Snappa: please omg?
19:15 - [XURAS] thingshappen: I can't
Donkie
Not l33t anymore
Beta Tester
Über Unlife
*****

Cookies: 10
Offline Offline

Steam Friends name: dannneman
Posts: 1,396


lolfail


View Profile WWW
« Reply #7 on: February 08, 2010, 09: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:
the text got like this, thats why i added a dot in ther
Logged

sleepy
Founder
Global Administrator
Über Unlife
*****

Cookies: 35
Offline Offline

Steam Friends name: sleepy_23
Posts: 1,856



View Profile WWW
« Reply #8 on: February 08, 2010, 10:46:07 PM »

Done some edits with Code and stuff in tags but the same content! vhappy Nice Tut!
Logged

thingshappen
Founder
Global Administrator
God Like
*****

Cookies: 1338
Offline Offline

Steam Friends name: th1nghshappen
Posts: 2,656


GENTLE MANNE of LEISURE


View Profile WWW
« Reply #9 on: February 08, 2010, 11:26:02 PM »

Also done some edits with the tabbing, fixed the &nbsp;'s sleepy created too confuzzed
Logged


sleepy
Founder
Global Administrator
Über Unlife
*****

Cookies: 35
Offline Offline

Steam Friends name: sleepy_23
Posts: 1,856



View Profile WWW
« Reply #10 on: February 10, 2010, 03:53:45 PM »

&nbsp;'s get annoying at times
Logged

Red_Snappa
Moderator
Unlife
*****

Cookies: 5
Offline Offline

Steam Friends name: red_snappa
Posts: 759


Not the fish!


View Profile
« Reply #11 on: February 11, 2010, 03:42:03 PM »

thanks guys :]
Logged

Quote
19:14 - [XURAS] Red_Snappa: think thingsy think!
19:14 - [XURAS] thingshappen: Mehh
19:15 - [XURAS] Red_Snappa: please omg?
19:15 - [XURAS] thingshappen: I can't
Sona
Pepsi Addict
Beta Tester
Unlife
*****

Cookies: 10
Offline Offline

Steam Friends name: Son4
Posts: 909


View Profile
« Reply #12 on: February 14, 2010, 12:24:27 AM »

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.
Logged

Soul-Chicken
Mustang
Beta Tester
Über Unlife
*****

Cookies: 8
Offline Offline

Steam Friends name: SoulChicken
Posts: 1,693


View Profile
« Reply #13 on: February 14, 2010, 11:04:28 PM »

Make one i can mount onto a harrier vhappy
Logged

Shoot to Thrill
Play to Kill
Red_Snappa
Moderator
Unlife
*****

Cookies: 5
Offline Offline

Steam Friends name: red_snappa
Posts: 759


Not the fish!


View Profile
« Reply #14 on: February 15, 2010, 02:16:56 PM »

ok sure, i have a holiday coming up so i have something to do then vhappy
Logged

Quote
19:14 - [XURAS] Red_Snappa: think thingsy think!
19:14 - [XURAS] thingshappen: Mehh
19:15 - [XURAS] Red_Snappa: please omg?
19:15 - [XURAS] thingshappen: I can't
Pages: [1] 2   Go Up
Print
Jump to: