Give Weapons Created 18 years ago2005-11-13 21:23:19 UTC by Sonixpba Sonixpba

Created 18 years ago2005-11-13 21:23:19 UTC by Sonixpba Sonixpba

Posted 18 years ago2005-11-13 21:23:19 UTC Post #147023
Right now I've made a button that triggers game_player_equip. The button works fine, but I also spawn with the items that I want the button, and the button ONLY to trigger :zonked:.

I am using Worldcraft 3.3 for a counter-strike 1.6/cz map.
Posted 18 years ago2005-11-13 21:32:26 UTC Post #147025
Define "spawn with the items", does it teleport you to the entity or something?
Posted 18 years ago2005-11-13 21:37:45 UTC Post #147028
When a player spawns on a map, they are automatically given the weapons that the button is supposed to trigger.
Posted 18 years ago2005-11-13 21:58:56 UTC Post #147034
I'm not sure that you can trigger a game_player_equip. From what I know, it works automatically on respawn, giving the players certain items depending on the team. At least in teamplay deathmatch.
Posted 18 years ago2005-11-13 22:14:00 UTC Post #147037
Odd...the entity guide says it can be triggered, though...
Posted 18 years ago2005-11-13 22:15:02 UTC Post #147038
Oh and if you can't trigger it then why can I trigger it just fine? My problem is not 'not being able to trigger it' but rather, 'not being able to stop it from triggering at spawn-time.' Appreciate your trying to help, of course :). If I can't figure it out I'll just skip it and move on.
Posted 18 years ago2005-11-13 23:01:45 UTC Post #147040
Make sure the target name is right. Make sure you named the game_player_equip at all for that matter(stupid, yes. But I've forgotten to name things my fair share of times). Are you using a button_target or a func_button?

1.6 or CZ? The fgds might work differently, never mapped for CZ so I wouldn't know how it works.
Posted 18 years ago2005-11-13 23:39:35 UTC Post #147043
1.6 and CZ mapping are exactly the same, just a different game. I've tried both a button_target and a func_button and neither work. I also already checked the names and that doesn't work...
Posted 18 years ago2005-11-14 03:41:23 UTC Post #147055
It's probably hard-coded into the game.

Why are you still using Worldcraft? Years out of date :|.
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 18 years ago2005-11-14 17:01:35 UTC Post #147142
Mmmm...I don't know, its just what I first heard of when I was first mapping, so I used it. I guess I'll update to hammer.
Posted 18 years ago2005-11-14 17:14:33 UTC Post #147143
Make a separate game_player_equip and dont choose any weapons, and rename it "round_restart" without the quotes. I think I did something like that once.
or have a trigger_once under each spawn that triggers the "No weapon" game_player_equip. that would give the same effect..
I dont know if you want players to keep weapons from previous rounds, but this wouldnt work if that was the case.
Posted 18 years ago2005-11-14 18:41:57 UTC Post #147156
No, he's saying that he doesn't want it to be triggered at the beginning of a round.
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 18 years ago2005-11-14 18:49:37 UTC Post #147160
i know, thats why I said for him to trigger a different game_player_equip (with no weapons in the properties), so you have to trigger the buttons to get the weapons.

such as in the map fun_allinone;

In this map you press a button to open a door to a teleporter, and it shoots you into a one weapon themed zone.
Whats neat is the use of kill targets. Once you open a door to one of the zones, no other zone doors can be opened.
I have a feeling that this is similar to what he is trying to do. Look for it on google and download it (I dont know exactly where to find it).
Posted 18 years ago2005-11-14 19:41:22 UTC Post #147169
Actually I think I might've figured it out. Someone pointed out that there is a "use only" flag on the game_player_equip entity. Maybe checking this off will disable giving it at the beginning of the round since you are not 'using' it. If not, I'll try what you said, thanks :). I'll put an update on whether the problem is solved or not once I set up hammer...
Posted 18 years ago2005-11-14 19:51:04 UTC Post #147171
You will have to physically "use" the entity. Put it inside the button and have the button target nothing if you are going to use that flag. Why hae it target nothing? Because theres nothing to target if you are using the target at the same time. Why have a button at all in that case? Because it looks cheesy when you use a wall and get guns.
Posted 18 years ago2005-11-14 21:56:24 UTC Post #147177
This is my situation currently. I don't know if anyone has ever played the map gahhhhh by Nipper, but the things he did in it were amazing. It isn't the type of map that you would want to play a lot, but rather to test your skill. This is pretty much what I am doing right now. Anyways, I am throwing in this button so that it is half-hidden, and cannot be seen by the naked eye. Only someone with true observing skills could find it. Now I checked off that flag and I don't get the items at the beginning of the round. GREAT! But a new problem has come, I don't have ANY items at the beginning! Help please... Why would a player_equip entity strip weapons...odd...
Posted 18 years ago2005-11-14 23:28:41 UTC Post #147187
Its not strippiung you of your weapons. You probably just aren't starting an actual game. Start a lan server when you test the map.
Posted 18 years ago2005-11-14 23:43:20 UTC Post #147188
Thats what I've been doing...
Posted 18 years ago2005-11-15 05:59:45 UTC Post #147192
Player_weaponstrip - trigger it at the start of the round. Might wanna add another game_player_equip to equip the original weapons, pistol + knife.
Posted 18 years ago2005-11-15 09:08:01 UTC Post #147208
But the thing is, how would I know what the original weapons are? It would strip at the end of every round, and I couldn't magically guess that everyone would be using an M3 or something...
Posted 18 years ago2005-11-15 09:16:24 UTC Post #147210
Forget about triggers, buttons and game_ entities for a minute, and just tell us what you want to happen in your map.
example: I want players to start without weapons, they can get them from bla bla and after each round I want them to keep/lose them bla bla
You must be logged in to post a response.