Ich hatte mal ein tag Langeweile in Garrysmod...
und wollte euch mal das halbfertige ergebniss zeigen,
Habe halt ein wenig Mit E2 Holos rumgespielt und Versucht die BassCannon nachzubauen.
Ich werde den Code mal später puplic machen wenn er fertig ist
Ich möchte die vorderen 4 platten noch haben das wenn man Den E2 chip setzt die sich nach aussenbewegen bzw verschieben.
Also Steht mir noch ein wenig E2 Arbeit bevor.
Es stehen bis jetzt 260 zeilen im Expression 2 Chip
So hier ein paar bilder:
Spoiler (Öffnen)
Spoiler (Öffnen)
Spoiler (Öffnen)
Spoiler (Öffnen)
Und wie findet ihrs?
______
Code Ist jetzt öffentlich (sagt aber bitte nicht das ihr das gemacht hättet)
Spoiler (Öffnen)
@name BassCanon
@persist [NormalizedForRightPlate NormalizedForLeftPlate NormalizedForLeftTop NormalizedForRightTop]:vector
@persist [DestinationPointRight DestinationPointLeft DestinationPointRightTop DestinationPointLeftTop]:vector
@persist Timer
runOnTick(1)
interval(1)
if(first()){
entity():soundPlay(1,0,"music/hl2_song20_submix0.mp3")
soundPitch(1,100)
}
if(first()){
entity():soundPlay(2,15,"vehicles/tank_turret_loop1.wav")
soundPitch(2,100)
soundVolume(2,0.1)
}
if(first() || duped()){
hint("Made By xtottix",7)
hint("VinylScratch's BassCannon",7)
}
lightCreate(1)
lightColor(1,vec(0,10,150))
lightPos(1, entity():pos() + vec(0,0,15))
#"body"
holoCreate(1)
holoScale(1,vec(3,3,3))
holoPos(1, entity():pos() + vec(0,0,22))
holoColor(1,vec(20,20,20))
#Wheels
holoCreate(6)
holoPos(6, entity():pos() + vec(-19.5,13,5))
holoModel(6,"hq_cylinder")
holoAng(6,ang(90,0,0))
holoScale(6,vec(0.7,0.7,0.2))
holoColor(6,vec(170,170,170))
holoCreate(7)
holoPos(7, entity():pos() + vec(19.5,13,5))
holoModel(7,"hq_cylinder")
holoAng(7,ang(90,0,0))
holoScale(7,vec(0.7,0.7,0.2))
holoColor(7,vec(170,170,170))
holoCreate(8)
holoPos(8, entity():pos() + vec(19.5,-14,5))
holoModel(8,"hq_cylinder")
holoAng(8,ang(90,0,0))
holoScale(8,vec(0.7,0.7,0.2))
holoColor(8,vec(170,170,170))
holoCreate(9)
holoPos(9, entity():pos() + vec(-19.5,-14,5))
holoModel(9,"hq_cylinder")
holoAng(9,ang(90,0,0))
holoScale(9,vec(0.7,0.7,0.2))
holoColor(9,vec(170,170,170))
#Subwoofer
holoCreate(10)
holoModel(10,"hq_cylinder")
holoPos(10, entity():pos() + vec(0,17,22))
holoAng(10,ang(0,0,90))
holoScale(10,vec(2,2,0.2))
holoColor(10,vec(0,40,100))
holoCreate(11)
holoPos(11, entity():pos() + vec(0,17,22))
holoAng(10,ang(0,0,90))
holoModel(11,"hq_sphere")
holoScale(11,vec(0.5,0.5,0.5))
holoColor(11,vec(100,100,100))
holoCreate(12)
holoModel(12,"hq_cylinder")
holoPos(12, entity():pos() + vec(0,17.7,22))
holoAng(12,ang(0,0,90))
holoScale(12,vec(1.7,1.7,0.1))
holoMaterial(12,"models/shadertest/shader4")
holoColor(12,vec(0,0,170))
#MainBass
holoCreate(13)
holoModel(13,"hq_cylinder")
holoPos(13, entity():pos() + vec(12.5,17,34))
holoAng(13,ang(0,0,90))
holoScale(13,vec(0.4,0.4,0.2))
holoColor(13,vec(0,40,100))
holoCreate(14)
holoModel(14,"hq_cylinder")
holoPos(14, entity():pos() + vec(-12.5,17,34))
holoAng(14,ang(0,0,90))
holoScale(14,vec(0.4,0.4,0.2))
holoColor(14,vec(0,40,100))
holoCreate(15)
holoModel(15,"hq_cylinder")
holoPos(15, entity():pos() + vec(-12.5,17,10))
holoAng(15,ang(0,0,90))
holoScale(15,vec(0.4,0.4,0.2))
holoColor(15,vec(0,40,100))
holoCreate(16)
holoModel(16,"hq_cylinder")
holoPos(16, entity():pos() + vec(12.5,17,10))
holoAng(16,ang(0,0,90))
holoScale(16,vec(0.4,0.4,0.2))
holoColor(16,vec(0,40,100))
#MainBassDeko
holoCreate(17)
holoModel(17,"hq_cylinder")
holoPos(17, entity():pos() + vec(12.5,18,10))
holoAng(17,ang(0,0,90))
holoScale(17,vec(0.3,0.3,0.05))
holoMaterial(17,"models/shadertest/shader4")
holoCreate(18)
holoModel(18,"hq_cylinder")
holoPos(18, entity():pos() + vec(-12.5,18,10))
holoAng(18,ang(0,0,90))
holoScale(18,vec(0.3,0.3,0.05))
holoMaterial(18,"models/shadertest/shader4")
holoCreate(19)
holoModel(19,"hq_cylinder")
holoPos(19, entity():pos() + vec(-12.5,18,34))
holoAng(19,ang(0,0,90))
holoScale(19,vec(0.3,0.3,0.05))
holoMaterial(19,"models/shadertest/shader4")
holoCreate(20)
holoModel(20,"hq_cylinder")
holoPos(20, entity():pos() + vec(12.5,18,34))
holoAng(20,ang(0,0,90))
holoScale(20,vec(0.3,0.3,0.05))
holoMaterial(20,"models/shadertest/shader4")
#Button
if(first()){
holoCreate(33)
holoModel(33,"hq_cylinder")
holoPos(33, entity():pos() + vec(0,-12,42))
holoScale(33,vec(0.3,0.3,0.4))
holoColor(33,vec(250,0,0))
holoCreate(34)
holoModel(34,"hq_sphere")
holoPos(34, entity():pos() + vec(0,-12,39.5))
holoScale(34,vec(0.7,0.7,0.5))
holoColor(34,vec(20,20,20))
NormalizedForLeftTop DestinationPointLeftTop
holoCreate(2)
holoScale(2,vec(1.5,1.5,0.2))
holoAng(2,ang(0,0,90))
holoColor(2,vec(20,20,20))
holoPos(2, entity():pos() + vec(9,19,31))
DestinationPointRightTop = holoEntity(2):boxCenterW() + holoEntity(2):right()*(-18)
holoCreate(3)
holoScale(3,vec(1.5,1.5,0.2))
holoAng(3,ang(0,0,90))
holoPos(3, entity():pos() + vec(-9,19,31))
holoColor(3,vec(20,20,20))
DestinationPointLeftTop = holoEntity(3):boxCenterW() + holoEntity(3):right()*(-18)
holoCreate(4)
holoScale(4,vec(1.5,1.5,0.2))
holoAng(4,ang(0,0,90))
holoPos(4, entity():pos() + vec(-9,19,13))
holoColor(4,vec(20,20,20))
DestinationPointLeft = holoEntity(4):boxCenterW() + holoEntity(4):forward()*(-18)
holoCreate(5)
holoScale(5,vec(1.5,1.5,0.2))
holoAng(5,ang(0,0,90))
holoPos(5, entity():pos() + vec(9,19,13))
holoColor(5,vec(20,20,20))
DestinationPointRight = holoEntity(5):boxCenterW() + holoEntity(5):forward()*(18)
holoCreate(35)
holoScale(35,vec(1,1,0.2))
holoModel(35,"hq_cylinder")
holoPos(35, entity():pos() + vec(-9,19.1,31))
holoAng(35,ang(0,0,90))
holoColor(35,vec(0,40,100))
holoParent(35,2)
holoCreate(36)
holoScale(36,vec(1,1,0.2))
holoModel(36,"hq_cylinder")
holoPos(36, entity():pos() + vec(9,19.1,31))
holoAng(36,ang(0,0,90))
holoColor(36,vec(0,40,100))
holoParent(36,2)
holoCreate(37)
holoScale(37,vec(1,1,0.2))
holoModel(37,"hq_cylinder")
holoPos(37, entity():pos() + vec(9,19.1,13))
holoAng(37,ang(0,0,90))
holoColor(37,vec(0,40,100))
holoParent(37,5)
holoCreate(38)
holoScale(38,vec(1,1,0.2))
holoModel(38,"hq_cylinder")
holoPos(38, entity():pos() + vec(-9,19.1,13))
holoAng(38,ang(0,0,90))
holoColor(38,vec(0,40,100))
holoParent(38,4)
holoCreate(39)
holoScale(39,vec(0.8,0.8,0.2))
holoModel(39,"hq_cylinder")
holoPos(39, entity():pos() + vec(-9,19.2,13))
holoAng(39,ang(0,0,90))
holoParent(39,4)
holoColor(39,vec(10,10,10))
holoCreate(40)
holoScale(40,vec(0.8,0.8,0.2))
holoModel(40,"hq_cylinder")
holoPos(40, entity():pos() + vec(9,19.2,13))
holoAng(40,ang(0,0,90))
holoParent(40,5)
holoColor(40,vec(10,10,10))
holoCreate(41)
holoScale(41,vec(0.8,0.8,0.2))
holoModel(41,"hq_cylinder")
holoPos(41, entity():pos() + vec(9,19.2,31))
holoAng(41,ang(0,0,90))
holoParent(41,2)
holoColor(41,vec(10,10,10))
holoCreate(42)
holoScale(42,vec(0.8,0.8,0.2))
holoModel(42,"hq_cylinder")
holoPos(42, entity():pos() + vec(-9,19.2,31))
holoAng(42,ang(0,0,90))
holoParent(42,2)
holoColor(42,vec(10,10,10))
holoCreate(43)
holoModel(43,"hq_sphere")
holoPos(43, entity():pos() + vec(-9,19.2,31))
holoParent(43,2)
holoScale(43,vec(0.3,0.3,0.3))
holoColor(43,vec(100,100,100))
holoCreate(44)
holoModel(44,"hq_sphere")
holoPos(44, entity():pos() + vec(9,19.2,31))
holoParent(44,2)
holoScale(44,vec(0.3,0.3,0.3))
holoColor(44,vec(100,100,100))
holoCreate(45)
holoModel(45,"hq_sphere")
holoPos(45, entity():pos() + vec(9,19.2,13))
holoParent(45,5)
holoScale(45,vec(0.3,0.3,0.3))
holoColor(45,vec(100,100,100))
holoCreate(46)
holoModel(46,"hq_sphere")
holoPos(46, entity():pos() + vec(-9,19.2,13))
holoParent(46,4)
holoScale(46,vec(0.3,0.3,0.3))
holoColor(46,vec(100,100,100))
}
NormalizedForLeftTop = (DestinationPointLeftTop - holoEntity(3):boxCenterW()):normalized()
if (NormalizedForLeftTop!=vec(0,0,0))
{
holoPos(3,holoEntity(3):boxCenterW() + NormalizedForLeftTop*0.01)
}
NormalizedForRightTop = (DestinationPointRightTop - holoEntity(2):boxCenterW()):normalized()
if (NormalizedForRightTop!=vec(0,0,0))
{
holoPos(2,holoEntity(2):boxCenterW() + NormalizedForRightTop*0.01)
}
NormalizedForRightPlate = (DestinationPointRight - holoEntity(5):boxCenterW()):normalized()
if (NormalizedForRightPlate!=vec(0,0,0))
{
holoPos(5,holoEntity(5):boxCenterW() + NormalizedForRightPlate*0.01)
}
NormalizedForLeftPlate = (DestinationPointLeft - holoEntity(4):boxCenterW()):normalized()
if (NormalizedForLeftPlate!=vec(0,0,0))
{
holoPos(4,holoEntity(4):boxCenterW() + NormalizedForLeftPlate*0.01)
}
@persist [NormalizedForRightPlate NormalizedForLeftPlate NormalizedForLeftTop NormalizedForRightTop]:vector
@persist [DestinationPointRight DestinationPointLeft DestinationPointRightTop DestinationPointLeftTop]:vector
@persist Timer
runOnTick(1)
interval(1)
if(first()){
entity():soundPlay(1,0,"music/hl2_song20_submix0.mp3")
soundPitch(1,100)
}
if(first()){
entity():soundPlay(2,15,"vehicles/tank_turret_loop1.wav")
soundPitch(2,100)
soundVolume(2,0.1)
}
if(first() || duped()){
hint("Made By xtottix",7)
hint("VinylScratch's BassCannon",7)
}
lightCreate(1)
lightColor(1,vec(0,10,150))
lightPos(1, entity():pos() + vec(0,0,15))
#"body"
holoCreate(1)
holoScale(1,vec(3,3,3))
holoPos(1, entity():pos() + vec(0,0,22))
holoColor(1,vec(20,20,20))
#Wheels
holoCreate(6)
holoPos(6, entity():pos() + vec(-19.5,13,5))
holoModel(6,"hq_cylinder")
holoAng(6,ang(90,0,0))
holoScale(6,vec(0.7,0.7,0.2))
holoColor(6,vec(170,170,170))
holoCreate(7)
holoPos(7, entity():pos() + vec(19.5,13,5))
holoModel(7,"hq_cylinder")
holoAng(7,ang(90,0,0))
holoScale(7,vec(0.7,0.7,0.2))
holoColor(7,vec(170,170,170))
holoCreate(8)
holoPos(8, entity():pos() + vec(19.5,-14,5))
holoModel(8,"hq_cylinder")
holoAng(8,ang(90,0,0))
holoScale(8,vec(0.7,0.7,0.2))
holoColor(8,vec(170,170,170))
holoCreate(9)
holoPos(9, entity():pos() + vec(-19.5,-14,5))
holoModel(9,"hq_cylinder")
holoAng(9,ang(90,0,0))
holoScale(9,vec(0.7,0.7,0.2))
holoColor(9,vec(170,170,170))
#Subwoofer
holoCreate(10)
holoModel(10,"hq_cylinder")
holoPos(10, entity():pos() + vec(0,17,22))
holoAng(10,ang(0,0,90))
holoScale(10,vec(2,2,0.2))
holoColor(10,vec(0,40,100))
holoCreate(11)
holoPos(11, entity():pos() + vec(0,17,22))
holoAng(10,ang(0,0,90))
holoModel(11,"hq_sphere")
holoScale(11,vec(0.5,0.5,0.5))
holoColor(11,vec(100,100,100))
holoCreate(12)
holoModel(12,"hq_cylinder")
holoPos(12, entity():pos() + vec(0,17.7,22))
holoAng(12,ang(0,0,90))
holoScale(12,vec(1.7,1.7,0.1))
holoMaterial(12,"models/shadertest/shader4")
holoColor(12,vec(0,0,170))
#MainBass
holoCreate(13)
holoModel(13,"hq_cylinder")
holoPos(13, entity():pos() + vec(12.5,17,34))
holoAng(13,ang(0,0,90))
holoScale(13,vec(0.4,0.4,0.2))
holoColor(13,vec(0,40,100))
holoCreate(14)
holoModel(14,"hq_cylinder")
holoPos(14, entity():pos() + vec(-12.5,17,34))
holoAng(14,ang(0,0,90))
holoScale(14,vec(0.4,0.4,0.2))
holoColor(14,vec(0,40,100))
holoCreate(15)
holoModel(15,"hq_cylinder")
holoPos(15, entity():pos() + vec(-12.5,17,10))
holoAng(15,ang(0,0,90))
holoScale(15,vec(0.4,0.4,0.2))
holoColor(15,vec(0,40,100))
holoCreate(16)
holoModel(16,"hq_cylinder")
holoPos(16, entity():pos() + vec(12.5,17,10))
holoAng(16,ang(0,0,90))
holoScale(16,vec(0.4,0.4,0.2))
holoColor(16,vec(0,40,100))
#MainBassDeko
holoCreate(17)
holoModel(17,"hq_cylinder")
holoPos(17, entity():pos() + vec(12.5,18,10))
holoAng(17,ang(0,0,90))
holoScale(17,vec(0.3,0.3,0.05))
holoMaterial(17,"models/shadertest/shader4")
holoCreate(18)
holoModel(18,"hq_cylinder")
holoPos(18, entity():pos() + vec(-12.5,18,10))
holoAng(18,ang(0,0,90))
holoScale(18,vec(0.3,0.3,0.05))
holoMaterial(18,"models/shadertest/shader4")
holoCreate(19)
holoModel(19,"hq_cylinder")
holoPos(19, entity():pos() + vec(-12.5,18,34))
holoAng(19,ang(0,0,90))
holoScale(19,vec(0.3,0.3,0.05))
holoMaterial(19,"models/shadertest/shader4")
holoCreate(20)
holoModel(20,"hq_cylinder")
holoPos(20, entity():pos() + vec(12.5,18,34))
holoAng(20,ang(0,0,90))
holoScale(20,vec(0.3,0.3,0.05))
holoMaterial(20,"models/shadertest/shader4")
#Button
if(first()){
holoCreate(33)
holoModel(33,"hq_cylinder")
holoPos(33, entity():pos() + vec(0,-12,42))
holoScale(33,vec(0.3,0.3,0.4))
holoColor(33,vec(250,0,0))
holoCreate(34)
holoModel(34,"hq_sphere")
holoPos(34, entity():pos() + vec(0,-12,39.5))
holoScale(34,vec(0.7,0.7,0.5))
holoColor(34,vec(20,20,20))
NormalizedForLeftTop DestinationPointLeftTop
holoCreate(2)
holoScale(2,vec(1.5,1.5,0.2))
holoAng(2,ang(0,0,90))
holoColor(2,vec(20,20,20))
holoPos(2, entity():pos() + vec(9,19,31))
DestinationPointRightTop = holoEntity(2):boxCenterW() + holoEntity(2):right()*(-18)
holoCreate(3)
holoScale(3,vec(1.5,1.5,0.2))
holoAng(3,ang(0,0,90))
holoPos(3, entity():pos() + vec(-9,19,31))
holoColor(3,vec(20,20,20))
DestinationPointLeftTop = holoEntity(3):boxCenterW() + holoEntity(3):right()*(-18)
holoCreate(4)
holoScale(4,vec(1.5,1.5,0.2))
holoAng(4,ang(0,0,90))
holoPos(4, entity():pos() + vec(-9,19,13))
holoColor(4,vec(20,20,20))
DestinationPointLeft = holoEntity(4):boxCenterW() + holoEntity(4):forward()*(-18)
holoCreate(5)
holoScale(5,vec(1.5,1.5,0.2))
holoAng(5,ang(0,0,90))
holoPos(5, entity():pos() + vec(9,19,13))
holoColor(5,vec(20,20,20))
DestinationPointRight = holoEntity(5):boxCenterW() + holoEntity(5):forward()*(18)
holoCreate(35)
holoScale(35,vec(1,1,0.2))
holoModel(35,"hq_cylinder")
holoPos(35, entity():pos() + vec(-9,19.1,31))
holoAng(35,ang(0,0,90))
holoColor(35,vec(0,40,100))
holoParent(35,2)
holoCreate(36)
holoScale(36,vec(1,1,0.2))
holoModel(36,"hq_cylinder")
holoPos(36, entity():pos() + vec(9,19.1,31))
holoAng(36,ang(0,0,90))
holoColor(36,vec(0,40,100))
holoParent(36,2)
holoCreate(37)
holoScale(37,vec(1,1,0.2))
holoModel(37,"hq_cylinder")
holoPos(37, entity():pos() + vec(9,19.1,13))
holoAng(37,ang(0,0,90))
holoColor(37,vec(0,40,100))
holoParent(37,5)
holoCreate(38)
holoScale(38,vec(1,1,0.2))
holoModel(38,"hq_cylinder")
holoPos(38, entity():pos() + vec(-9,19.1,13))
holoAng(38,ang(0,0,90))
holoColor(38,vec(0,40,100))
holoParent(38,4)
holoCreate(39)
holoScale(39,vec(0.8,0.8,0.2))
holoModel(39,"hq_cylinder")
holoPos(39, entity():pos() + vec(-9,19.2,13))
holoAng(39,ang(0,0,90))
holoParent(39,4)
holoColor(39,vec(10,10,10))
holoCreate(40)
holoScale(40,vec(0.8,0.8,0.2))
holoModel(40,"hq_cylinder")
holoPos(40, entity():pos() + vec(9,19.2,13))
holoAng(40,ang(0,0,90))
holoParent(40,5)
holoColor(40,vec(10,10,10))
holoCreate(41)
holoScale(41,vec(0.8,0.8,0.2))
holoModel(41,"hq_cylinder")
holoPos(41, entity():pos() + vec(9,19.2,31))
holoAng(41,ang(0,0,90))
holoParent(41,2)
holoColor(41,vec(10,10,10))
holoCreate(42)
holoScale(42,vec(0.8,0.8,0.2))
holoModel(42,"hq_cylinder")
holoPos(42, entity():pos() + vec(-9,19.2,31))
holoAng(42,ang(0,0,90))
holoParent(42,2)
holoColor(42,vec(10,10,10))
holoCreate(43)
holoModel(43,"hq_sphere")
holoPos(43, entity():pos() + vec(-9,19.2,31))
holoParent(43,2)
holoScale(43,vec(0.3,0.3,0.3))
holoColor(43,vec(100,100,100))
holoCreate(44)
holoModel(44,"hq_sphere")
holoPos(44, entity():pos() + vec(9,19.2,31))
holoParent(44,2)
holoScale(44,vec(0.3,0.3,0.3))
holoColor(44,vec(100,100,100))
holoCreate(45)
holoModel(45,"hq_sphere")
holoPos(45, entity():pos() + vec(9,19.2,13))
holoParent(45,5)
holoScale(45,vec(0.3,0.3,0.3))
holoColor(45,vec(100,100,100))
holoCreate(46)
holoModel(46,"hq_sphere")
holoPos(46, entity():pos() + vec(-9,19.2,13))
holoParent(46,4)
holoScale(46,vec(0.3,0.3,0.3))
holoColor(46,vec(100,100,100))
}
NormalizedForLeftTop = (DestinationPointLeftTop - holoEntity(3):boxCenterW()):normalized()
if (NormalizedForLeftTop!=vec(0,0,0))
{
holoPos(3,holoEntity(3):boxCenterW() + NormalizedForLeftTop*0.01)
}
NormalizedForRightTop = (DestinationPointRightTop - holoEntity(2):boxCenterW()):normalized()
if (NormalizedForRightTop!=vec(0,0,0))
{
holoPos(2,holoEntity(2):boxCenterW() + NormalizedForRightTop*0.01)
}
NormalizedForRightPlate = (DestinationPointRight - holoEntity(5):boxCenterW()):normalized()
if (NormalizedForRightPlate!=vec(0,0,0))
{
holoPos(5,holoEntity(5):boxCenterW() + NormalizedForRightPlate*0.01)
}
NormalizedForLeftPlate = (DestinationPointLeft - holoEntity(4):boxCenterW()):normalized()
if (NormalizedForLeftPlate!=vec(0,0,0))
{
holoPos(4,holoEntity(4):boxCenterW() + NormalizedForLeftPlate*0.01)
}