the_irate_pirate
11-07-2006, 01:07 PM
Many people out there enjoy small, simple maps, like dod_orange_fight_arena. In light of this, I wanted
to teach everyone [who cares] how to equip/remove weapons. And if you feel this is a waste of your time, don't make comments like "this isn't CS". Remember that many people do like point-and-shoot style gameplay.
Weapons are removed with the player_weaponstrip entity, via input strip. You can use this in various ways, my preferred method is to have players spawn in a trigger_multiple which would trigger the player_weaponstrip. But before you can trigger the player_weaponstrip, you must give it a name.
Once you create the player_weaponstrip entity (which will almost certainly NOT be on the entity list, just type in the name even if will be marked in red), turn off "Smart Edit", click add, then:
Key: targetname
Value: whateveryouwannacallit
Now that you've given your weapon-stripper a name, you can trigger it
anytime. Here's an example setup with a trigger_multiple:
Output: OnStarttouch
Target Entity: Whateveryoucalledit
Via Input: Strip
Weapons are equipped with the game_player_equip entity, via input use. Here are all the possible weapons and their appropriate names:
http://developer.valvesoftware.com/wiki/List_of_DoD:S_entities
Use this as reference:
http://www.fpsbanana.com/tuts/1435
EDIT: the correct names for grenades are weapons_frag_us and weapon_frag_ger (thanks JossiRossi)
So, when you're in the game_player_equip's tab, you turn off "SmartEdit", click add, then:
Key: weapon_thompson
Value: 1
Unfortunately only secondary weapons (that includes M1Carbine and C96) and grenades can have additional
ammo. You can add more ammo by simply adding more of the same item. So you'd have:
Key: weapon_colt
Value: 3
So in this case, if you had set value to 1, it would just give you 1 clip, if you set it to 3 (as you just did), it will give you 2 extra clips. If you set value to 4, you'll have 2 extra clips and one will drop on the ground, which, strangely enough, you WILL pick up. So you can have 3 extra clips, but the last one will have to be equipped seperately (or you'll pick it up off the ground).
Maybe someone can figure out how to add ammo to primary weapons?
I hope you can figure this out! It can be somewhat confusing, but it works, I guarantee, or your money back :D.
P.S. if someone makes nice screenshots, I'll edit this post and add them.
to teach everyone [who cares] how to equip/remove weapons. And if you feel this is a waste of your time, don't make comments like "this isn't CS". Remember that many people do like point-and-shoot style gameplay.
Weapons are removed with the player_weaponstrip entity, via input strip. You can use this in various ways, my preferred method is to have players spawn in a trigger_multiple which would trigger the player_weaponstrip. But before you can trigger the player_weaponstrip, you must give it a name.
Once you create the player_weaponstrip entity (which will almost certainly NOT be on the entity list, just type in the name even if will be marked in red), turn off "Smart Edit", click add, then:
Key: targetname
Value: whateveryouwannacallit
Now that you've given your weapon-stripper a name, you can trigger it
anytime. Here's an example setup with a trigger_multiple:
Output: OnStarttouch
Target Entity: Whateveryoucalledit
Via Input: Strip
Weapons are equipped with the game_player_equip entity, via input use. Here are all the possible weapons and their appropriate names:
http://developer.valvesoftware.com/wiki/List_of_DoD:S_entities
Use this as reference:
http://www.fpsbanana.com/tuts/1435
EDIT: the correct names for grenades are weapons_frag_us and weapon_frag_ger (thanks JossiRossi)
So, when you're in the game_player_equip's tab, you turn off "SmartEdit", click add, then:
Key: weapon_thompson
Value: 1
Unfortunately only secondary weapons (that includes M1Carbine and C96) and grenades can have additional
ammo. You can add more ammo by simply adding more of the same item. So you'd have:
Key: weapon_colt
Value: 3
So in this case, if you had set value to 1, it would just give you 1 clip, if you set it to 3 (as you just did), it will give you 2 extra clips. If you set value to 4, you'll have 2 extra clips and one will drop on the ground, which, strangely enough, you WILL pick up. So you can have 3 extra clips, but the last one will have to be equipped seperately (or you'll pick it up off the ground).
Maybe someone can figure out how to add ammo to primary weapons?
I hope you can figure this out! It can be somewhat confusing, but it works, I guarantee, or your money back :D.
P.S. if someone makes nice screenshots, I'll edit this post and add them.