PDA

View Full Version : Require/Disable weapons/items


Talster
07-20-2010, 09:50 PM
How would I go about making certain weapons or items enabled or disabled in a custom map I make?

I'm still in the planning stages and haven't touched Hammer yet (and don't plan to until I have a rough draft of my maps set up), so I'm sorry if this is a really stupid/obvious question.

In my campaign, I was going to have the marines investigate a weapons research facility that sent an SOS. As the power is out in the building, there will be a couple dark maps, so I will make the flashlight attachment required for at least one member, regardless of player level, kind of like the flamer in Map 5 of the official campaign.

I was toying with the idea, also, that the tesla cannon is initially forbidden, but that you find it later on in the campaign with it being an experimental weapon, thus enabling the weapon. How could I get that done?

Thanks for your help in advance.

dra6o0n
07-20-2010, 09:52 PM
That, would be a mod, not a map.
You cannot modify core aspect of something within a map... You could code it so such items are removed on load, but it doesn't stop them from finding another method.

dormedas
07-20-2010, 09:53 PM
When you are building the map within hammer, create an entity with the name "asw_equip_req".

You should then be able to set the parameters to "Flashlight" or something like that (I'm not entirely sure), but that's the entity you're gonna want.

EDIT: You should also be able to disable weapons to be used with another entity named: "game_weapon_manager". There's a parameter to limit however many of whatever item in a map to a certain amount.

Talster
07-20-2010, 09:56 PM
When you are building the map within hammer, create an entity with the name "asw_equip_req".

You should then be able to set the parameters to "Flashlight" or something like that (I'm not entirely sure), but that's the entity you're gonna want.

Thanks, dorm. I take it I can't forbid the tesla cannon, then?

dormedas
07-20-2010, 10:02 PM
Thanks, dorm. I take it I can't forbid the tesla cannon, then?

See my edit.

Talster
07-20-2010, 10:03 PM
See my edit.

Thanks again.