A toggle to turn off weapon_strip?


StreamlineData
06-14-2005, 02:59 PM
The map I'm working on right now (the one with the radio cap) has weapon stripping.
But I know that lots of people don't like pistol&knife-only maps. So I was wondering if it's possible for a player to manually switch the weapon_strip/multi_manager on and off?

It would work like a light switch.
Initially, it would be on when the map starts. Then if a person would want to (with the "permission" of everybody else ;) ), a player could go into a room and use a "switch" to toggle the weapon_strip on and off. So that the next time players spawn, they wouldn't be stripped of their weapons.
And then, if people wanted to switch back, a player could go back and switch it back on.

[[ What would be even better so that BOTH sides must agree (or something) is that it takes two players from both sides to activate the switch (but not necessarily at the same time)... but this part wouldn't be a priority.]]

Is this possible?
Am I making any sense?

p.s. I've already tried using the "Search" button. Turning a light on and off is easy enough... but a multi_manager?

josh_u[RR]
06-14-2005, 06:24 PM
hmmm, I don't know if I'd go to the trouble of switching it off/on just because some players don't like weapon stripping. if you are concerned about it, then just leave it out, or have two versions of the map.

that being said, if you want to do it, its your map meh. I took a look at player_weaponstrip and it does have a name field, but thats about it. I haven't tested this, but you could try a trigger_relay and have it kill the weaponstrip. you couldn't toggle it back on, but it should kill the named entity, namely the weaponstrip.

as I recall, I had trouble with the killtarget field before, but its the only thing I can think of at the moment.

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.