Cleanup is going to take awhile, so the site is back up but editing has been disabled.

Stop guns disappearing

From HalfLife 2 Knowledge Base

Jump to: navigation, search

Getting round disappearing guns! by W*


NOTE: This tutorial WAS created, thought up and made by W* (all writing, screen shots etc.), ElmerFudd had the same idea on another website, however has nothing to do with creating this tutorial.



You got a good map made, perhaps an fy_somin – but your guns dispear after a few seconds? – This is a bug in the new source updates, however it can be got round using spawning:


Basicly put:

Create a weapon as usual,

Create a point_template,

Activate it with a trigger,

Copy of original weapon is spawned.


Here we go:

Create a weapon on the level somewhere (tutorial by Emphar explains this well: Found here )

Name the weapon: e.g. Deagle1

19.jpg


After you have this sorted, create an entity point_template this will be the point at which the gun spawns (name it watever you want.)

16.jpg


Next set template 1 to the gun you want spawned at this location:

15.jpg


So now when the “forcespawn” output of this point_template is triggered a Deagle will be spawned at this position.

At this point any trigger will suffice, you could use a button or a large ‘trigger when touched’ brush, personally I am currently making a HE map, so I wanted the grenades to spawn on a timer.

To make this work I used a Logic_timer entity set at a 3 second interval:

a.jpg


After this you simply add an output that activates ‘forcespawn’:

12.jpg


This should now spawn deagles every 3 seconds!

Until the bugs fixed – hope this helps.


W*


ElmerFudd would you please stop changing my tutorial to claim that you made it - you did not make any part of it, please stop taking credit for my work. thank you.




this tutorial is no longer needed. Weapons no longer disappear.

Personal tools