Pick up weapons
schuft
01-12-2006, 01:10 AM
Hey all, i want to add weapons that are just laying around in my map waitinfg to be picked up, what kind of entity would they be for a useable weapon in game?
travis
01-12-2006, 02:07 AM
Haven't looked for dod:s but in cs and cs:s they are weapon_name for the entity class, if they are not there you could always try hax it with smart edit off~
StreamlineData
01-12-2006, 02:16 AM
this, I would like to know how, also!
(make training maps!)
wickit
01-12-2006, 02:55 AM
i have a sollution for this at home its a bit tricky.
i will post the example map up when i finnish work
you need to create a Weapon entity.
travis
01-12-2006, 03:21 AM
Originally posted by travis
Haven't looked for dod:s but in cs and cs:s they are weapon_name for the entity class, if they are not there you could always try hax it with smart edit off~
^^^^^ that's what I said
wickit
01-12-2006, 04:11 AM
see attached zip its a test vmf for weapon spawn
schuft
01-13-2006, 05:10 AM
Now this is exactly what i was after, one thing tho...if you dont get the MG within a sec or two of spawning, it disappears, does one those timers affect this?
Thanks for the info
kimball
01-13-2006, 08:51 PM
Does this help?
These are for classic 1.3 dod weapon entities and if you click the entity name you can see it's class properties etc. Perhaps the weapon entities are simliar in source to 1.3 as are many other entities.
http://collective.valve-erc.com/index.php?area=entity&game=dod&expand=weapon
PhoneMan
01-17-2006, 08:46 AM
Am I blind or is there no scoped fg and bipod fg in that list. If anyone could give me the exact names of those two entities, I would appreciate it.
[SAS]==Colster==
01-17-2006, 06:00 PM
When I tried spawning weps in maps u would need to be damn fast to pick them up, they appear at round start then disappear...
BUG or FEATURE? ..u decide
As for FG42's, I think they are coming, the SDK has sound files for them!
<edit>
Sorry just re-read your post, no you cant spawn scoped and bipod FG's as entities in 1.3
CrazyDaRazor
01-19-2006, 02:15 PM
wasnt there a map were u could pick one up from a box in axis spawn
wickit
01-19-2006, 02:55 PM
if you download that test map you can see i use a logic timer to respawn the mg
also a filter to kill the respawn once its been picked up
this is a workaround till the fix the weapon entity
eviloreo
01-22-2006, 09:18 AM
Hey i've searched the web abit and found out about STOP GUNS FROM DISAPPEARING. I haven't tried it but please pm me or reply if it works.
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
--------------------------------------------------------------------------------
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.)
--------------------------------------------------------------------------------
Next set template 1 to the gun you want spawned at this location:
--------------------------------------------------------------------------------
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:
--------------------------------------------------------------------------------
After this you simply add an output that activates ‘forcespawn’:
--------------------------------------------------------------------------------
This should now spawn deagles every 3 seconds!
Until the bugs fixed – hope this helps.
W*
If you want it with pics go here... http://www.hl2world.com/wiki/index.php/Stop_guns_disappearing
Also visit http://www.randomcoders.com. A soon to be user created map site. Be sure to sign up to submit, moderate or tut writer on maps.
wickit
01-22-2006, 12:47 PM
Originally posted by wickit
if you download that test map you can see i use a logic timer to respawn the mg
also a filter to kill the respawn once its been picked up
this is a workaround till the fix the weapon entity
:confused:
Day of Defeat Forum Archive created by
Neil Jedrzejewski.
This in an partial archive of the old Day of Defeat forums orignally hosted by
Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.