@name 3rd person
@inputs 
@outputs Dir:vector Pos:vector Activated 
@persist Clone
@trigger 
@model models/props_combine/breenglobe.mdl
#by Captain Maim STEAM_0:1:8017844 
runOnTick(1)
runOnChat(1)
runOnLast(1)
Own=owner()
gSetGroup("3p")
if(first()|duped()){
    if(gGetNum("Hi")){selfDestructAll() Clone=1}else{
        gSetNum("Hi",1)
        print("3rd Person Commands:")
        print("3p on")
        print("3p off")
    }
}
if(chatClk()){
    if(Own:lastSaid()=="3p on"){Activated=1}
    if(Own:lastSaid()=="3p off"){Activated=0}
}
Dir=Own:eye()
Ang=Own:eyeAngles()
R=-60-Own:radius()
Pos=Own:shootPos()+vec(R*cos(Ang:yaw()),R*sin(Ang:yaw()),0)


if(last()&!Clone){gDeleteNum("Hi")}
