So I made a replica of a Portal turret using Expression 2's holograms. And this is what I came up with.
[img]http://dl.dropbox.com/u/27584509/testchmb_a_14_advanced0062.jpg[/img]
[img]http://dl.dropbox.com/u/27584509/testchmb_a_14_advanced0063.jpg[/img]
Now it's available to you, enjoy. Instructions on setting it up for shooting are in the E2 code it's self.
[code]
@name Portal Turret
@inputs [LTurret RTurret]:wirelink
@outputs Local:vector
@persist Over Dist C2 Zv Speed Scale Open Move Extra [AimAng Pitch]:angle Cos T:table Number
@persist [B H O E Tmp LT RT]:entity [Angle Ang]:angle [Cut Holoscale Tcol]:vector Active
@model models/hunter/blocks/cube05x1x025.mdl
## Portal Turret Replica by OmicroN ##
### You can enable/disable the turret by pressing your Use key on it ###
## To use the turrets, wire each Wirelink to a wire turret and reload the chip ##
## I suggest that you nocollide all the turret before hand as well, or else it will collide ##
if(first() | duped()){
runOnTick(1)
E = entity()
E:setMass(251)
LT = LTurret:entity()
RT = RTurret:entity()
LT:setAlpha(0)
RT:setAlpha(0)
Scale = 0.7
Cut = vec(0,5+1.5,0)*Scale
Speed = 6
Ang = Angle = ang(0,0,90)
Off = 0.2*Scale , Hole = 9.25
T["clip1a",array] = array(vec(0,Off,0),vec(0,0,Off),vec(0,0,-Hole)*Scale,Cut)
T["clip1b",array] = array(vec(0,1,0),vec(0,0,1),vec(-1,1,1),vec(0,-1,0))
T["clip2a",array] = array(vec(0,-Off,0),vec(0,0,-Off),vec(0,0,Hole)*Scale,-Cut)
T["clip2b",array] = array(vec(0,-1,0),vec(0,0,-1),vec(-1,-1,-1),vec(0,1,0))
T["clip3a",array] = array(vec(0,-Off,0),vec(0,0,Off),vec(0,0,-Hole)*Scale,-Cut)
T["clip3b",array] = array(vec(0,-1,0),vec(0,0,1),vec(-1,-1,1),vec(0,1,0))
T["clip4a",array] = array(vec(0,Off,0),vec(0,0,-Off),vec(0,0,Hole)*Scale,Cut)
T["clip4b",array] = array(vec(0,1,0),vec(0,0,-1),vec(-1,1,-1),vec(0,-1,0))
Holoscale = vec(28,20,60)*Scale
N = 0
for(I=1,4){
holoCreate(I,E:pos(),Holoscale/12,E:toWorld(Ang))
if(I==1|I==3){
N++
holoCreate(4+N,E:pos(),Holoscale/12,E:toWorld(Ang))
holoModel(4+N,"hq_sphere")
#holoParent(4+N,1)
holoCreate(6+N,E:pos(),-Holoscale/12,E:toWorld(Ang),vec()+70)
holoModel(6+N,"hq_sphere")
holoParent(6+N,4+N)
}
for(I2=1,4){
holoClipEnabled(I,I2,1)
holoClip(I,I2,T["clip"+I+"a",array][I2,vector],T["clip"+I+"b",array][I2,vector],0)
}
holoModel(I,"hq_sphere")
if(I!=1){
holoParent(I,1)
}else{
holoParent(I,E)
}
}
B = holoEntity(1)
holoClipEnabled(3,5,1)
holoClip(3,5,vec(0,0,22)*Scale,vec(0,1.5,-1),0)
holoClipEnabled(1,5,1)
holoClip(1,5,vec(0,0,22)*Scale,vec(0,-1.5,-1),0)
#Bottom Front Clips#
holoClipEnabled(5,1,1)
holoClipEnabled(5,2,1)
holoClipEnabled(5,3,1)
holoClipEnabled(5,4,1)
holoClip(5,1,vec(0,0,22.5)*Scale,vec(0,-1.5,1),0)
holoClip(5,2,vec(0,-0.2,0)*Scale,vec(0,-1,0),0)
holoClip(5,3,-Cut,vec(0,1,0),0)
holoClip(5,4,vec(0.1,0,0),vec(1,0,0),0)
holoClipEnabled(6,1,1)
holoClipEnabled(6,2,1)
holoClipEnabled(6,3,1)
holoClipEnabled(6,4,1)
holoClip(6,1,vec(0,0,22.5)*Scale,vec(0,1.5,1),0)
holoClip(6,2,vec(0,0.2,0)*Scale,vec(0,1,0),0)
holoClip(6,3,Cut,vec(0,-1,0),0)
holoClip(6,4,vec(0.1,0,0),vec(1,0,0),0)
holoClipEnabled(7,1,1)
holoClipEnabled(7,2,1)
holoClipEnabled(7,3,1)
holoClipEnabled(7,4,1)
holoClip(7,1,vec(0,0,22.5)*Scale,vec(0,-1.5,1),0)
holoClip(7,2,vec(0,-0.2,0)*Scale,vec(0,-1,0),0)
holoClip(7,3,-Cut,vec(0,1,0),0)
holoClip(7,4,vec(0.1,0,0),vec(1,0,0),0)
holoClipEnabled(8,1,1)
holoClipEnabled(8,2,1)
holoClipEnabled(8,3,1)
holoClipEnabled(8,4,1)
holoClip(8,1,vec(0,0,22.5)*Scale,vec(0,1.5,1),0)
holoClip(8,2,vec(0,0.2,0)*Scale,vec(0,1,0),0)
holoClip(8,3,Cut,vec(0,-1,0),0)
holoClip(8,4,vec(0.1,0,0),vec(1,0,0),0)
##//Bottom Front Clips\\##
holoCreate(9,E:pos(),(Holoscale-0.15*Scale)/12,E:toWorld(Ang),vec()+70)
holoClipEnabled(9,1,1)
holoClipEnabled(9,2,1)
holoClipEnabled(9,3,1)
holoClipEnabled(9,4,1)
holoClip(9,1,Cut,vec(0,-1,0),0)
holoClip(9,2,-Cut,vec(0,1,0),0)
holoClip(9,3,vec(0,0,22.5)*Scale,vec(0,1.5,-1),0)
holoClip(9,4,vec(0,0,22.5)*Scale,vec(0,-1.5,-1),0)
holoModel(9,"hq_sphere")
holoParent(9,1)
holoCreate(10,E:pos(),-Holoscale/12,E:toWorld(Ang),vec()+70)
holoClipEnabled(10,1,1)
holoClipEnabled(10,2,1)
holoClipEnabled(10,3,1)
holoClipEnabled(10,4,1)
holoClip(10,1,Cut,vec(0,-1,0),0)
holoClip(10,2,-Cut,vec(0,1,0),0)
holoClip(10,3,vec(0,0,22)*Scale,vec(0,1.5,-1),0)
holoClip(10,4,vec(0,0,22)*Scale,vec(0,-1.5,-1),0)
holoModel(10,"hq_sphere")
holoParent(10,1)
Tmpscale = Holoscale - vec(0.1,0,0.1)
holoCreate(11,E:pos(),Tmpscale/12,E:toWorld(Ang))
holoClipEnabled(11,1)
holoClip(11,Cut,vec(0,1,0),0)
holoModel(11,"hq_sphere")
holoCreate(12,E:pos(),-Tmpscale/12,E:toWorld(Ang),vec()+70)
holoClipEnabled(12,1)
holoClip(12,Cut,vec(0,1,0),0)
holoModel(12,"hq_sphere")
holoParent(12,11)
holoCreate(13,E:pos(),Tmpscale/12,E:toWorld(Ang))
holoClipEnabled(13,1)
holoClip(13,-Cut,vec(0,-1,0),0)
holoModel(13,"hq_sphere")
holoCreate(14,E:pos(),-Tmpscale/12,E:toWorld(Ang),vec()+70)
holoClipEnabled(14,1)
holoClip(14,-Cut,vec(0,-1,0),0)
holoModel(14,"hq_sphere")
holoParent(14,13)
for(I=1,14){
if(holoEntity(I):getColor()==vec()+255){
holoMaterial(I,"models/shiny")
}
}
E:setAlpha(0)
E:setMass(250)
H = holoCreate(15,E:pos(),vec(6,6,6)*Scale/12,E:toWorld(Ang))
holoModel(15,"hq_sphere")
holoMaterial(15,"phoenix_storms/black_chrome")
holoParent(15,9)
holoParent(11,15)
holoParent(13,15)
holoCreate(16,E:toWorld(vec(13.45,0,0)*Scale),Scale*vec(5.5,5.5,4)/12,E:toWorld(ang(90,0,0)))
holoModel(16,"hq_torus_thick")
holoColor(16,vec(255,0,0))
holoDisableShading(16,1)
holoMaterial(16,"phoenix_storms/middle")
holoParent(16,9)
holoCreate(17,E:toWorld(vec(13.8,0.2,0)*Scale),Scale*vec(9,9,1)/12,E:toWorld(ang(90,0,0)))
holoAng(17,holoEntity(17):toWorld(ang(0,-90,0)))
holoModel(17,"plane")
holoColor(17,vec(255,0,0))
holoDisableShading(17,1)
holoMaterial(17,"models/roller/rollermine_glow")
holoParent(17,9)
### Turret 1 ####
holoCreate(18,E:toWorld(vec(0,0,4.55)*Scale),Scale*vec(14,14,4.2)/12,E:toWorld(ang(0,0,0)),vec()+120)
holoClipEnabled(18,1)
holoClip(18,vec(6.9,0,0)*Scale,vec(-1,0,0),0)
holoModel(18,"hq_rcube")
holoMaterial(18,"phoenix_storms/mat/mat_phx_carbonfiber")
holoParent(18,11)
holoCreate(19,E:toWorld(vec(0,0,4.55)*Scale),Scale*-vec(14,14,4.2)/12,E:toWorld(ang(0,0,0)),vec()+120)
holoClipEnabled(19,1)
holoClip(19,vec(6.9,0,0)*Scale,vec(-1,0,0),0)
holoModel(19,"hq_rcube")
holoMaterial(19,"models/shiny")
holoParent(19,18)
holoCreate(20,E:toWorld(vec(9.8,0,4.55)*Scale),Scale*-vec(11.2,13.3,4.2)/12,E:toWorld(ang(0,0,0)),vec()+50)
holoClipEnabled(20,1)
holoClip(20,vec(-4,0,0)*Scale,vec(-1,0,0),0)
holoModel(20,"hq_rcube")
holoMaterial(20,"models/shiny")
holoParent(20,18)
holoCreate(21,E:toWorld(vec(5,2,4.55)*Scale),Scale*vec(3,3,6)/12,E:toWorld(ang(90,0,0)))
holoModel(21,"hq_tube_thick")
holoMaterial(21,"phoenix_storms/iron_rails")
holoParent(21,18)
holoCreate(22,E:toWorld(vec(5,-2,4.55)*Scale),Scale*vec(3,3,8)/12,E:toWorld(ang(90,0,0)))
holoModel(22,"hq_tube_thick")
holoMaterial(22,"phoenix_storms/iron_rails")
holoParent(22,18)
### Turret 2 ####
holoCreate(23,E:toWorld(vec(0,0,-4.55)*Scale),Scale*vec(14,14,4.2)/12,E:toWorld(ang(0,0,0)),vec()+120)
holoClipEnabled(23,1)
holoClip(23,vec(6.9,0,0)*Scale,vec(-1,0,0),0)
holoModel(23,"hq_rcube")
holoMaterial(23,"phoenix_storms/mat/mat_phx_carbonfiber")
holoParent(23,13)
holoCreate(24,E:toWorld(vec(0,0,-4.55)*Scale),Scale*-vec(14,14,4.2)/12,E:toWorld(ang(0,0,0)),vec()+120)
holoClipEnabled(24,1)
holoClip(24,vec(6.9,0,0)*Scale,vec(-1,0,0),0)
holoModel(24,"hq_rcube")
holoMaterial(24,"models/shiny")
holoParent(24,23)
holoCreate(25,E:toWorld(vec(9.8,0,-4.55)*Scale),Scale*-vec(11.2,13.3,4.2)/12,E:toWorld(ang(0,0,0)),vec()+50)
holoClipEnabled(25,1)
holoClip(25,vec(-4,0,0)*Scale,vec(-1,0,0),0)
holoModel(25,"hq_rcube")
holoMaterial(25,"models/shiny")
holoParent(25,23)
holoCreate(26,E:toWorld(vec(5,2,-4.55)*Scale),Scale*vec(3,3,6)
Very nice!
I am going to try it out
I was expecting shit but this is really accurate.
well done
Very well done!
i have no idea how to do this stuff, but i have seen enough holo stuff to know that this is quite impressive stuff. i really like the shiny reflections of it. looks like some nice spec map or something.
[QUOTE=oakman26;30650418]Can you post a picture of one next to a real one? You did a damn good job though.[/QUOTE]
[img]http://dl.dropbox.com/u/27584509/testchmb_a_14_advanced0066.jpg[/img]
Also, in case you guys didn't know, my version of the turret actually unfolds from the shell into the standing turret. It's completely animated and fits perfectly when folded. :)
Could we have a video showing how it works?
Mopazodoz said he'd like to help with a video, so when he and I get on at the same time it can be discussed.
WOW! and I say WOW. That is excellent work! Good job! It looks just like a model, amazing job all around.
Thank you very much to all, I appreciate the positive comments. Try using the E2, it can be used in any server with standard up to date wiremod.
Just spawn it, wait for it to say done, and put it upright and hit use on it. If you have portal you'll hear it complain when you hold it, and when you run behind it to avoid the guns. Etc.
This is p. awesome, I can see that you really put effort into this.
Damn Omi, thats epic
Sorry, you need to Log In to post a reply to this thread.