PDA

View Full Version : One Team Spawn Without Weapons?


gunsofnavarone
09-19-2009, 07:46 AM
Is it possible to have just one Team spawn without weapons? For instance, only Axis have weapons, and Allies spawn without weapons initially, but retrieve them from a capture area?

And if so, how is all of this done? What entity do I use to have a team spawn "empty handed"? Or is this done by the settings in info_player_allies?

Tank
09-19-2009, 05:30 PM
Do you want the players of a certain team to have no weapons at all? As in no pistol, no knife, no grenades? If so, you could use:

strip_user_weapons(id)

This will make them drop everything. If you just want them to drop their main weapon, perhaps this will work:

client_cmd(id,"drop")

Remember, if you drop every weapon, you can allow them to pick up a main weapon, but a pistol or grenade (for grenade look at grenade drop) I havent seen a plugin where you can pick up a pistol.

diamond-optic
09-19-2009, 07:31 PM
I havent seen a plugin where you can pick up a pistol.

hmmm maybe i should clean up my plugin and release it then lol

gunsofnavarone
09-19-2009, 08:18 PM
No, I'm not asking for some plugin or scripting, I'm asking about which entities in Valve Hammer Editor I would use, and would they affect all players or can they be team specific?

I am presently working on a POW camp map, and it would be more "fitting" if Allied players spawned without weapons.

Dr.G
09-20-2009, 10:57 AM
check the VERC archive, in the navigation menu, top left side

gunsofnavarone
09-20-2009, 01:47 PM
I did, but they don't really explain how to utilize them.

I found Player_weaponstrip and it shows:
targetname (target_source) Name

So, can I put info_player_allies in this field? Is this a legal argument? Or does it require an actual name like I might name a flag as Name: Flag1 or Name: Axis Tanks?

Verc is useful in some respects, but in other respects it seems no use at all. If a person already understands many of the entities, it's a good tool to refresh somebody's memory on something, but for somebody who's learning, it doesn't aid them at all.

As another example, dod_capture_area indicates you can use dod_object in order to capture an area, but it doesn't explain how to define it in the entity.

Dr.G
09-20-2009, 03:56 PM
idk how you do your spawn points but i would create a player_weaponstrip in all of them i think, do you need to use a target source? Just try and create a player_weaponstrip entity and see what happens.

Find BSP edit and see how other mappers used the entitys it would be the best way

Vet
09-20-2009, 10:50 PM
I havent seen a plugin where you can pick up a pistol.My DoD Pistol Clips (http://forums.alliedmods.net/showthread.php?t=75409) coud be easily modified to pick up a pistol along with the clip.

I found Player_weaponstrip and it shows:
targetname (target_source) Name
So, can I put info_player_allies in this field? Is this a legal argument?The argument needs to match the 'target' value of an entity to trigger.

Verc is useful in some respects, but in other respects it seems no use at all.?The entity verc for HL gave explanations for most entities. Its archived HERE (http://web.archive.org/web/20061024220137/collective.valve-erc.com/index.php?area=entity) along with the other mods.