User panel stuff on forum
  24 posts on 1 page  1
Team Fortress
2006-05-30, 17:39
Member
64 posts

Registered:
Mar 2006
Could someone give me one please? Thanks a lot
2006-05-30, 20:30
Member
151 posts

Registered:
Jan 2006
alias for FuhQuake/ezQuake:
It consists of 2 parts: message trigger and binds
1)
msg_trigger gr "renade primed" -l 2
alias gr "play count.wav"

2)
bind key1 primeone
bind key2 primetwo
bind key3 throwgren

or

bind key1 +gren1
bind key2 +gren2
kill me now and burn my soul
2006-05-30, 21:29
Member
64 posts

Registered:
Mar 2006
Thanks a lot
2007-05-25, 00:51
Member
28 posts

Registered:
May 2007
i have a push same button script, as in, push q to prime, push q again to throw. let me know if youd like it and i can post (at girlfriends atm).
2007-05-25, 16:57
Member
64 posts

Registered:
Mar 2006
shayolden wrote:
i have a push same button script, as in, push q to prime, push q again to throw. let me know if youd like it and i can post (at girlfriends atm).

I switched to this but sadly the timer does not work anymore Anyone know of an alias that will work with this script?
2007-05-29, 21:37
Member
37 posts

Registered:
Mar 2006
//Aliases
alias WGPrimed "set primed 1; play count.wav"
alias f_respawn "set primed 0"
alias primereset0 "set primed 0"
alias primereset1 "set primed 0"
alias primereset2 "set primed 0"
alias primereset3 "set primed 0"
alias primereset4 "set primed 0"
alias primereset5 "set primed 0"
alias primereset6 "set primed 0"
alias primereset7 "set primed 0"
alias primereset8 "set primed 0"
alias primereset9 "set primed 0"

//Binds
bind e "throwgren; wait; if $primed = 0 primetwo; set primed 0"
bind q "throwgren; wait; if $primed = 0 primeone; set primed 0"

//Triggers
msg_trigger WGPrimed "renade primed"
msg_trigger primereset9 "$name, study grenade dynamics on your own time!" -l 1
msg_trigger primereset8 "$name, you can blow your cover in easier ways!" -l 1
msg_trigger primereset7 "$name, the grenade does explode on '3'!" -l 1
msg_trigger primereset6 "$name, you're not THAT heavy!" -l 1
msg_trigger primereset5 "$name! Assist your own suicide some other time!" -l 1
msg_trigger primereset3 "$name, you're supposed to THROW the grenade!" -l 1
msg_trigger primereset2 "$name, don't quit your day job!" -l 1
msg_trigger primereset1 "$name, swallowing the grenade isn't very effective" -l 1
msg_trigger primereset0 "$name, throw the grenade, not the pin!" -l 1

set primed 0
2007-05-29, 22:48
Member
401 posts

Registered:
Mar 2006
Why cheat?
2007-05-31, 12:11
Member
312 posts

Registered:
Feb 2006
although some have been posted which works i suppose (who would post stuff that didnt work) but anyway heres mine

alias grentim1 "primeone; wait; play blom.wav ; wait; primeone; wait; primeone;bind a grentim11"
alias grentim11 "throwgren; wait; throwgren; wait; throwgren;bind a grentim1"
alias grentim2 "primetwo; wait; play blom.wav; wait; primetwo; wait; primetwo;bind z grentim22"
alias grentim22 "throwgren; wait; throwgren; wait; throwgren;bind z grentim2"
bind a grentim1
bind z grentim2
2007-06-07, 07:08
Member
28 posts

Registered:
May 2007
tp_forceTriggers "1"
alias f_respawn "gr"
alias gr "bind q pg1;bind e pg2"
alias gs "play gren.wav"
alias pg1 "primeone;bind q tg1"
alias pg2 "primetwo;bind e tg2"
alias tg1 "throwgren;bind q pg1"
alias tg2 "throwgren;bind e pg2"
msg_trigger gs "renade primed,"

bind q "pg1"
bind e "pg2"


Features:

Push once to prime, push again to release.
Timer gren.wav (goes in fortress/sounds)
Resets on spawn, (no annoying dud-prime on first press)
Timer only plays when grenade primes (doesnt play when pressed if no grens are left)


Known Bugs:
Does not reset after gren jump where gren is held (easily fixed by just pressing q again after gren jump)

I can't seem to fix this bug... I notice above that message triggers are used to avoid this, however ive never been able to use those messages as a message trigger for some reason, and i doubt that they work in the example above:

Quote:
msg_trigger primereset9 "$name, study grenade dynamics on your own time!" -l 1
msg_trigger primereset8 "$name, you can blow your cover in easier ways!" -l 1
msg_trigger primereset7 "$name, the grenade does explode on '3'!" -l 1
msg_trigger primereset6 "$name, you're not THAT heavy!" -l 1
msg_trigger primereset5 "$name! Assist your own suicide some other time!" -l 1
msg_trigger primereset3 "$name, you're supposed to THROW the grenade!" -l 1
msg_trigger primereset2 "$name, don't quit your day job!" -l 1
msg_trigger primereset1 "$name, swallowing the grenade isn't very effective" -l 1
msg_trigger primereset0 "$name, throw the grenade, not the pin!" -l 1
2007-06-07, 07:23
Member
28 posts

Registered:
May 2007
yep i just tried implementing the quoted msg_triggers to my script, but the DO NOT work. (ezquake 1.8 stable). As far as i know its never been possible to use those messages as a trigger.

anyone know why this is?

and does anyone know of a way around this?

so far every push to prime - push to release script has been flawed in one way or another...

challenge: can u make the perfect gren script?
2007-06-08, 17:14
Member
159 posts

Registered:
Jun 2007
cant use eg. "$name, study grenade dynamics on your own time!"

anyone know why this is, or if there is a command to toggle msg_triggers working on gren announcements?
FortressOne - A QuakeWorld Team Fortress package for Windows and Linux | https://www.fortressone.org
2007-06-15, 13:28
Member
37 posts

Registered:
Mar 2006
Just replace $name with your actual name
2007-06-15, 18:23
Member
159 posts

Registered:
Jun 2007
your absolutely right!

Just implemented into my code... and it works 100%. IVE DREAMED ABOUT THIS DAY.

tp_forceTriggers "1"
alias f_respawn "gr"
alias gr "bind q pg1;bind e pg2"
alias gs "play gren.wav"
alias pg1 "primeone;bind q tg1"
alias pg2 "primetwo;bind e tg2"
alias tg1 "throwgren;bind q pg1"
alias tg2 "throwgren;bind e pg2"
msg_trigger gs "renade primed,"
bind q "pg1"
bind e "pg2"

msg_trigger primereset9 "zel, study grenade dynamics on your own time!" -l 1
msg_trigger primereset8 "zel, you can blow your cover in easier ways!" -l 1
msg_trigger primereset7 "zel, the grenade does explode on '3'!" -l 1
msg_trigger primereset6 "zel, you're not THAT heavy!" -l 1
msg_trigger primereset5 "zel! Assist your own suicide some other time!" -l 1
msg_trigger primereset3 "zel, you're supposed to THROW the grenade!" -l 1
msg_trigger primereset2 "zel, don't quit your day job!" -l 1
msg_trigger primereset1 "zel, swallowing the grenade isn't very effective" -l 1
msg_trigger primereset0 "zel, throw the grenade, not the pin!" -l 1

alias primereset9 gr
alias primereset8 gr
alias primereset7 gr
alias primereset6 gr
alias primereset5 gr
alias primereset4 gr
alias primereset3 gr
alias primereset2 gr
alias primereset1 gr
alias primereset0 gr

...is there a command i can use like $name to make it a generic script, so i can include in my upcoming tf build? Or must the name change be done manually?
FortressOne - A QuakeWorld Team Fortress package for Windows and Linux | https://www.fortressone.org
2007-06-15, 18:25
Member
37 posts

Registered:
Mar 2006
do you have any rulesets on?
2007-06-15, 18:33
Member
159 posts

Registered:
Jun 2007
hey scubs sorry edited my reply after i tested (-;
FortressOne - A QuakeWorld Team Fortress package for Windows and Linux | https://www.fortressone.org
2007-06-15, 18:49
Member
37 posts

Registered:
Mar 2006
can nsis installer write text files? maybe you could have the user type in their name then generate a grenade.cfg file
2007-06-16, 02:19
Member
159 posts

Registered:
Jun 2007
thats not a bad idea... perhaps ill add the name maker to the build, and code something to write that gren script... shouldnt be too hard.
FortressOne - A QuakeWorld Team Fortress package for Windows and Linux | https://www.fortressone.org
2007-06-19, 06:37
Member
159 posts

Registered:
Jun 2007
Still, seems a shame thats the only way.

$name doesnt work... is there anything that does?

was thinking along the lines of

set $n = joe
name "$n"

then use $n in gren script... that was all that needs editing is $n or whatever.
FortressOne - A QuakeWorld Team Fortress package for Windows and Linux | https://www.fortressone.org
2007-06-20, 00:51
Member
37 posts

Registered:
Mar 2006
Can't use any variables in the quote part of the msg_trigger
2007-07-18, 04:51
Member
1 post

Registered:
Jul 2007
Hi!
Following works in qw262 client.
Note! Messages could be different across TF versions.
register scout_gren_exploded_inside
set_ex scout_gren_exploded_inside "^No @name(,)? swallowing the grenade isn't very effective!$"

re_trigger gren_exploded_inside {@scout_gren_exploded_inside}
re_trigger_options gren_exploded_inside final mask 2
alias gren_exploded_inside "on_gren_exploded_inside"

alias on_gren_exploded_inside "bind MOUSE2 prime_gren"

(I put together code from different files)
2007-07-21, 05:23
Member
2 posts

Registered:
Jul 2007
Can anyone give me the code to use grenades on your right click? (sorry, noob at codin....Just a noob )
2007-07-21, 05:38
Member
159 posts

Registered:
Jun 2007
bind x primeone
bind y primetwo
bind mouse2 throwgren

if thats what you meant?
FortressOne - A QuakeWorld Team Fortress package for Windows and Linux | https://www.fortressone.org
2007-07-21, 07:37
Member
2 posts

Registered:
Jul 2007
Somewhat, I usually play on fortress as a Engineer. I tried that but it still doesn't throw a grenade, yet the special menu said the engineer gets 2 types of grenades.

I'd provide more information, but I'm still new at this

[edit]

I have two buttons on my mouse, that make internet explorer go foward or back, can I use them to select grenades and then use the second mousebutton to fire them?
2007-07-21, 14:19
Member
200 posts

Registered:
Apr 2006
every class has 2 types of grenade, what you need is 2 button to prime then (1 for each time) and another tha throws the grenade you primed. You can bind your mouse buttons using bind mouse3 "whatever", bind mouse4 "whatever".

So that's what I sugest for your case

bind mouse4 "primeone" //main grenade, usually the same for every class (only scout is different)
bind mouse5 "primetwo" //class dependant grenade

bind mouse2 "throwgren" //throws the previously primed grenade
  24 posts on 1 page  1