[1.6] game_player_equip Created 8 years ago2016-01-07 00:45:47 UTC by EsprimoP EsprimoP

Created 8 years ago2016-01-07 00:45:47 UTC by EsprimoP EsprimoP

Posted 8 years ago2016-01-07 00:45:47 UTC Post #328122
Making a map for cs 1.6, adding a button that trigger a game_player_equip and the game_player_equip entity. So I set the properties at each entity (Which weapon to give), but in game, it gives me all the weapons. How to fix this?
I'm using cs_expert-tom793c_wc35.fgd
EsprimoP EsprimoPwEight
Posted 8 years ago2016-01-07 19:50:05 UTC Post #328130
Have you tried flagging "Use only"?
Oskar Potatis Oskar Potatis🦔
Posted 8 years ago2016-01-07 20:05:47 UTC Post #328132
Yes
EsprimoP EsprimoPwEight
Posted 8 years ago2016-01-08 00:02:20 UTC Post #328136
If you upload the map (only the relevant parts) and explain the desired result more in detail, I'll have a look at it.
Oskar Potatis Oskar Potatis🦔
Posted 8 years ago2016-01-08 00:14:41 UTC Post #328137
I don't think uploading is necessary.

I have game_player_equip and func_button that triggers it. Nothing else.
The properties in game_player_equip are pretty obvious.

For example in one "dispenser" it gives you m4a1, knife(because it strips weapons), he grenade, assault suit, deagle and ammo for m4 and dgl. I've set their values to 1 (true), and left every other to 0 (false). Since I only want them to equip.
EsprimoP EsprimoPwEight
Posted 8 years ago2016-01-08 02:01:47 UTC Post #328141
I've set their values to 1 (true), and left every other to 0 (false)
There's the problem. The value isn't boolean - the number tells the game how many times to give an item to the player. And it always gives at least one copy. Remove all the rows with value 0.
Oskar Potatis Oskar Potatis🦔
Posted 8 years ago2016-01-08 10:53:20 UTC Post #328144
Oh my god, how didn't I think of that... It was pretty obvious, thanks...

To do it: Click on SmartEdit and there should be "Add" and "Remove". (For searchers)
EsprimoP EsprimoPwEight
You must be logged in to post a response.