weapon spawns

Author : SpherixNL

Click to view attachment

QUOTE
Rotating weapons that respawn after you picked them up

This prefab shows how to create respawning weapons. The prefab shows a total of 6 different weapons as an example. The weapons rotate above a platform, and once they are picked up, they will respawn after a set time.

So how does this work?
◾A prop-dynamic-override is used to display the weapon model, it is attached to a func-rotating for the rotation animation.
◾The actual func-weapon is positioned below the func-illusionary platform (used to define non-solid platform), or below the floor as can be seen with the AWP; players can pick it up just fine.
◾After the weapon is picked up, the rotating model is disabled and after a set time in seconds, a point_template will be activated that both respawns the func-weapon and enables the rotating model again.

If you plan on placing more than one of the same weapon in your map, remember to rename all entities accordingly, so they don't activate one another.

Notes:

I'm currently using these as weapon spawning entities in a new game mode project for CS:GO. If you want to use these, be sure to credit.

Based on a respawning weapon tutorial found on YouTube; I've improved upon the tutorial as it had a few flaws.

Works in CSS as well.


Click to view attachment


Hlbox17B