Garry's Mod

Expression 2 Code: Tesla

Submitted by that1nub, , Thread ID: 59394

Thread Closed
that1nub
Junior Member
Level:
0
Reputation:
0
Posts:
73
Likes:
1
Credits:
21
08-11-2017, 09:52 AM
#1
I have made this code a while ago. The only thing it should need is prop core enabled. Please enjoy this one. If you want me to make a custom e2 for you or share some code, just post a comment below!

Code:
@name Nubs Tesla
@persist Num T:entity Can

# Customizing options #
Secondary = vec(255)
Orbs = vec(0,150,255)
Range = 200
# DO NOT CHANGE BELOW THIS #

interval(1)

function holo(Mod:string,Mat:string,Alph:number,Scl:vector,Col:vector,Pos:vector,Ang:angle){
  Num++
  holoCreate(Num)
  holoModel(Num,Mod)
  holoMaterial(Num,Mat)
  holoAlpha(Num,Alph)
  holoScale(Num,Scl)
  holoColor(Num,Col)
  holoPos(Num,entity():toWorld(Pos))
  holoAng(Num,entity():toWorld(Ang))
  holoParent(Num,entity())  
}
if(first()|duped()){Can = 1}
findExcludePlayer(owner())
findExcludeEntities(owner():steamFriends())
findExcludePlayer("sick")
if(first()|duped()){
  propSpawnUndo(0)
  holo("models/holograms/hq_cubinder.mdl","models/shiny",255,vec(2),vec(50),vec(0,0,10),ang(0))
  holo("","models/shiny",255,vec(2),vec(50),vec(0,15,7.25),ang(0,0,-15))
  holo("","models/shiny",255,vec(2),vec(50),vec(0,-15,7.25),ang(0,0,15))  
  holo("","models/shiny",255,vec(2),vec(50),vec(15,0,7.25),ang(15,0,0))  
  holo("","models/shiny",255,vec(2),vec(50),vec(-15,0,7.25),ang(-15,0,0))
  holo("models/holograms/hq_cubinder.mdl","models/shiny",255,vec(2.05,2.05,1.5),Secondary,vec(0,0,29),ang(0))
  holo("models/holograms/hq_cylinder.mdl","models/shiny",50,vec(2.05),vec(50),vec(0,0,50),ang(0))
  holo("models/holograms/icosphere2.mdl","models/shiny",255,vec(1.5),Orbs,vec(0,0,50),ang(0))
  holo("models/holograms/hq_cylinder.mdl","models/shiny",255,vec(2.05),vec(50),vec(0,0,73),ang(0))
  holo("models/holograms/hq_torus_thin.mdl","models/shiny",255,vec(2.5),Secondary,vec(0,0,67.5),ang(0))
  holo("models/holograms/hq_torus_thin.mdl","models/shiny",255,vec(2.5),vec(50),vec(0,0,70),ang(0))
  holo("models/holograms/hq_torus_thin.mdl","models/shiny",255,vec(2.5),Secondary,vec(0,0,72.5),ang(0))
  holo("models/holograms/hq_torus_thin.mdl","models/shiny",255,vec(2.5),vec(50),vec(0,0,75),ang(0))
  holo("models/holograms/hq_torus_thin.mdl","models/shiny",255,vec(2.5),Secondary,vec(0,0,77.5),ang(0))
  holo("models/holograms/hq_torus_thin.mdl","models/shiny",255,vec(2.5),vec(50),vec(0,0,80),ang(0))
  holo("models/holograms/hq_torus_thin.mdl","models/shiny",255,vec(2.5),Secondary,vec(0,0,82.5),ang(0))
  holo("models/holograms/icosphere2.mdl","models/shiny",255,vec(1.5),vec(255,50,0),vec(0,0,95),ang(0))
  holo("models/holograms/hq_torus_thin.mdl","models/shiny",255,vec(2.5),Secondary,vec(0,0,95),ang(0))  
  holo("models/holograms/hq_torus_thin.mdl","models/shiny",255,vec(2.5),Secondary,vec(0,0,95),ang(0,0,90))  
  holo("models/holograms/hq_torus_thin.mdl","models/shiny",255,vec(2.5),Secondary,vec(0,0,95),ang(0,90,90))  
}
if(Can == 1){
  holoColor(17,vec(127,255,127))
  if(findCanQuery()) {
    findIncludeClass("player")
    findInSphere(entity():pos()+vec(0,0,95),Range)
    if(findToArray():count() > 0) {
      T = findClosest(entity():pos())
      propSpawn("models/props_c17/oildrum001_explosive.mdl",T:shootPos(),1):propBreak()
      timer("can",3000)
      Can = 0
    }
  }
}
else{holoColor(17,vec(255,50,0))}
if(clk("can")){
  Can = 1  
}
holoAng(8,ang(curtime()*100))
holoAng(17,ang(curtime()*125))
I mainly play Garry's Mod. I specializein creating expression 2s. If you would like a code, please comment on my thread or PM me!

RE: Expression 2 Code: Tesla

Epilepsys1955
Novice
Level:
0
Reputation:
0
Posts:
28
Likes:
5
Credits:
256
09-11-2017, 12:29 AM
#2
hello, can you code me an expression 2? because I do not know how to code myself?

RE: Expression 2 Code: Tesla

that1nub
Junior Member
Level:
0
Reputation:
0
Posts:
73
Likes:
1
Credits:
21
OP
09-11-2017, 12:55 AM
#3
Sure, just note that I'm not good with vehicles or weapons!
I mainly play Garry's Mod. I specializein creating expression 2s. If you would like a code, please comment on my thread or PM me!

RE: Expression 2 Code: Tesla

Norros.
Junior Member
Level:
0
Reputation:
0
Posts:
62
Likes:
0
Credits:
41
09-11-2017, 05:17 PM
#4
I have 1500 hours of gmod and I don't fucking know how to mess with e2

RE: Expression 2 Code: Tesla

Devril
Junior Member
Level:
0
Reputation:
0
Posts:
51
Likes:
1
Credits:
0
12-11-2017, 03:13 PM
#5
I have 600 hours of gmod and I love wiremod and i can write e2. Just read some e2 codes.

Users browsing this thread: 1 Guest(s)