player_weaponstrip without taking bomb Created 7 years ago2016-12-31 01:30:36 UTC by MistaX88 MistaX88

Created 7 years ago2016-12-31 01:30:36 UTC by MistaX88 MistaX88

Posted 7 years ago2016-12-31 01:30:36 UTC Post #332914
I've been working on a CS 1.6 map with a trigger setup on round start that opens doors to reveal extra weapons depending on the # of players. Aside from a round 1 bug that seems to open both doors on occasion (testing with bots in cz) I finally have it working how I would like. The problem I'm now still having is with my weapon equipping system. Players are stripped of their weapons on spawn and then equipped with a knife, armor, a five-seven, and a defuse kit for CTs.

The problem is, player_weaponstrip also relieves the terrorists of their bomb! I tried setting all the t side equip entities to give C4 wondering if maybe it would only give out one and not give anymore, but it gives out nothing. There is no bomb in play but there is a player showing up on the radar as the bomb carrier with "bomb" next to their name on the scoreboard. I really don't want to give up on the weapon stripping. Giving the Five-Seven is no big deal but I wanted to take everyone's picked up weapons after each round.
Posted 7 years ago2016-12-31 02:45:43 UTC Post #332917
That weaponstrip problem I don't see a solution for that. maybe there is a property you could smartedit in, that wouldn't affect the bomb?
Captain Terror Captain Terrorwhen a man loves a woman
Posted 7 years ago2016-12-31 06:17:31 UTC Post #332918
I don't know. I'm thinking there is no way around this without coding, which is not an options since I'm making a map that works in vanilla 1.6 (also, I know zip about coding). It stinks because I want to do this to keep a balance of certain weapons, but at the end of the day, most players will probably be dead and surviving players will probably be low on ammo and have to take a new weapon pickup anyway.
Posted 7 years ago2016-12-31 06:48:29 UTC Post #332919
It's probably been about a decade since i've mapped for CS 1.6... but is there a way to set the buyzone or another entity to limit the weapons available for purchase?
can a compromise be reached somehow?
Tetsu0 Tetsu0Positive Chaos
Posted 7 years ago2016-12-31 10:39:15 UTC Post #332920
The weapon strip entity has no option to exclude the bomb.

I looked for more information on Joe.to's forums, their mappers did stuff like this in the past. Here's what i found: https://forums.joe.to/viewtopic.php?f=163&t=48274

Unfortunately not much help, you'll have to handle the assignment of the bomb yourself i guess.
Posted 7 years ago2016-12-31 18:19:28 UTC Post #332923
Yeah, if only the game_player_equip could actually give the bomb back (which it has the option to supposedly do but it doesn't work). The game must handle the bomb item a little bit differently than other items (seeing as the player who was stripped of the bomb will still show as having a bomb on the scoreboard and radar).

I think I'll have to scrap the whole weapon system stripping, which is unfortunate. That map should still mostly work as intended, though. They won't be able to buy ammo so if surviving players carry their guns over it might not be good for them to keep it anyway.
Posted 7 years ago2016-12-31 21:12:04 UTC Post #332926
So I took the weaponstrip system away and adjusted the game_player_equip entities to only give out armor and defuse kits for CTs. Well, I load up the map in CZ, populate it with bots, and none of us have any weapons! The bomb however, was untouched.

I'm not sure why this happens this way. I assume it does not behave this way in Half-Life (but I've never mapped for HL so I don't know).

Either way, this means I can still give everyone Five-Sevens, but it does not strip away picked up weapons, so that is a factor that I still have no control over. I am considering experimenting some more though. What if I added all the weapons you could pick up on the map, added them into the game_player_equip but then put zero as a value? I wonder if that would remove those weapons from their inventory.

Edit: Putting a weapon in game_player_equip and giving it a zero value does nothing. It was worth a shot though.

Other odd things about this entity. It will give every CT a kit every time, even if they already have one, so unused kits will be left on the ground in spawn, but it does not do this with the Five-Seven.

I also discovered that the entity actually will equip everyone with a bomb. But it doesn't appear on your back, it doesn't tell you that you have it (so I didn't notice) and the bots wouldn't use it, for reasons that quickly became clear when I tried to plant of the "extra" bombs. It simply doesn't recognize that you're in the planting area and you can't plant it.
You must be logged in to post a response.