Gmod Trainstation

Image
Gmod Trainstation This is a half life based trainstation that has a security checkpoint food rations security room and a nova prospekt razor train. Features Security checkpoint Security interrogation room Rations and ticket dispenser and a line for rations Razor train to nova prospekt Manual and Automated controls for security checkpoint Station platform with benches and a clock also a breencast PA Speaker Planned features A remaster Gallery

Portal 1 Vital Apparatus Vent E2

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


Cube dropper through observation window



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:

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,
  • gif of me placing a cube on a button
  • Animated prop.

Planned Features:

  • Companion cube,
  • Portal 2 version.

Gallery


Cube dropper through observation window


Cube coming out of the dropper

gif of me placing a cube on a button


Comments

Popular posts from this blog

IITPP Warhead Parkour

Gmod Trainstation