Portal 1 Vital Apparatus Vent E2 (Expression 2)
"The vital apparatus vent will deliver a weighted companion cube in 3... 2... 1..." -GLaDOS Portal 1
So one day me and my friend were playing Garry's mod together and they wanted to create a Portal 1 floor button (Another blog will talk about the portal 1 floor button I made) so I made one and I also decided to create This! The Vital Apparatus Vent!
How I Made It
So the functionality is it can drop 1 weighted storage cube (or a million if you hold the input) when you give it an input. The dropper itself has no collision at least the the trap door doesn't so the cube on the top is a hologram that gets hidden once a cube is dropped so it looks like its falling out!
The Code:
Copy and Paste Code:
@name P1 cube dropper
@inputs Drop
@persist Dropped A
@model models/props/box_dropper.mdl
if (first()|dupefinished()) {
holoCreate(1)
holoModel(1,"models/props/box_dropper_cover.mdl")
holoParent(1,entity())
holoCreate(2)
holoModel(2,"models/props/metal_box.mdl")
holoPos(2,entity():toWorld(vec(0,0,30)))
holoParent(2,entity())
}
if (Drop > 0 && Dropped == 0) {
A = 100
Dropped = 1
holoAlpha(2,0)
holoAnim(1,"open")
propSpawnEffect(0)
propSpawn("models/props/metal_box.mdl",ang(0,0,0),0)
timer("close",1000)
}
if (clk("close")) {
stopAllTimers()
timer("reset",1000)
holoAnim(1,"close")
}
if (clk("reset")) {
timer("reset",100)
holoAlpha(2,255)
holoPos(2,entity():toWorld(vec(0,0,A)))
A=A-20
if (A <= 30) {
holoPos(2,entity():toWorld(vec(0,0,30)))
stopAllTimers()
}
Dropped = 0
}
Features:
So here are the features it features: A holo cube to tell when its ready,
- Cube spawning action,

- Animated prop.
Planned Features:
- Companion cube,
- Portal 2 version.
Gallery
Comments
Post a Comment