triggers with weapons

triggers with weapons

Re: triggers with weapons Posted by STURMguy22 on Tue Nov 23rd 2004 at 12:01pm
STURMguy22
4 posts
Posted 2004-11-23 12:01pm
4 posts 0 snarkmarks Registered: Nov 23rd 2004
Can someone please give me some direction on how to make a brush base
entity that causes a point entity to give you a certain weapon when you
walk through it? I tried making these 2 (trigger_multiple,
game_player_equip) but one would activate right at the beginning and I
wasn't able to get them working together. Thanks in advance
Re: triggers with weapons Posted by coldbladed on Tue Nov 23rd 2004 at 6:58pm
coldbladed
62 posts
Posted 2004-11-23 6:58pm
62 posts 6 snarkmarks Registered: Nov 11th 2004
You say that the game_player_equip was activiating right away? I assume
that's what you mean. Look for an option in game_player_equip that
causes it only to do its thing when triggered. Just pointing the
trigger at it doesn't make it think to wait.

[EDIT]

Okay I fired up Hammer and looked up the specific solution. In the
game_player_equip entity is a keyvalue called "Team Master (Obsolete)".
This is where you will enter the name of the trigger_multiple entity.
As the description says, the game_player_equip will not activate unless
the "Team Master (Obsolete)" entity has been activated. If there is no
"Team Master (Obsolete)" entity then the equip entity will activate
whenever a player passes through it. Hopefully that works for you.

If not, check to make sure that your trigger is triggering properly,
point it at a light or something, or make sure that your entities are
not being disturbed/triggered by something else.
Re: triggers with weapons Posted by STURMguy22 on Tue Nov 23rd 2004 at 10:56pm
STURMguy22
4 posts
Posted 2004-11-23 10:56pm
4 posts 0 snarkmarks Registered: Nov 23rd 2004
Thank you for the reply. Unfortunately, I am unable to get it working.

I have 2 entities, one brush and one point. The brush is named
Scout_equipper and the point is Scout_entity. Scout_equipper is a
trigger_multiple and the Scout_entity is the game_player_equip. I
put the equipper's name in the "Team Master (Obsolete)" section.
Then I made my output on the equipper using

"My output named" - OnStartTouch

"Target's entities named" - Scout_entity

"Via this input" - _______

As you can see, I don't know what to put in the last field. Also,
I cannot find the box to make the entity not fire right at the start of
the map. Can anyone see what I am doing wrong? Also, for
some reason I am unable to play sounds when previewing so I can't do
Waldo's tutorial correctly. Heh, and I don't know how to trigger
a light either (because I don't know what to put in the last output
field of that either).

Re: triggers with weapons Posted by omegaslayer on Tue Nov 23rd 2004 at 11:03pm
omegaslayer
2481 posts
Posted 2004-11-23 11:03pm
2481 posts 595 snarkmarks Registered: Jan 16th 2004 Occupation: Sr. DevOPS Engineer Location: Seattle, WA
I think the stylistic choice in cs to give weapons right away for free is poor. CS is based around saving up money and buying a weapons that you saved up for after dying or conserving money for many rounds. Ive played these types of maps and and the fun factor isn't there. But dont listen to me im a bush hater:D
Re: triggers with weapons Posted by Raeth on Wed Nov 24th 2004 at 4:16am
Raeth
62 posts
Posted 2004-11-24 4:16am
Raeth
member
62 posts 16 snarkmarks Registered: Nov 24th 2004 Location: USA
You need to add a key for each weapon you want the game_player_equip to
give out. For example, to give out a scout, you would add a key
called "weapon_scout" with a value of 1 to the g_p_e. Set the
g_p_e flag "Use Only" to prevent it from firing right away.

Now go forth and make legions of noob fy_ maps that should never have seen the light of day!
Re: triggers with weapons Posted by STURMguy22 on Thu Nov 25th 2004 at 4:38am
STURMguy22
4 posts
Posted 2004-11-25 4:38am
4 posts 0 snarkmarks Registered: Nov 23rd 2004
What I plan to do with the triggering should be of no concern. I
want to learn how to trigger a certain action, and I hope that help can
be given just based on my request for it; not because of your gaming
preferences.

Thank you for clarifying the "use only" checkbox. I checked it
once before and instead of giving me the starting pistol, I was given
nothing. I'm not sure why that would happen.