Garry's Mod

Garry's Mod

54 ratings
E2 Codes (garry's mod)
By 0uassim
Some wire e2 codes made by me,
quelques codes pour l'e2 fait par moi.
   
Award
Favorite
Favorited
Unfavorite
Sky Drawer 1.0 '()'
@name Sky Drawer 1.0 by Shisui '()' (Stars) @inputs @outputs @persist B @trigger runOnTick(10) if(first()){ D = holoCreate(1,entity():pos()+vec(0,0,10),vec(1),ang(0),vec(0,0,0),"hqsphere") D:setTrails(200,200,50,"trails/laser",vec(255,255,255),255) } B += 5 holoPos(1,entity():pos()+vec(cos(B)*B,sin(B)*B,5000))
Anti-Noob '()'
Originally posted by Shisui '()':
@name Anti-Noob by Shisui '()' (1.1,Automatique)
@inputs
@outputs
@persist
@trigger
runOnTick(10)
#
S = owner():lastSaid():explode(" ")
#
if(S:string(1)=="!target"){
#
hideChat(1)
#
TempPlayer = findPlayerByName(S:string(2))
if(TempPlayer:isPlayer()){
Noob = TempPlayer
#
hideChat(1)
}
}
if(Noob:isAlive()){
P = propSpawn("models/props_c17/oildrum001_explosive.mdl",Noob:pos(),1)
P:propBreak()
}
Drawer 1.1 '()'
Originally posted by Shisui '()':

@name Drawer 1.1 by Shisui '()'
@inputs
@outputs
@persist
@trigger
runOnTick(10)
if(first()){
D = holoCreate(1,entity():pos()+vec(0,0,5),vec(1.2,1.2,1.2),ang(125,90,0))
holoModel(1,"models/Items/AR2_Grenade.mdl")
D:setTrails(20,20,25,"trails/laser",vec(255,255,255),255)
}
if(owner():keyPressed("r")){
holoPos(1,owner():aimPos()+vec(0,0,5))
}
else{
holoPos(1,owner():aimPos()+vec(0,0,-2000))
}
#Press "R" to draw ;-) (some bug but i will fix it on 1.2 version) (pen added on 1.1 and the line are more #skinny)
#(Certains bug, mais je le réparerai sur la version 1.2) (le stylet est ajouté sur 1.1 et la ligne est plus #maigre)
Portal for teleporter '()' (0.1 version)
Originally posted by Shisui '()':
@name Portail By Shisui '()'
@inputs
@outputs
@persist A B J
@trigger
runOnTick(10)
if(first()){
holoCreate(1,entity():pos()+vec(0,0,55),vec(0,4,9),ang(0),vec(0,0,255))
holoMaterial(1,"models/props_lab/warp_sheet")
holoCreate(2,holoEntity(1):pos()+vec(0,-23,0))
holoModel(2,"models/props_c17/door01_left.mdl")
holoCreate(3,entity():pos()+vec(-0.2,0,55),vec(0,4,9),ang(0))
holoMaterial(3,"phoenix_storms/metalfloor_2-3")

Z = propSpawn("models/props_c17/door01_left.mdl",holoEntity(2):pos(),1)
Z:propDraw(0)

holoAnim(2,"idle")
A = 56
}
B += 2
J += 1.5

holoPos(4,entity():pos()+vec(cos(B)*A,sin(B)*A,85))
holoPos(5,entity():pos()+vec(cos(J)*A,sin(J)*A,55))
holoPos(6,entity():pos()+vec(cos(B)*-A,sin(B)*-A,25))

if(owner():keyPressed("r") && owner():keyPressed("r")){
holoAnim(2,"openbar")
E = holoCreate(4,entity():pos()+vec(0,0,100),vec(0.5),ang(0),vec(0,0,0),"icosphere3")
E:setTrails(20,20,3.5,"trails/laser",vec(255,255,255),255)

G = holoCreate(5,entity():pos()+vec(0,0,70),vec(0.5),ang(0),vec(0,0,0),"icosphere3")
G:setTrails(20,20,3.5,"trails/laser",vec(255,255,255),255)

F = holoCreate(6,entity():pos()+vec(0,0,70),vec(0.5),ang(0),vec(0,0,0),"icosphere3")

F:setTrails(20,20,3.5,"trails/laser",vec(255,255,255),255)

P = propSpawn("models/props_c17/door01_left.mdl",holoEntity(2):pos()+vec(0,-1,0),1)
P:setAng(ang(0,-90,0))
P:propDraw(0)

Z:propDelete()
}

if(owner():keyPressed("b") && owner():keyPressed("b")){
holoAnim(2,"idle")
holoDelete(4)
holoDelete(5)
holoDelete(6)
P:propDelete()
P:propDraw(0)
D = propSpawn("models/props_c17/door01_left.mdl",holoEntity(2):pos(),1)
D:propDraw(0)

}
if(owner():keyPressed("r") && owner():keyPressed("r")){
D:propDelete()
D:propDraw(0)
}
#The code is realy bad sorry (you need to be on serveur with holoAnim extension)
EcoSphere 1.1 '()'
Originally posted by Shisui '()':
@name EcoSphere 1.0 by Smile '()'
@inputs
@outputs
@persist Ang
@trigger
interval(100)
if(first()){
holoCreate(1,entity():pos()+vec(0,0,70),vec(-2),ang(0),vec(255,0,0),"icosphere3")
holoCreate(2,entity():pos()+vec(0,0,70),vec(-3),ang(0),vec(255,0,0))
holoCreate(3,entity():pos()+vec(0,0,70),vec(-3),ang(0),vec(255,0,0))
Ang = 1
}
Ang += 10
holoAng(1,ang(0,Ang,0))
holoAng(2,ang(Ang,Ang,Ang))
holoAng(3,ang(Ang,0,Ang))

holoPos(1,entity():toWorld(vec(0,0,70)))
holoPos(2,entity():toWorld(vec(0,0,70)))
holoPos(3,entity():toWorld(vec(0,0,70)))

#On 1.1 version the entity (E2) is parent to the EcoSphere and i have added "toWorld vector" ;-)
#Sur la version 1.1 j'ai ajouté le "toWorld" et j'ai parent l'hologramme avec l'e2 ;-)
Magical Ball '()'
Originally posted by Shisui '()':
@name boule magique by Shisui '()'
@inputs
@outputs
@persist F D
interval(100)
O = owner()
if(first()){
A = holoCreate(1,entity():pos()+vec(0,10,50),vec(0.3),ang(0),vec(0,0,255),("icosphere3"))
B = holoCreate(2,entity():pos()+vec(0,0,50),vec(0.3),ang(0),vec(255,255,255),("icosphere3"))
C = holoCreate(3,entity():pos()+vec(0,-10,50),vec(0.3),ang(0),vec(255,0,0),("icosphere3"))

A:setTrails(20,20,2,"trails/laser",vec(0,255,255),255)
B:setTrails(20,20,2,"trails/laser",vec(255,255,255),255)
C:setTrails(20,20,2,"trails/laser",vec(255,0,0),255)
D = 10
}

S = owner():lastSaid():explode(" ")

if(S:string(1)=="/boule"){

hideChat(1)
TempPlayer = findPlayerByName(S:string(2))
if(TempPlayer:isPlayer()){
Player = TempPlayer
hideChat(1)
}
}
F+= 10
holoPos(1,holoEntity(2):pos()+vec(cos(F)*D,sin(F)*D,0))
holoPos(2,Player:pos()+vec(0,0,90))
holoPos(3,holoEntity(2):pos()+vec(cos(F)*-D,sin(F)*-D,0))

if(Player:keyPressed("r")){
holoPos(1,Player:aimPos()+vec(0,10,50):rotate(ang(0,Player:angles():yaw()+25,0)))
holoPos(2,Player:aimPos()+vec(0,0,50):rotate(ang(0,Player:angles():yaw()+25,0)))
holoPos(3,Player:aimPos()+vec(0,-10,50):rotate(ang(0,Player:angles():yaw()+25,0)))

P = propSpawn("models/props_c17/oildrum001_explosive.mdl",holoEntity(1):pos(),1)
P:propBreak()
}
if(Player:keyDuck()){
holoPos(1,Player:pos()+vec(0,10,90):rotate(ang(0,Player:angles():yaw()+25,0)))
holoPos(2,Player:pos()+vec(0,0,80):rotate(ang(0,Player:angles():yaw()+25,0)))
holoPos(3,Player:pos()+vec(0,-10,90):rotate(ang(0,Player:angles():yaw()+25,0)))
}

if(Player:keyForward()){
holoPos(1,Player:pos()+vec(0,10,90):rotate(ang(0,Player:angles():yaw()+25,0)))
holoPos(2,Player:pos()+vec(10,0,90):rotate(ang(0,Player:angles():yaw()+25,0)))
holoPos(3,Player:pos()+vec(0,-10,90):rotate(ang(0,Player:angles():yaw()+25,0)))
}

if(Player:keyBack()){
holoPos(1,Player:pos()+vec(0,10,90):rotate(ang(0,Player:angles():yaw()+25,0)))
holoPos(2,Player:pos()+vec(-10,0,90):rotate(ang(0,Player:angles():yaw()+25,0)))
holoPos(3,Player:pos()+vec(0,-10,90):rotate(ang(0,Player:angles():yaw()+25,0)))
}

if(Player:keyLeft()){
holoPos(1,Player:pos()+vec(0,10,90):rotate(ang(0,Player:angles():yaw()+25,0)))
holoPos(2,Player:pos()+vec(-10,0,90):rotate(ang(0,Player:angles():yaw()+25,0)))
holoPos(3,Player:pos()+vec(10,0,90):rotate(ang(0,Player:angles():yaw()+25,0)))
}

if(Player:keyRight()){
holoPos(1,Player:pos()+vec(0,-10,90):rotate(ang(0,Player:angles():yaw()+25,0)))
holoPos(2,Player:pos()+vec(-10,0,90):rotate(ang(0,Player:angles():yaw()+25,0)))
holoPos(3,Player:pos()+vec(10,0,90):rotate(ang(0,Player:angles():yaw()+25,0)))}
Holo Follower '()'
Originally posted by Shisui '()':
@name Holo Follower by Shisui '()'
@inputs
@outputs
@persist Player:entity Anim Vitesse DistArret VarDistAnim
@trigger
if(first()){
holoCreate(1)
holoModel(1,"models/gman_high.mdl")
runOnTick(1)
Vitesse = 2.5
DistArret = 50
VarDistAnim = 2
Player = owner()
}
Ang = (Player:pos() - holoEntity(1):pos()):toAngle()
Dist = (Player:pos():distance(holoEntity(1):pos()))
FDist = floor(Dist - DistArret)
if(FDist > VarDistAnim){
X = Vitesse
}
elseif(FDist < VarDistAnim){
X = 0
}
if(FDist < VarDistAnim*2){
Anim = 0
}
elseif(FDist > VarDistAnim){
Anim = 1
}
if(changed(Anim)){
if(Anim){
holoAnim(1,"run_all")
}
else{
holoAnim(1,"lineidle03")
}
if(owner():keyDuck()){
holoAnim(1,"walk_all")
Vitesse = 0.8
}
else{
Vitesse = 2.5
}
}
holoAng(1,(Ang))
holoPos(1,holoEntity(1):toWorld(vec(X,0,0)))

if(owner():lastSaid() == "die !"){
holoAnim(1,"injured3")
Vitesse = 0
holoAng(1,ang(0))
}
elseif(owner():lastSaid() == "come back !"){
holoAng(1,(Ang))
if(changed(Anim)){
if(Anim){
holoAnim(1,"run_all")
}
else{
holoAnim(1,"lineidle03")
}
if(owner():keyDuck()){
holoAnim(1,"walk_all")
Vitesse = 0.8
}
else{
Vitesse = 2.5
}
}
}
#that's made by Anthoxx and I have modified it*
Exoplanets 1.1 '()'
Originally posted by Shisui '()':
@name Exoplanets 1.1 by Shisui '()'
@inputs
@outputs
@persist Ang AngB A B
@trigger
interval(100)
if(first()){
holoCreate(1,entity():pos()+vec(0,0,70),vec(5),ang(0),vec(0,0,255),"hqsphere")
holoMaterial(1,"models/props_c17/furniturefabric001a")
holoCreate(2,entity():pos()+vec(0,0,70),vec(3),ang(0),vec(255),"hqsphere")
holoMaterial(2,"sprops/textures/sprops_wood3")
holoCreate(3,entity():pos()+vec(0,0,70),vec(5.2),ang(0),vec(0,0,255),"hqsphere")
holoMaterial(3,"models/props_combine/portalball001_sheet")
holoAlpha(3,255)
P = propSpawn("models/hunter/misc/sphere175x175.mdl",holoEntity(1):pos(),1)
P:propDraw(0)
Ang = 1
AngB = 1
B = 120
}
Ang += 8
AngB += 2
A += 7
holoAng(1,ang(AngB,AngB,AngB))
holoAng(2,ang(Ang,Ang,AngB))
holoAng(3,ang(AngB,AngB,AngB))

holoPos(2,entity():pos()+vec(cos(A)*B,sin(A)*B,70))
Radar 0.3 version '()'


Originally posted by Yuu-Chan:
@name Radar 0.3 version'()'
@inputs
@outputs
@persist Anv A B
@trigger
interval(1)
entity():setAlpha(0)
if(first()){
Anv = 1
B = 2
}
foreach(K,V:entity = players()){

Entity = V
Pos = Entity:pos()
MiniPos = entity():pos() + Pos / 150 + vec(0,0,100)
Pos = Entity:pos()
Ang = Entity:angles()
MiniPos2 = entity():pos() + Pos / 150 + vec(0,0,115)
holoCreate(K+1,MiniPos,vec(0.15),ang(0,0,0),vec(255),"models/gman_high.mdl")
#holoColor(P+1,teamColor(Entity:team()))
holoAnim(K+1,"lineidle03")
holoAng(K+1,Ang)
holoDisableShading(K+1,1)
if(Entity:keyForward()){
holoAnim(K+1,"walk_all")
}
if(Entity:keyBack()){
holoAnim(K+1,"walk_all")
}
if(Entity:keyLeft()){
holoAnim(K+1,"walk_all")
}
if(Entity:keyRight()){
holoAnim(K+1,"walk_all")
}
if(Entity:keyDuck()){
holoAnim(K+1,"crouchidle_panicked4")
}
if(Entity:keyDuck() && Entity:keyForward()){
holoAnim(K+1,"crouch_walk_all")
}
if(Entity:keyDuck() && Entity:keyBack()){
holoAnim(K+1,"crouch_walk_all")
}
if(Entity:keyDuck() && Entity:keyLeft()){
holoAnim(K+1,"crouch_walk_all")
}
if(Entity:keyDuck() && Entity:keyRight()){
holoAnim(K+1,"crouch_walk_all")
}
holoCreate(K+5,MiniPos2,vec(0.16),Ang,vec(255),"hqsphere")
holoColor(K+5,teamColor(Entity:team()))
holoDisableShading(K+5,1)
if(Entity == owner()){
Anv +=2
A += 3
holoCreate(K+9,MiniPos2+vec(0,0,3),vec(0.2),ang(0,Anv,180),teamColor(Entity:team()),"models/sprops/misc/alphanum/alphanum_arrow_b.mdl")
holoDelete(K+5)
holoPos(K+9,holoEntity(K+9):pos()+vec(0,0,cos(A)*B))
}

#Thx Neko-Sama
}
RoboX 0.3 version '()'


Originally posted by Yuu-Chan '()':
@name RoboX 0.3 version '()'
@inputs
@outputs
@persist Ang AngS
@trigger
runOnTick(1)
if(first()){
holoCreate(1,entity():pos()+vec(0,0,50),vec(1))
holoCreate(2,entity():pos()+vec(0,0,50),vec(0.3))
holoCreate(3,entity():pos()+vec(0,0,50),vec(0.3))
holoCreate(4,entity():pos()+vec(0,0,70),vec(0.7))
holoCreate(5,entity():pos()+vec(0,0,55),vec(0.2))
holoCreate(6,entity():pos()+vec(0,0,55),vec(0.2))
holoCreate(7,entity():pos()+vec(0,0,55),vec(0.4))
holoCreate(8,entity():pos()+vec(0,0,55),vec(0.3))
holoCreate(9,entity():pos()+vec(0,0,55),vec(0.4))
holoCreate(10,entity():pos()+vec(0,0,55),vec(0.4))
holoCreate(11,entity():pos()+vec(0,0,55),vec(0.7))
holoCreate(12,entity():pos()+vec(0,0,55),vec(0.7))
holoCreate(13,entity():pos()+vec(0,0,55),vec(0.7))
holoCreate(14,entity():pos()+vec(0,0,55),vec(0.7))
holoCreate(15,entity():pos()+vec(0,0,55),vec(0.7))
holoCreate(16,entity():pos()+vec(0,0,55),vec(0.5))
holoCreate(17,entity():pos()+vec(0,0,55),vec(0.5))

holoModel(1,"models/hunter/blocks/cube05x05x05.mdl")
holoModel(2,"models/Mechanics/wheels/wheel_extruded_48.mdl")
holoModel(3,"models/Mechanics/wheels/wheel_extruded_48.mdl")
holoModel(4,"models/props_phx/wheels/wooden_wheel1.mdl")
holoModel(5,"models/xeon133/offroad/off-road-20.mdl")
holoModel(6,"models/xeon133/offroad/off-road-20.mdl")
holoModel(8,"models/props_phx/gears/rack9.mdl")
holoModel(9,"models/mechanics/solid_steel/type_d_3_4.mdl")
holoModel(10,"models/mechanics/solid_steel/type_d_3_4.mdl")
holoModel(11,"models/mechanics/solid_steel/type_c_3_4.mdl")
holoModel(12,"models/mechanics/solid_steel/type_c_3_4.mdl")
holoModel(13,"models/props_canal/mattpipe.mdl")
holoModel(14,"models/props_junk/sawblade001a.mdl")
holoModel(15,"models/props_junk/sawblade001a.mdl")
holoModel(16,"models/xeon133/racewheel/race-wheel-30.mdl")
holoModel(17,"models/xeon133/racewheel/race-wheel-30.mdl")

holoMaterial(1,"WTP/carbonfibre_1")
holoMaterial(4,"WTP/carbonfibre_2")
holoMaterial(7,"WTP/carbonfibre_1")
holoMaterial(9,"WTP/carbonfibre_2")
holoMaterial(10,"WTP/carbonfibre_2")
holoMaterial(11,"WTP/carbonfibre_2")
holoMaterial(12,"WTP/carbonfibre_2")
holoMaterial(13,"WTP/carbonfibre_2")
holoMaterial(14,"WTP/carbonfibre_2")
holoMaterial(15,"WTP/carbonfibre_2")

lightCreate(20,holoEntity(1):pos(),vec(255,255,0),20,50)

Ang = 1
AngS = 1
}
Ang += 1
AngS += 10*10
holoPos(2,holoEntity(1):pos()+vec(14,0,0))
holoPos(3,holoEntity(1):pos()+vec(-14,0,0))
holoPos(5,holoEntity(1):pos()+vec(5,12.5,4))
holoPos(6,holoEntity(1):pos()+vec(-5,12.5,4))
holoPos(7,holoEntity(1):pos()+vec(0,12.5,-1.5))
holoPos(8,holoEntity(1):pos()+vec(0,12.5,-7))
holoPos(9,holoEntity(1):pos()+vec(17,16,-7))
holoPos(10,holoEntity(1):pos()+vec(-17,16,-7))
holoPos(11,holoEntity(1):pos()+vec(-17,6,-23))
holoPos(12,holoEntity(1):pos()+vec(17,6,-23))
holoPos(13,holoEntity(1):pos()+vec(-0,-0,15))
holoPos(14,holoEntity(1):pos()+vec(-0.3,0,17.5))
holoPos(15,holoEntity(1):pos()+vec(-0.3,0,14.5))
holoPos(16,holoEntity(1):pos()+vec(16,12,-43.5))
holoPos(17,holoEntity(1):pos()+vec(-18,12,-43.5))

holoAng(2,ang(90,0,0))
holoAng(3,ang(-90,0,0))
holoAng(4,ang(0,Ang,0))
holoAng(5,ang(0,90,0))
holoAng(6,ang(0,90,0))
holoAng(8,ang(90,90,0))
holoAng(9,ang(90,0,0))
holoAng(10,ang(90,0,0))
holoAng(11,ang(120,90,90))
holoAng(12,ang(120,90,90))
holoAng(13,ang(0,Ang,0))
holoAng(14,ang(0,0,0))
holoAng(15,ang(0,0,0))
holoAng(16,ang(0,90,0))
holoAng(17,ang(0,90,0))

if(owner():keyPressed("r")){

lightCreate(20,holoEntity(1):pos(),vec(160,0,149),20,50)

holoAng(2,ang(AngS,90,90))
holoAng(3,ang(AngS,-90,90))

holoAng(5,ang(0,90,Ang))
holoAng(6,ang(0,90,Ang))

holoAng(14,ang(0,AngS,0))
holoAng(15,ang(0,AngS,0))

holoAng(16,ang(AngS,90,0))
holoAng(17,ang(AngS,90,0))
}
else{
lightCreate(20,holoEntity(1):pos(),vec(255,255,0),20,50)
}
#If you press r the light change to another color :p
Naruto's Balls 0.3

Originally posted by Yuu-Chan:
@name Naruto's Balls 0.3 version
@inputs
@outputs
@persist
@trigger
runOnTick(1)
if(first()){
holoCreate(1,entity():pos()+vec(0,0,33),vec(-0.5),ang(0),vec(50,0,50),"hqsphere")
holoCreate(2,entity():pos()+vec(0,0,33),vec(-0.52 ),ang(0),vec(100,0,100),"hqsphere")
holoCreate(3,entity():pos()+vec(0,0,73),vec(-0.5),ang(0),vec(50,0,50),"hqsphere")
holoCreate(4,entity():pos()+vec(0,0,73),vec(-0.52 ),ang(0),vec(100,0,100),"hqsphere")
holoCreate(5,entity():pos()+vec(20,0,53),vec(-0.5),ang(0),vec(50,0,50),"hqsphere")
holoCreate(6,entity():pos()+vec(20,0,53),vec(-0.52 ),ang(0),vec(100,0,100),"hqsphere")
holoCreate(7,entity():pos()+vec(-20,0,53),vec(-0.5),ang(0),vec(50,0,50),"hqsphere")
holoCreate(8,entity():pos()+vec(-20,0,53),vec(-0.52 ),ang(0),vec(100,0,100),"hqsphere")
holoCreate(9,entity():pos()+vec(-12,0,40),vec(-0.5),ang(0),vec(50,0,50),"hqsphere")
holoCreate(10,entity():pos()+vec(-12,0,40),vec(-0.52 ),ang(0),vec(100,0,100),"hqsphere")
holoCreate(11,entity():pos()+vec(-12,0,66),vec(-0.5),ang(0),vec(50,0,50),"hqsphere")
holoCreate(12,entity():pos()+vec(-12,0,66),vec(-0.52 ),ang(0),vec(100,0,100),"hqsphere")
holoCreate(13,entity():pos()+vec(12,0,66),vec(-0.5),ang(0),vec(50,0,50),"hqsphere")
holoCreate(14,entity():pos()+vec(12,0,66),vec(-0.52 ),ang(0),vec(100,0,100),"hqsphere")
holoCreate(15,entity():pos()+vec(12,0,40),vec(-0.5),ang(0),vec(50,0,50),"hqsphere")
holoCreate(16,entity():pos()+vec(12,0,40),vec(-0.52 ),ang(0),vec(100,0,100),"hqsphere")

holoDisableShading(2,1)
holoDisableShading(4,1)
holoDisableShading(6,1)
holoDisableShading(8,1)
holoDisableShading(10,1)
holoDisableShading(12,1)
holoDisableShading(14,1)
holoDisableShading(16,1)

}
holoPos(1,owner():pos()+vec(0,-20,33):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(2,owner():pos()+vec(0,-20,33):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(3,owner():pos()+vec(0,-20,73):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(4,owner():pos()+vec(0,-20,73):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(5,owner():pos()+vec(20,-20,53):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(6,owner():pos()+vec(20,-20,53):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(7,owner():pos()+vec(-20,-20,53):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(8,owner():pos()+vec(-20,-20,53):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(9,owner():pos()+vec(-12,-20,40):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(10,owner():pos()+vec(-12,-20,40):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(11,owner():pos()+vec(-12,-20,66):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(12,owner():pos()+vec(-12,-20,66):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(13,owner():pos()+vec(12,-20,66):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(14,owner():pos()+vec(12,-20,66):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(15,owner():pos()+vec(12,-20,40):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(16,owner():pos()+vec(12,-20,40):rotate(ang(0,owner():angles():yaw()+-90,0)))

if(owner():keyPressed("e")){

holoPos(3,owner():aimPos()+vec(0,0,50):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(4,owner():aimPos()+vec(0,0,50):rotate(ang(0,owner():angles():yaw()+-90,0)))

}

if(owner():keyPressed("r")){

holoPos(1,owner():aimPos()+vec(0,-20,33):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(2,owner():aimPos()+vec(0,-20,33):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(3,owner():aimPos()+vec(0,-20,73):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(4,owner():aimPos()+vec(0,-20,73):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(5,owner():aimPos()+vec(20,-20,53):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(6,owner():aimPos()+vec(20,-20,53):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(7,owner():aimPos()+vec(-20,-20,53):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(8,owner():aimPos()+vec(-20,-20,53):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(9,owner():aimPos()+vec(-12,-20,40):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(10,owner():aimPos()+vec(-12,-20,40):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(11,owner():aimPos()+vec(-12,-20,66):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(12,owner():aimPos()+vec(-12,-20,66):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(13,owner():aimPos()+vec(12,-20,66):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(14,owner():aimPos()+vec(12,-20,66):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(15,owner():aimPos()+vec(12,-20,40):rotate(ang(0,owner():angles():yaw()+-90,0)))
holoPos(16,owner():aimPos()+vec(12,-20,40):rotate(ang(0,owner():angles():yaw()+-90,0)))
}

lightCreate(20,holoEntity(2):pos(),vec(160,0,149),5,5)
lightCreate(20,holoEntity(4):pos(),vec(160,0,149),5,5)
lightCreate(20,holoEntity(6):pos(),vec(160,0,149),5,5)
lightCreate(20,holoEntity(8):pos(),vec(160,0,149),5,5)
lightCreate(20,holoEntity(10):pos(),vec(160,0,149),5,5)
lightCreate(20,holoEntity(12):pos(),vec(160,0,149),5,5)
lightCreate(20,holoEntity(14):pos(),vec(160,0,149),5,5)
lightCreate(20,holoEntity(16):pos(),vec(160,0,149),5,5)
X-Cube 1.0

Originally posted by Yuu-Chan:

@name X-Cube by Yuu-Chan
@inputs
@outputs
@persist Ang
@trigger
@model models/hunter/blocks/cube025x025x025.mdl
E = entity()
O = owner()
runOnTick(1)
if(first()){
Ang = 1
E:setTrails(20,20,1,"trails/laser",vec(255,0,255),255)
}

if(owner():keyPressed("z")){
E:setPos(E:toWorld(vec(0,10,0)))
}

if(owner():keyPressed("q") && owner():keyPressed("z")){
Ang += 1
E:setAng(ang(0,Ang,0))
E:setPos(E:toWorld(vec(0,5,0)))
}

if(owner():keyPressed("d") && owner():keyPressed("z")){
Ang += -1
E:setAng(ang(0,Ang,0))
E:setPos(E:toWorld(vec(0,5,0)))
}

if(owner():keyPressed("q")){
Ang += 1.5
E:setAng(ang(0,Ang,0))
}

if(owner():keyPressed("d")){
Ang += -1.5
E:setAng(ang(0,Ang,0))
}


if(owner():keyPressed("s")){
E:setPos(E:toWorld(vec(0,-10,0)))
}


if(owner():keyJump()){
E:setPos(E:toWorld(vec(0,0,10)))
}

if(owner():keyJump() && owner():keyPressed("z")){
E:setPos(E:toWorld(vec(0,5,10)))
}

if(owner():keyJump() && owner():keyPressed("s")){
E:setPos(E:toWorld(vec(0,-5,10)))
}

if(owner():keySprint()){
E:setPos(E:toWorld(vec(0,0,-10)))
}


if(owner():keySprint() && owner():keyPressed("z")){
E:setPos(E:toWorld(vec(0,5,-10)))
}

if(owner():keySprint() && owner():keyPressed("s")){
E:setPos(E:toWorld(vec(0,-5,-10)))
}


if(owner():keyWalk() && owner():keyPressed("z")){
E:setPos(E:toWorld(vec(0,20,0)))
}

if(owner():keyPressed("q") && owner():keyWalk() && owner():keyPressed("z")){
Ang += 0.01
E:setAng(ang(0,Ang,0))
E:setPos(E:toWorld(vec(0,15,0)))
}

if(owner():keyPressed("d") && owner():keyWalk() && owner():keyPressed("z")){
Ang += -0.01
E:setAng(ang(0,Ang,0))
E:setPos(E:toWorld(vec(0,15,0)))
}


if(owner():keyWalk() && owner():keyPressed("z") && owner():keyJump()){
E:setPos(E:toWorld(vec(0,10,20)))
}

if(owner():keyWalk() && owner():keyPressed("z") && owner():keySprint()){
E:setPos(E:toWorld(vec(0,10,-20)))
}
#it's for Max ;p this is just a cube but it's nice
#That work with a specific angle press alt + e to sit on Z = forward Q = left S = back D = right :p
Atome (Hydrogène) 1.0
Originally posted by Yuu-Chan:
@name Hydrogene
@inputs
@outputs
@persist A B
@trigger
runOnTick(1)
if(first()){
holoCreate(1,entity():pos()+vec(0,0,45),vec(0.4),ang(0),vec(200,0,0),"hqsphere")
D = holoCreate(2,entity():pos()+vec(0,0,45),vec(0.2),ang(0),vec(0,0,200),"hqsphere")
D:setTrails(5,5,1,"trails/laser",vec(0,0,255),255)
B = 60
}
A += 5
holoPos(2,holoEntity(1):pos()+vec(cos(A)*B,sin(A)*B,0))





Atome Litium 1.0
Originally posted by Yuu-Chan:
@name Atome de litium
@inputs
@outputs
@persist A B
@trigger
runOnTick(1)
if(first()){
holoCreate(1,entity():pos()+vec(2,0,60),vec(0.3),ang(0),vec(255,0,0),"hq_sphere")
holoCreate(2,entity():pos()+vec(0,-2,60),vec(0.3),ang(0),vec(255,0,0),"hq_sphere")
holoCreate(3,entity():pos()+vec(0,2,60),vec(0.3),ang(0),vec(255,0,0),"hq_sphere")

holoCreate(4,entity():pos()+vec(-2,0,60),vec(0.3),ang(0),vec(0,0,255),"hq_sphere")
holoCreate(5,entity():pos()+vec(0,0,58),vec(0.3),ang(0),vec(0,0,255),"hq_sphere")
holoCreate(6,entity():pos()+vec(0,0,62),vec(0.3),ang(0),vec(0,0,255),"hq_sphere")

D = holoCreate(7,entity():pos()+vec(0,0,85),vec(0.150),ang(0),vec(0,0,255),"hq_sphere")
F = holoCreate(8,entity():pos()+vec(0,0,60),vec(0.150),ang(0),vec(0,0,255),"hq_sphere")
G = holoCreate(9,entity():pos()+vec(0,0,60),vec(0.150),ang(0),vec(0,0,255),"hq_sphere")

D:setTrails(8,8,1,"trails/laser",vec(0,0,255),255)
F:setTrails(8,8,1,"trails/laser",vec(0,0,255),255)
G:setTrails(8,8,1,"trails/laser",vec(0,0,255),255)

B = 30
}
A += 8
holoPos(7,holoEntity(2):pos()+vec(0,cos(A)*B,sin(A)*B))
holoPos(8,holoEntity(2):pos()+vec(-cos(A)*B,sin(A)*B,cos(A)*B))
holoPos(9,holoEntity(2):pos()+vec(cos(A)*B,sin(A)*B,cos(A)*B))
20 Comments
kasqsp 14 Aug, 2022 @ 7:14am 
ieiieieieie
Dominus Magicae 4 Jun, 2020 @ 8:18pm 
how do I get the lightCreate addon for wire?
ScrepTure 18 Apr, 2020 @ 6:41pm 
what addon was the lightCreate function in?
Gondwa 20 Mar, 2020 @ 1:00pm 
hi how did you find the animation list for models
Umbral Whythsp 8 Mar, 2019 @ 8:06pm 
People keep making these bubble shield things and i want to make one. but nobody is willing to help me.
Puncake 8 Feb, 2019 @ 11:47am 
it says no such function holoAnim(number,string) at line 32, char 1 on the holo follower
0uassim  [author] 18 Jan, 2019 @ 3:06am 
In a lot of servers the function doesn't work , administrator ban it cause it can cause a lot of damage; you can kill a lot of player easily, it's overpowered.
IDPixel_RUS 12 Jan, 2019 @ 7:40pm 
Why no such function: propSpawn?
0uassim  [author] 23 Jan, 2018 @ 11:15am 
alt + e :)
Sporey 20 Jan, 2018 @ 12:59pm 
how the fuck do you ride the x cube