#Created by PURECTRL
@name ARC
@persist A Greeting:array Comments:array Time Co Z AFC R Power Charge Tactic
@model holo_entity_1
 
runOnTick(1)
Greeting = array("Hi "+owner():name(),"Hello "+owner():name())
Comments = array(".",".",".",".",".",".",".",".",".",".",".",".",".",".",".",".")
TComments = array(".",".",".",".",".",".")
owner():setColor(0,0,0)
owner():setMaterial("props_lab/warp_sheet")
 
if (first()) {
    Name = randint(100,999)
    setName("ARC "+Name)
    Tactic = 0
    Power = 20000
    Gre = randint(1,Greeting:count())
    print(Greeting[Gre,string])
 
    entity():propFreeze(0)
    Z = 35
 
}
 
if (Power > 1000 & Charge == 0 & Tactic == 0) {
    if (A == 0 & AFC == 0) {
        Time = randint(675,900)
    }
    if (A == 0 & AFC == 1) {
        Time = 2000
    }
    A = A+1
    if (A == Time) {
        AFC = 0
        Co = randint(1,Comments:count())
        Ct = randint(1,TComments:count())
        if (Power <= 5000) {
            print(TComments[Ct,string])
            Z = 15
        }
        if (Power > 5000) {
            print(Comments[Co,string])
        }
        if (Co == 12) {
            AFC = 1
        }
        A = 0
    }
    R = R+2.2
    X = cos(R) * 65
    Y = sin(R) * 65
    holoEntity(1):setPos(owner():pos()+vec(Y,X,Z))
    holoEntity(1):setAng(ang(R,-R,-R))
}
 

 



if(first()){
holoCreate(1)
holoModel(1,"hq_cylinder")
holoScale(1,vec(0.2,0.3,3))
holoPos(1,entity():pos() + vec(0,0,30))  
holoCreate(2)
holoModel(2,"hq_icosphere")
holoPos(2,holoEntity(1):pos() + vec(0,-2,18))
holoScale(2,vec(0.4,0.4,0.4))
holoCreate(3)
holoModel(3,"hq_icosphere")
holoPos(3,holoEntity(1):pos() + vec(0,2,18))
holoScale(3,vec(0.4,0.4,0.4))
holoCreate(4)
holoModel(4,"hq_icosphere")
holoPos(4,holoEntity(1):pos() + vec(0,2,-18))
holoScale(4,vec(0.4,0.4,0.4))
holoCreate(5)
holoModel(5,"hq_icosphere")
holoPos(5,holoEntity(1):pos() + vec(0,-2,-18))
holoScale(5,vec(0.4,0.4,0.4))
holoParent(2,1)
holoParent(3,1)
holoParent(4,1)
holoParent(5,1)
holoParent(1,entity())
#holoEntity(1):holoPhysScale(vec(1,1,1))
}


