holo tank by Salt Propelled Tank

helo, i’m sharing my holo tank. Do what ever you want with it. give me credit if possible =)

http://images.akamai.steamusercontent.com/ugc/89348290298314566/78FA810140F5276AFE92A7A1F46352FDA01F06C4/?interpolation=lanczos-none&output-format=jpeg&output-quality=95&fit=inside|1024:640&composite-to%3D*%2C*|1024%3A640&background-color=black

http://images.akamai.steamusercontent.com/ugc/89348290298313338/A9771ABA35668F547FBF1969E11EF37D0693C675/?interpolation=lanczos-none&output-format=jpeg&output-quality=95&fit=inside|1024:640&composite-to%3D*%2C*|1024%3A640&background-color=black


@name holo tank by SaltPropelledTank
@inputs [W A S D]:normal Camang:angle Campos:vector Chair:entity
@outputs Turret:entity Campos:vector
@persist [Move Pos]:vector [Ang Rotate]:angle [Add Pitch Ranger Distance]:number

# Autor : STEAM_0:0:52437808
# use it with 4 numpad inputs for movement.
# link a HOLLOW prop to the Chair input for it to have a physical base (so you can siteverywhere it)
# link Camang and Campos to a cam controler to make your camera be in the tank.
# if you want the turret to rotate enable the line 379 by removing the # at the start of the line.
# WARNING enabling the turret to rotate NEEDS a ACTIVE cam controler. otherwise it will be at angle 0 all the time.

interval(60)

if (first())
{
soundPurge()

Ang = ang(0,0,0)+Rotate
Pos = entity():pos()+vec(0,0,22)+Move
Color = teamColor(owner():team())
Trackcolor = vec(100,100,100)
Material = "models/props_canal/metalwall005b"
Trackmaterial = "phoenix_storms/FuturisticTrackRamp_1-2"

#hull base
holoCreate(1)
holoModel(1,"cube")
holoScale(1,vec(6,4,2))
holoColor(1,Color)
holoMaterial(1,Material)
holoPos(1,Pos)
holoAng(1,Ang)
holoParent(1,1)
#hull front
holoCreate(2)
holoModel(2,"hq_cylinder")
holoScale(2,vec(2,2,3.999))
holoColor(2,Color)
holoMaterial(2,Material)
holoPos(2,Pos+vec(36,0,0))
holoAng(2,Ang+ang(0,0,90))
holoParent(2,1)
#hull back lower
holoCreate(3)
holoModel(3,"right_prism")
holoScale(3,vec(1,4,1))
holoColor(3,Color)
holoMaterial(3,Material)
holoPos(3,Pos+vec(-42,0,-6))
holoAng(3,Ang+ang(180,0,0))
holoParent(3,1)
#hull back upper
holoCreate(4)
holoModel(4,"cube")
holoScale(4,vec(1,4,1))
holoColor(4,Color)
holoMaterial(4,Material)
holoPos(4,Pos+vec(-42,0,6))
holoAng(4,Ang+ang(180,0,0))
holoParent(4,1)
#hull back upper
holoCreate(37)
holoModel(37,"cube")
holoScale(37,vec(0.1,3.7,0.7))
holoMaterial(37,"phoenix_storms/trains/track_plate")
holoPos(37,Pos+vec(-48,0,6))
holoAng(37,Ang+ang(180,0,0))
holoParent(37,1)
#turret base
holoCreate(5)
holoModel(5,"hq_dome")
holoScale(5,vec(4,4,2))
holoColor(5,Color)
holoMaterial(5,Material)
holoPos(5,Pos+vec(-10,0,12))
holoAng(5,Ang)
holoParent(5,1)
#cannon
holoCreate(6)
holoModel(6,"hq_tube")
holoScale(6,vec(0.5,0.5,3))
holoColor(6,Color)
holoMaterial(6,Material)
holoPos(6,Pos+vec(23,0,18))
holoAng(6,Ang+ang(90,0,0))
holoParent(6,5)
#cupola
holoCreate(7)
holoModel(7,"hq_cylinder")
holoScale(7,vec(2,2,1))
holoColor(7,Color)
holoMaterial(7,Material)
holoPos(7,Pos+vec(-10,12,18))
holoAng(7,Ang)
holoParent(7,5)
#cupola hatch
holoCreate(8)
holoModel(8,"hq_cylinder")
holoScale(8,vec(1.5,1.5,0.1))
holoColor(8,Color/2)
holoMaterial(8,Material)
holoPos(8,Pos+vec(-10,12,24))
holoAng(8,Ang)
holoParent(8,5)
#hull hatch
holoCreate(9)
holoModel(9,"hq_cylinder")
holoScale(9,vec(1.5,1.5,0.1))
holoColor(9,Color/2)
holoMaterial(9,Material)
holoPos(9,Pos+vec(25,12,12))
holoAng(9,Ang)
holoParent(9,1)
#cannon filler
holoCreate(10)
holoModel(10,"hq_cylinder")
holoScale(10,vec(0.4,0.4,2.5))
holoColor(10,Color/3)
holoMaterial(10,Material)
holoPos(10,Pos+vec(23,0,18))
holoAng(10,Ang+ang(90,0,0))
holoParent(10,5)
#front right sproket
holoCreate(11)
holoModel(11,"hq_cylinder")
holoScale(11,vec(1.5,1.5,1))
holoColor(11,Color/1.5)
holoMaterial(11,Material)
holoPos(11,Pos+vec(36,-30.5,0))
holoAng(11,Ang+ang(0,0,90))
holoParent(11,1)
#front left sproket
holoCreate(12)
holoModel(12,"hq_cylinder")
holoScale(12,vec(1.5,1.5,1))
holoColor(12,Color/1.5)
holoMaterial(12,Material)
holoPos(12,Pos+vec(36,30.5,0))
holoAng(12,Ang+ang(0,0,90))
holoParent(12,1)
#rear left sproket
holoCreate(13)
holoModel(13,"hq_cylinder")
holoScale(13,vec(1.5,1.5,1))
holoColor(13,Color/1.5)
holoMaterial(13,Material)
holoPos(13,Pos+vec(-36,30.5,0))
holoAng(13,Ang+ang(0,0,90))
holoParent(13,1)
#rear right sproket
holoCreate(14)
holoModel(14,"hq_cylinder")
holoScale(14,vec(1.5,1.5,1))
holoColor(14,Color/1.5)
holoMaterial(14,Material)
holoPos(14,Pos+vec(-36,-30.5,0))
holoAng(14,Ang+ang(0,0,90))
holoParent(14,1)
#front left road wheel
holoCreate(15)
holoModel(15,"hq_cylinder")
holoScale(15,vec(1,1,1))
holoColor(15,Color/1.5)
holoMaterial(15,Material)
holoPos(15,Pos+vec(18,30.5,-15))
holoAng(15,Ang+ang(0,0,90))
holoParent(15,1)
#middle left road wheel
holoCreate(16)
holoModel(16,"hq_cylinder")
holoScale(16,vec(1,1,1))
holoColor(16,Color/1.5)
holoMaterial(16,Material)
holoPos(16,Pos+vec(0,30.5,-15))
holoAng(16,Ang+ang(0,0,90))
holoParent(16,1)
#rear left road wheel
holoCreate(17)
holoModel(17,"hq_cylinder")
holoScale(17,vec(1,1,1))
holoColor(17,Color/1.5)
holoMaterial(17,Material)
holoPos(17,Pos+vec(-18,30.5,-15))
holoAng(17,Ang+ang(0,0,90))
holoParent(17,1)
#front left road wheel
holoCreate(18)
holoModel(18,"hq_cylinder")
holoScale(18,vec(1,1,1))
holoColor(18,Color/1.5)
holoMaterial(18,Material)
holoPos(18,Pos+vec(18,-30.5,-15))
holoAng(18,Ang+ang(0,0,90))
holoParent(18,1)
#middle left road wheel
holoCreate(19)
holoModel(19,"hq_cylinder")
holoScale(19,vec(1,1,1))
holoColor(19,Color/1.5)
holoMaterial(19,Material)
holoPos(19,Pos+vec(0,-30.5,-15))
holoAng(19,Ang+ang(0,0,90))
holoParent(19,1)
#rear right road wheel
holoCreate(20)
holoModel(20,"hq_cylinder")
holoScale(20,vec(1,1,1))
holoColor(20,Color/1.5)
holoMaterial(20,Material)
holoPos(20,Pos+vec(-18,-30.5,-15))
holoAng(20,Ang+ang(0,0,90))
holoParent(20,1)

#1st right track part
holoCreate(21)
holoModel(21,"cube")
holoScale(21,vec(0.15,1.1,6))
holoColor(21,Trackcolor)
holoMaterial(21,Trackmaterial)
holoPos(21,Pos+vec(0,-30.5,10))
holoAng(21,Ang+ang(90,0,0))
holoParent(21,1)
#2nd right track part
holoCreate(22)
holoModel(22,"cube")
holoScale(22,vec(0.15,1.1,3.3))
holoColor(22,Trackcolor)
holoMaterial(22,Trackmaterial)
holoPos(22,Pos+vec(0,-30.5,-21))
holoAng(22,Ang+ang(90,0,0))
holoParent(22,1)
#3rd right track part
holoCreate(23)
holoModel(23,"cube")
holoScale(23,vec(1.1,0.15,1))
holoColor(23,Trackcolor)
holoMaterial(23,Trackmaterial)
holoPos(23,Pos+vec(41,-30.5,7))
holoAng(23,Ang+ang(0,90,-60))
holoParent(23,1)
#4th right track part
holoCreate(24)
holoModel(24,"cube")
holoScale(24,vec(1.1,0.15,1))
holoColor(24,Trackcolor)
holoMaterial(24,Trackmaterial)
holoPos(24,Pos+vec(46,-30.5,-1.5))
holoAng(24,Ang+ang(0,90,0))
holoParent(24,1)
#5th right track part
holoCreate(25)
holoModel(25,"cube")
holoScale(25,vec(1.1,0.15,2.5))
holoColor(25,Trackcolor)
holoMaterial(25,Trackmaterial)
holoPos(25,Pos+vec(33,-30.5,-14))
holoAng(25,Ang+ang(0,90,62))
holoParent(25,1)
#6th right track part
holoCreate(26)
holoModel(26,"cube")
holoScale(26,vec(1.1,0.15,2.5))
holoColor(26,Trackcolor)
holoMaterial(26,Trackmaterial)
holoPos(26,Pos+vec(-33,-30.5,-14))
holoAng(26,Ang+ang(0,90,-62))
holoParent(26,1)
#7th right track part
holoCreate(27)
holoModel(27,"cube")
holoScale(27,vec(1.1,0.15,1))
holoColor(27,Trackcolor)
holoMaterial(27,Trackmaterial)
holoPos(27,Pos+vec(-46,-30.5,-1.5))
holoAng(27,Ang+ang(0,90,0))
holoParent(27,1)
#8th right track part
holoCreate(28)
holoModel(28,"cube")
holoScale(28,vec(1.1,0.15,1))
holoColor(28,Trackcolor)
holoMaterial(28,Trackmaterial)
holoPos(28,Pos+vec(-41,-30.5,7))
holoAng(28,Ang+ang(0,90,60))
holoParent(28,1)

#1st left track part
holoCreate(29)
holoModel(29,"cube")
holoScale(29,vec(0.15,1.1,6))
holoColor(29,Trackcolor)
holoMaterial(29,Trackmaterial)
holoPos(29,Pos+vec(0,30.5,10))
holoAng(29,Ang+ang(90,0,0))
holoParent(29,1)
#2nd left track part
holoCreate(30)
holoModel(30,"cube")
holoScale(30,vec(0.15,1.1,3.3))
holoColor(30,Trackcolor)
holoMaterial(30,Trackmaterial)
holoPos(30,Pos+vec(0,30.5,-21))
holoAng(30,Ang+ang(90,0,0))
holoParent(30,1)
#3rd left track part
holoCreate(31)
holoModel(31,"cube")
holoScale(31,vec(1.1,0.15,1))
holoColor(31,Trackcolor)
holoMaterial(31,Trackmaterial)
holoPos(31,Pos+vec(41,30.5,7))
holoAng(31,Ang+ang(0,90,-60))
holoParent(31,1)
#4th left track part
holoCreate(32)
holoModel(32,"cube")
holoScale(32,vec(1.1,0.15,1))
holoColor(32,Trackcolor)
holoMaterial(32,Trackmaterial)
holoPos(32,Pos+vec(46,30.5,-1.5))
holoAng(32,Ang+ang(0,90,0))
holoParent(32,1)
#5th left track part
holoCreate(33)
holoModel(33,"cube")
holoScale(33,vec(1.1,0.15,2.5))
holoColor(33,Trackcolor)
holoMaterial(33,Trackmaterial)
holoPos(33,Pos+vec(33,30.5,-14))
holoAng(33,Ang+ang(0,90,62))
holoParent(33,1)
#6th left track part
holoCreate(34)
holoModel(34,"cube")
holoScale(34,vec(1.1,0.15,2.5))
holoColor(34,Trackcolor)
holoMaterial(34,Trackmaterial)
holoPos(34,Pos+vec(-33,30.5,-14))
holoAng(34,Ang+ang(0,90,-62))
holoParent(34,1)
#7th left track part
holoCreate(35)
holoModel(35,"cube")
holoScale(35,vec(1.1,0.15,1))
holoColor(35,Trackcolor)
holoMaterial(35,Trackmaterial)
holoPos(35,Pos+vec(-46,30.5,-1.5))
holoAng(35,Ang+ang(0,90,0))
holoParent(35,1)
#8th left track part
holoCreate(36)
holoModel(36,"cube")
holoScale(36,vec(1.1,0.15,1))
holoColor(36,Trackcolor)
holoMaterial(36,Trackmaterial)
holoPos(36,Pos+vec(-41,30.5,7))
holoAng(36,Ang+ang(0,90,60))
holoParent(36,1)

Campos = holoEntity(5):pos()+vec(0,0,15)
Turret = holoEntity(5)

holoEntity(1):soundPlay(1,0,"vehicles/diesel_loop2.wav")
}
Ranger=rangerOffset(holoEntity(1):pos()+vec(0,0,76.5),holoEntity(1):pos()-vec(0,0,9999)):distance()
if (Ranger>100) {Distance-=1}
if (Ranger<99) {Distance+=1}
Pos = entity():pos()+vec(0,0,22+Distance)+Move
Ang = ang(0,0,0)+Rotate
holoPos(1,Pos)
holoAng(1,Ang)
if (W) {Move+=holoEntity(1):forward()*6}
if (S) {Move-=holoEntity(1):forward()*3}
if (A) {Rotate+=ang(0,3,0)}
if (D) {Rotate-=ang(0,3,0)}

Chair:setPos(holoEntity(1):pos())
Chair:setAng(holoEntity(1):angles())
#holoAng(5,ang(0,Camang:yaw(),0)) -- put a # in the start of this line for disable the turret rotate

if (W+A+S+D) {Pitch+=10} else {Pitch=100}
soundPitch(1,Pitch)