Weapon Spawn Platforms
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]
——————
Inputs:
SpawnOne (NORMAL)
RemoveCurrentWeapon (NORMAL)
SetWeaponClass (STRING)
SetDelay (NORMAL)
Outputs:
CurrentWeapon (ENTITY)
NumSpawned (NORMAL)
OnWeaponSpawned (NORMAL)
Functions:
SpawnWeapon()
RemoveWeapon(dontUpdateDelay)
NWVars:
SpawnOnce
Invisible
Unfrozen
Weapon
Delay
NumSpawned
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!