+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Eye Code Testing System (ECTS)

  1. #11
    Wiremod Helper Lyinginbedmon's Avatar
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,659

    Default Re: Eye Code Testing System (ECTS)

    Uh...this may or may not have been borked by today's automatic Gmod update...for some reason the user view angling is messed up through the cam controller and I don't know why 'cos I haven't touched it and it was working before...

  2. #12
    Wiremod Helper Lyinginbedmon's Avatar
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,659

    Default Re: Eye Code Testing System (ECTS)

    Right, one eye code that I know is fully functional, albeit perhaps not as aesthetic as I'd like.[highlight=e2]@name Cronoid eye 2
    @inputs Dis Focus Po:vector An:angle
    @outputs [Posit Hit Ent]:array
    @persist T N
    @persist [Pos Hi En Vs]:array Foc State

    if(first()){
    T=15
    Foc=Dis/4
    Inc=Dis/100

    N=1
    holoCreate(T+2)
    }
    if(N>=T){
    runOnTick(1)
    stoptimer("interval")
    State=1
    }
    else{interval(1000)}

    #Refracted origin vectors
    M=0
    while(N<=T & M<=10 & !State){
    B=entity():forward():rotate(-entity():angles())

    Ang=ang(360/T*N,90,0)
    V=vec(0,0,1):rotate(Ang)
    VsushVector(V*20)
    holoCreate(N)

    Wh=vec(1,1,1)*255
    holoColor(N,Wh*(N/T))
    N++,M++
    }

    if(State){
    #Focal point
    V=vec(1,0,0):rotate(An):setZ(0)
    FP=Po+(V*(Focus ? Focus : Foc))

    holoPos(T+2,FP)
    holoAng(T+2,FP:normalized():toAngle())

    M=0
    while(N<=T & M<=10){
    Or=Vs[N,vector]:rotate(An)
    Or=Po+Or #Origin vector
    Di=(FP-Or) #Directional vector

    R=rangerOffset(Dis,Or,Di)
    holoPos(N,Rosition())
    holoAng(N,Di:toAngle())
    Pos[N,vector]=Rosition()-Po
    Hi[N,number]=R:hit()
    En[N,entity]=R:entity()

    N++,M++
    }
    if(N>T){
    N=1
    Posit=Pos
    Hit=Hi
    Ent=En
    }
    }[/highlight]

  3. #13
    Wiremod Helper Lyinginbedmon's Avatar
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,659

    Default Re: Eye Code Testing System (ECTS)

    Bump! Fixed all the issues that I can detect.

    The Olympus Technologies drones, totally not SkyNet in Gmod form.
    Cronus: The Ultimate Drone, definitely SkyNet in Gmod form.
    The gBrain Project, the drone controls system that thinks it's better than you

+ Reply to Thread
Page 2 of 2 FirstFirst 12

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