+ Reply to Thread
Results 1 to 8 of 8

Thread: P.H.A.D. (personal healing and assistance drone)

  1. #1
    Wire Amateur Neonvyper's Avatar
    Join Date
    May 2008
    Location
    North East UK
    Posts
    31

    Default P.H.A.D. (personal healing and assistance drone)

    This is my first uploaded contraption here....

    ...it's the PHAD

    YouTube - Basic PHAD.wmv

    It basically follows you, looks where you look (not precisely could use some help with that) heals relitive to your health and also gives your jumps a significant boost.

    I've put lasers and things on before but its not the best at offence, and placing armour on it makes it look a little wierd....

    I've included the E2 chip code and Adv_Dup, for the base, things need to be hooked up and if you want i'll post the instructions if you cant

    so here's the code: alot of it i find real hard to understand and got alot of help off a few guys (thanks btw, helped me alot)

    Code:
    @name Lookchip
    @inputs TargetE:entity X Y Discharge
    @outputs Height Vthrust:vector Xo Yo Turn Pitch Roll Fire Jdistance Jmag Heal Healmag Healdist
    @persist E:vector O:vector Eroll Bearing Test Test2
    interval(20)
    
    #Height of hoverballs in world Z
    Height=TargetE:height()+TargetE:pos():z()+45
    
    
    #Vector thrust allowing it to be controlled above the head
    #Vector has proven useless so its in here just for the crack (still using Beacon sensor)
    Vthrust=vec(TargetE:pos():x(),TargetE:pos():y(),0)
    
    Xo=-(X+$X*20)
    Yo=-(Y+$Y*20)
    
    
    #looking element
    E=(TargetE:eye()-vec(0,0,TargetE:eye():z()) ):normalized()
    O=(entity():eye()-vec(0,0,entity():eye():z())):normalized()
    Bearing=acos(O:dot(E))*sign(E:dot(entity():right()))
    Turn=(Bearing*2)+($Bearing*50)
    
    #Height looking element
    
    Test=-(acos(TargetE:eye():normalized():dot(entity():eye():normalized()))*sign(TargetE:eye():dot(entity():up())))
    Pitch=Test+$Test*25
    
    Test2=entity():elevation(TargetE:eye())
    #Roll prevention
    
    Eroll=entity():angles():roll()
    Roll=Eroll+$Eroll*15
    
    #Jumping
    if(TargetE:isCrouch()==1) {Fire=1} else {Fire=0}
    Jdistance=200
    Jmag=200
    #Healing
    if(TargetE:health()<100){Heal=1}else{Heal=0}
    Healmag=(200/TargetE:health())
    Healdist=140
    ...so yeah.... needs field generators and PHX

    Please tell me what you think
    Attached Files Attached Files
    Sometimes all gmod contraptions need is a good old flailing with the physics gun.

    This IQ test dosent work, i got 152 and i only have an actual IQ of 129

  2. #2
    Master of Mars Magos Mechanicus's Avatar
    Join Date
    May 2008
    Posts
    852

    Default Re: P.H.A.D. (personal healing and assistance drone)

    Seems quite a handy little drone, though I'm finding the wiring a little hard. E-gate didn't dupe, or? Also see you've written your own vector angles thing for the vertical movement and that's very good. You always learn the most of a method when you try it out yourself.
    I can wire anything directly into anything! I'm the Professor!
    -Professor Hubert Farnsworth

  3. #3
    Wire Amateur Neonvyper's Avatar
    Join Date
    May 2008
    Location
    North East UK
    Posts
    31

    Default Re: P.H.A.D. (personal healing and assistance drone)

    Quote Originally Posted by Magos Mechanicus View Post
    Seems quite a handy little drone, though I'm finding the wiring a little hard. E-gate didn't dupe, or? Also see you've written your own vector angles thing for the vertical movement and that's very good. You always learn the most of a method when you try it out yourself.
    ty your code helped ALOT, and my own code for vertical plane is a little glitchy, it mkaes it look up and down when turning fast (hardly noticeable and not a major issue)


    soo...

    inputs:
    TagetE goes to target finder
    X goes to directional X on beacon sensor ( beacon sensor a little glitched)
    Y goes to Y directional
    Discharge was an imput to fire a healing burst to all nearby entities but i took out on original drone

    outputs:
    height->hoverballs

    Vthrust->Vector thruster (not needed but i do just incase)
    Xo->Vector thruster
    Yo->Vector thruster

    Turn->side thrusters
    Pitch->pitch thrusters (front and back)
    Roll->roll thrusters

    Fire-> active (on attraction field gen at front(was used as a turret on primary model))
    Jdistance->Distance (attraction field)
    Jmag->Magnitude (attraction field)

    Heal->Active (Recovery field (underside))
    Healmag->Magnitude(recovery field(TRY NOT TO MIX UP WITH DIST i did in wrong order))
    Healdist->Distance (recovery field)
    and that should do it
    Sometimes all gmod contraptions need is a good old flailing with the physics gun.

    This IQ test dosent work, i got 152 and i only have an actual IQ of 129

  4. #4
    Wire Sofaking BlackholeWM's Avatar
    Join Date
    Dec 2008
    Posts
    805

    Default Re: P.H.A.D. (personal healing and assistance drone)

    How did you get it to heal? You must be using something I haven't heard of.

  5. #5
    Wire Amateur Neonvyper's Avatar
    Join Date
    May 2008
    Location
    North East UK
    Posts
    31

    Default Re: P.H.A.D. (personal healing and assistance drone)

    Quote Originally Posted by BlackholeWM View Post
    How did you get it to heal? You must be using something I haven't heard of.
    Field Generators
    Sometimes all gmod contraptions need is a good old flailing with the physics gun.

    This IQ test dosent work, i got 152 and i only have an actual IQ of 129

  6. #6
    Wire Sofaking BlackholeWM's Avatar
    Join Date
    Dec 2008
    Posts
    805

    Default Re: P.H.A.D. (personal healing and assistance drone)

    I have just completed my own BHPHD drone, which has antigrav fields, healing, following and offensive capabilities. Stabalisation needs work, though.

  7. #7
    Wire Noob T.King's Avatar
    Join Date
    Dec 2008
    Posts
    20

    Default Re: P.H.A.D. (personal healing and assistance drone)

    What do you use for the healing?

    Edit: Oops, didn't read posts before this.

  8. #8
    Wirererer Paper Clip's Avatar
    Join Date
    Sep 2008
    Location
    Canada
    Posts
    368

    Default Re: P.H.A.D. (personal healing and assistance drone)

    I love your contraption =)

    It inspired me to make another contraption loosly based on your idea, I will probably post it this evening. Don't worry, it isn't another rip of your project.
    Last edited by Paper Clip; 02-02-2009 at 04:55 PM.

+ Reply to Thread

Similar Threads

  1. Blackhole's Awsome Personal Help and Defence Drone
    By BlackholeWM in forum Finished contraptions
    Replies: 25
    Last Post: 06-13-2009, 01:33 AM
  2. Healing
    By BlackoutAU in forum Expression 2 Discussion & Help
    Replies: 10
    Last Post: 01-17-2009, 06:20 AM
  3. REQUEST WIREMOD ASSISTANCE IN THE HELP AND SUPPORT FORUM
    By GreyMario in forum Wiremod General Chat
    Replies: 4
    Last Post: 05-01-2008, 08:18 PM
  4. Getting back to wiremod. (Some assistance please)
    By cadde in forum Wiremod General Chat
    Replies: 8
    Last Post: 03-14-2008, 04:02 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