Weapon Spawn Platforms

If you liked this item, please rate it up on Steam Workshop page.

Author: Lexi

Last revision: 26 Jun, 2016 at 16:18 UTC

File size: 2.62 KB

On Steam Workshop

Description:

This is a very rough first pass for weapon spawn platforms.
It has wire, permaprop and map embedding support.
Spawn it via the Q menu (Fun + Games) and then right-click edit.

——————
Github Repo[github.com]
——————

Wire

Inputs:
SpawnOne (NORMAL)
RemoveCurrentWeapon (NORMAL)
SetWeaponClass (STRING)
SetDelay (NORMAL)
Outputs:
CurrentWeapon (ENTITY)
NumSpawned (NORMAL)
OnWeaponSpawned (NORMAL)

Lua

Functions:
SpawnWeapon()
RemoveWeapon(dontUpdateDelay)
NWVars:
SpawnOnce
Invisible
Unfrozen
Weapon
Delay
NumSpawned

Hammer

keyvalues:
once – Only spawn one weapon automatically 1/0
hidden – Set NoDraw on the platform 1/0
movable – Enable physics on the platform. 1/0
weapon – The weapon classname to spawn string eg weapon_crowbar
spawndelay – How many seconds to wait after a weapon is picked up >0
inputs:
spawn – Create a weapon immedaitely, deleting the existing one if necessary
killweapon – Delete the existing weapon if it exists. (Note, a new one will spawn in spawndelay seconds.)
outputs:
Coming soon!