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...
1
Re: How to recieve a nade every 2 seconds...
Posted by devil_monkey471 on Sat Jan 29th at 10:21pm 2005
Posted by devil_monkey471 on Sat Jan 29th at 10:21pm 2005
Re: How to recieve a nade every 2 seconds...
Posted by devil_monkey471 on Sun Jan 30th at 7:53pm 2005
Posted by devil_monkey471 on Sun Jan 30th at 7:53pm 2005
Bump?
Re: How to recieve a nade every 2 seconds...
Posted by devil_monkey471 on Mon Jan 31st at 3:50pm 2005
Posted by devil_monkey471 on Mon Jan 31st at 3:50pm 2005
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 at 10:18pm 2005
Posted by devil_monkey471 on Mon Jan 31st at 10:18pm 2005
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.
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 at 10:45pm 2005

DrGlass
member
1825 posts
293 snarkmarks
Registered: Dec 12th 2004
Location: USA
Occupation: 2D/3D digital artist
Posted by DrGlass on Mon Jan 31st at 10:45pm 2005
all you should have to do is have a logic_timer that goes off every 2 seconds and triggers game_player_equip
[addsig]
[addsig]
DrGlass
member
1825 posts
293 snarkmarks
Registered: Dec 12th 2004
Location: USA
Occupation: 2D/3D digital artist
Re: How to recieve a nade every 2 seconds...
Posted by devil_monkey471 on Tue Feb 15th at 12:48am 2005
Posted by devil_monkey471 on Tue Feb 15th at 12:48am 2005
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.
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.

Re: How to recieve a nade every 2 seconds...
Posted by Grash on Tue Mar 1st at 8:38pm 2005
Posted by Grash on Tue Mar 1st at 8:38pm 2005
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 at 12:27pm 2005

smidsy
member
143 posts
44 snarkmarks
Registered: Dec 4th 2004
Location: uk
Occupation: ex army, working as electrition
Posted by smidsy on Wed Mar 2nd at 12:27pm 2005
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.
smidsy
member
143 posts
44 snarkmarks
Registered: Dec 4th 2004
Location: uk

Occupation: ex army, working as electrition
1
© Snarkpit.net 2001 - 2023, about us, donate, contact
Snarkpit v6.1.0 created this page in 0.1423 seconds.

Snarkpit v6.1.0 created this page in 0.1423 seconds.

