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
Bookmarks