+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Holographic Mouse-Aimed Flyable Helicopter

  1. #1
    Wire Amateur xThaWolfx's Avatar
    Join Date
    Sep 2009
    Location
    The Netherlands
    Posts
    41

    Default Holographic Mouse-Aimed Flyable Helicopter

    One of my latest e2's.
    Works fine, no bugs so far.
    Video is for 2 flying contraptions, but the jet sucks so ignore that.





    Code:
    @name xThaWolfx HoloHeliFlyable
    @inputs Pod:wirelink Camera:wirelink
    @outputs NA:string
    @persist Body:entity Bomb:entity T Mouse2 Cloak
    @trigger 
    interval(1)
    O=owner()
    E=entity()
    
    NA=O:steamID()
    
    T=T*1+20
    if(first()){
    Body=holoCreate(1)
    C=100
    
    holoScale(1,vec(2,1,1)) 
    holoModel(1, "hqsphere") 
    holoPos(1, E:toWorld(vec(0,0,50)))
    holoParent(1, E)
    holoMaterial(1, "phoenix_storms/plastic")
    holoColor(1, vec(50,150,50))
    
    holoCreate(2)
    holoPos(2, Body:toWorld(vec(0,0,5)))
    holoModel(2, "hqcylinder")
    holoScale(2,vec(0.1,0.1,0.5))
    holoParent(2, Body)
    holoMaterial(2, "phoenix_storms/plastic")
    holoColor(2, vec(50,150,50))
    
    holoCreate(3)
    holoPos(3, holoEntity(2):toWorld(vec(0,0,3)))
    holoScale(3, vec(4,0.3,0.1))
    holoParent(3, Body)
    holoMaterial(3, "phoenix_storms/middle")
    holoColor(3, vec(100,100,100))
    
    holoCreate(4)
    holoPos(4, Body:toWorld(vec(-15,0,0)))
    holoScale(4, vec(2,0.3,0.3))
    holoParent(4, Body)
    holoMaterial(4, "phoenix_storms/plastic")
    holoColor(4, vec(50,150,50))
    
    holoCreate(5)
    holoPos(5, holoEntity(4):toWorld(vec(-10,2,3)))
    holoScale(5, vec(0.75,0.05,0.1))
    holoParent(5, Body)
    holoMaterial(5, "phoenix_storms/middle")
    holoColor(5, vec(100,100,100))
    
    holoCreate(8)
    holoPos(8, holoEntity(4):toWorld(vec(-10,2,3)))
    holoScale(8, vec(0.75,0.05,0.1))
    holoParent(8, Body)
    holoMaterial(8, "phoenix_storms/middle")
    holoColor(8, vec(100,100,100))
    
    holoCreate(6)
    holoPos(6, holoEntity(2):toWorld(vec(0,0,3)))
    holoScale(6, vec(4,0.3,0.1))
    holoParent(6, Body)
    holoMaterial(6, "phoenix_storms/middle")
    holoColor(6, vec(100,100,100))
    
    holoCreate(7)
    holoPos(7, holoEntity(4):toWorld(vec(-10,0,3.4)))
    holoMaterial(7, "phoenix_storms/plastic")
    holoModel(7, "prism")
    holoScale(7, vec(0.32,0.3,0.3))
    holoColor(7, vec(50,150,50))
    holoParent(7, Body)
    
    
    
    }
    
    
    Space=Pod:number("Space")
    W=Pod:number("W")
    A=Pod:number("A")
    S=Pod:number("S")
    D=Pod:number("D")
    Shift=Pod:number("Shift")
    Mouse2=Pod:number("Mouse2")
    Speed=10
    Speed2=20
    Speed3=3
    SpeedS=4
    
    if($Mouse2 & Mouse2){
        Cloak=!Cloak
        holoAlpha(1, 75)
        holoAlpha(2, 75)
        holoAlpha(3, 75)
        holoAlpha(4, 75)
        holoAlpha(5, 75)
        holoAlpha(6, 75)
        holoAlpha(7, 75)
        holoAlpha(8, 75)
    }
    if(Cloak){
        holoAlpha(1, 255)
        holoAlpha(2, 255)
        holoAlpha(3, 255)
        holoAlpha(4, 255)
        holoAlpha(5, 255)
        holoAlpha(6, 255)
        holoAlpha(7, 255)
        holoAlpha(8, 255)
    }
    
    
    
    Yaw=Pod:number("Bearing")
    if(-Pod:number("Elevation")<45 & -Pod:number("Elevation") >-45){Pitch=-Pod:number("Elevation")}
    elseif(-Pod:number("Elevation")>45){Pitch=45}
    elseif(-Pod:number("Elevation")<-30){Pitch=-30}
    
    
    
    holoAng(1, ang(Pitch,Yaw,0))
    holoAng(3, Body:toWorld(ang(0,T,0)))
    holoAng(5, Body:toWorld(ang(T,0,0)))
    holoAng(8, Body:toWorld(ang(T+90,0,0)))
    holoAng(6, Body:toWorld(ang(0,T+90,0)))
    
    Camera:setVector("Direction",Body:forward())
    Camera:setVector("Position",Body:toWorld(vec(-50,0,5)))
    
    
    if(W){holoPos(1, Body:toWorld(vec(W*Speed,0,0)))}
    elseif(W & Mouse2){holoPos(1, Body:toWorld(vec(W*Speed2,0,0)))}
    elseif(S){holoPos(1, Body:toWorld(vec(-S*SpeedS,0,0)))}
    
    
    if(A & !D){holoPos(1, Body:toWorld(vec(0,A*Speed3,0))), holoAng(1, ang(Pitch,Yaw,-15))}
    elseif(!A & D){holoPos(1, Body:toWorld(vec(0,-D*Speed3,0))), holoAng(1, ang(Pitch,Yaw,15))}
    
    
    if(Space & !Shift){holoPos(1, Body:toWorld(vec(0,0,Space*Speed3)))}
    elseif(!Space & Shift){holoPos(1, Body:toWorld(vec(0,0,-Shift*Speed3)))}
    Last edited by xThaWolfx; 02-13-2010 at 11:48 AM. Reason: Added Vid

  2. #2
    Wire Sofaking Unsmart's Avatar
    Join Date
    Dec 2008
    Location
    Belgium OR BANland
    Posts
    1,965

    Default Re: Holographic Mouse-Aimed Flyable Helicopter

    Video demonstrating its flight would be appropriate. Make the top rotors more flat, their Z is kinda big
    New server IP: 89.238.160.17:27018
    Hologram contraptions 1 Holo contraptions 2 EGP stuff Holo minigun Holo javelin rocket launcher
    Unsmart: I doubt the intelligence of some people.
    Drunkie: Nobody could have said that any better than Unsmart.

    Unsmart: Solece, I totally did your mom yesterday
    Solece: Who hasnt

    Divran: there are more retarded people than there are clever people in this world

  3. #3
    Wire Amateur xThaWolfx's Avatar
    Join Date
    Sep 2009
    Location
    The Netherlands
    Posts
    41

    Default Re: Holographic Mouse-Aimed Flyable Helicopter

    done, but i wont make them more flat.

  4. #4
    Wire Sofaking N00bDud3's Avatar
    Join Date
    Jul 2009
    Location
    Error: Unknown Location
    Posts
    1,252

    Default Re: Holographic Mouse-Aimed Flyable Helicopter

    Pretty cool model, and a decent hologram control system. I made something like this a long time ago, but instead of a helicopter it was a miniature USS Enterprise.



  5. #5
    Wirererer Mikhail's Avatar
    Join Date
    May 2009
    Posts
    121

    Default Re: Holographic Mouse-Aimed Flyable Helicopter

    Quote Originally Posted by N00bDud3 View Post
    USS Enterprise.
    do want

  6. #6
    Wire Noob Have Fun's Avatar
    Join Date
    Jan 2010
    Posts
    9

    Default Re: Holographic Mouse-Aimed Flyable Helicopter

    Hello,

    I want just ask how to do the part with camera?
    or How to create that one with camera

    Edit:Or how to wire it

    P.S:sorry for old thread
    Last edited by Have Fun; 03-12-2010 at 01:14 PM.

  7. #7
    Wirererer Maxaxle's Avatar
    Join Date
    Sep 2009
    Posts
    177

    Default Re: Holographic Mouse-Aimed Flyable Helicopter

    I couldn't get it to work, for some reason. I hooked up the inputs and outputs as needed, but the helicopter stayed in place and my camera was unchanged. Help!
    Still very clueless about code in general.
    92% of teens have moved onto rap. If you are part of the 8% that still listen to real music, copy and paste this into your signature.

  8. #8
    Wire Amateur skyblue's Avatar
    Join Date
    Mar 2010
    Posts
    41

    Default Re: Holographic Mouse-Aimed Flyable Helicopter

    I can't even wire it up to the pod controller or cam controller :S It just tells me the outputs and inputs do not match. How did you even wire it up?

  9. #9
    Wire Amateur skyblue's Avatar
    Join Date
    Mar 2010
    Posts
    41

    Default Re: Holographic Mouse-Aimed Flyable Helicopter

    Ok i managed to do it >.< i was using normal wire to try and hook it up.. durrr.. lol. and Maxaxle use adv. wire to hook it up to the cam controller then adv pod controller and then link the cam control "active" to the pod control "active" and it shud work. Also make sure you link the Adv pod controller to the chair by right clicking it then right clicking the chair with the adv pod controller tool out.

  10. #10
    has a custom title mattwd0526's Avatar
    Join Date
    Apr 2009
    Location
    Born Bostonian
    Posts
    2,652

    Default Re: Holographic Mouse-Aimed Flyable Helicopter

    Cool, but some things could be done better, i.e the roll. My holo space ship potato bomber has a roll variable, the further rolled you are the faster you strafe in that direction, and it does not set roll instantly, it tilts it over bit by bit. Also, it corrects itself when not turning using a similar method, not setting it in one tick. If you choose to make yours act this way, make sure to clamp the roll between say -20 and 20, so as to not have it be flipping everywhere.

+ Reply to Thread
Page 1 of 2 12 LastLast

Tags for this Thread

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