Re: How to recieve a nade every 2 seconds...
Posted by devil_monkey471 on
Sat Jan 29th 2005 at 10:21pm
Posted
2005-01-29 10:21pm
27 posts
13 snarkmarks
Registered:
Jan 27th 2005
Location: Canada
Ok, so I know you have to make a new key under the game_player_equop, for the
weapon you want (in my case, an HE nade). I have the timer ready, and
I want to try to equip the player with a nade every 2 seconds.
I just can't figure how to make the G_P_E give the player a nade when
the timer goes, since there isn't a direct option to "give item" under
the G_P_E's inputs.
Before you ask, this is for a map I'm making for some people to help with their grenade aim...
Re: How to recieve a nade every 2 seconds...
Posted by devil_monkey471 on
Mon Jan 31st 2005 at 3:50pm
27 posts
13 snarkmarks
Registered:
Jan 27th 2005
Location: Canada
Bah, it's not that hard of a question is it?
Re: How to recieve a nade every 2 seconds...
Posted by devil_monkey471 on
Mon Jan 31st 2005 at 10:18pm
Posted
2005-01-31 10:18pm
27 posts
13 snarkmarks
Registered:
Jan 27th 2005
Location: Canada
Ok, here's what I've tried so far...
I made a logic_timer. Time set to 1 second. On the timer, I told
it to output to a math_counter entity, and to tell it to multiply by
-1. The math_counter was set to 1 originally, so this sets it to
-1, then 1, then -1 etc, every second. I made the math_counter
entity output to a logic_relay, and tell it to enable when the counter
reads 1, and disable when the counter reads -1.
The g_p_e is set to equipe the player when the logic_relay is on.
I figured this little ingenious way would work, but it's still not
giving my a nade every 2 seconds... I get a nade at the beginning, and
after that it does nothing.
Maybe the game_player_equip can only be fired once?
I really want to get this to work, so please somebody pipe up.
Re: How to recieve a nade every 2 seconds...
Posted by DrGlass on
Mon Jan 31st 2005 at 10:45pm
Posted
2005-01-31 10:45pm
DrGlass
member
1825 posts
632 snarkmarks
Registered:
Dec 12th 2004
Occupation: 2D/3D digital artist
Location: USA
all you should have to do is have a logic_timer that goes off every 2 seconds and triggers game_player_equip
Re: How to recieve a nade every 2 seconds...
Posted by devil_monkey471 on
Tue Feb 15th 2005 at 12:48am
Posted
2005-02-15 12:48am
27 posts
13 snarkmarks
Registered:
Jan 27th 2005
Location: Canada
And the problem with that is that I can't trigger the game_player_equip.
I can set the GPE to go off when a logic_relay is active, and have that
entity be enabled and disabled every 2 seconds, but it only works the
first time. :sad:
Re: How to recieve a nade every 2 seconds...
Posted by Grash on
Tue Mar 1st 2005 at 8:38pm
32 posts
43 snarkmarks
Registered:
Jan 5th 2005
Occupation: Developer
Location: USA
I believe player Equip is intended for the begining of the round only. What you need to do is set up points to spawn grenades in. Use the logic timer to trigger a point template. I would give you an example map, but I can't to get weapons into CSS maps at all.
Re: How to recieve a nade every 2 seconds...
Posted by smidsy on
Wed Mar 2nd 2005 at 12:27pm
Posted
2005-03-02 12:27pm
smidsy
member
143 posts
44 snarkmarks
Registered:
Dec 4th 2004
Occupation: ex army, working as electrition
Location: uk
i have to dis agree with crash and say that player quip can be used after the start time. in one of my maps i placed a trigger and a player equip which was linked to the trigger which was a trigger once. although i didnt add a logic timer which i will after this post. there were too many wepons spawning and it got out of hand. so with this i will and a logic timer. the player equip does work unless im wrong and it is another entity that i have used but i cant check because im in school. later i will reply with what i used and hopefully might shine some more light on what type of entity to use. Also i will experament with diffrent types of entities in which to use to get the proper way to spawn weapons correctly.