User panel stuff on forum
  7 posts on 1 page  1
Advanced Configuration
2008-03-06, 15:31
Member
229 posts

Registered:
Aug 2007
I have a quick question. Anyone able to provide me a short script(as short as possible) which reports what powerups I have when I press _coming?

Like this:
p coming [low-rl]

Or like this:
qr coming [low-rl]

Thanks.
TEAM QUAD [need nothing]
shaga loses another friend
shaga discovers blast radius

QUAD
2008-03-06, 15:39
Member
51 posts

Registered:
Jul 2007
Took this from the EQ260 Script

alias .coming "say_team $\$nick $eq_green $tp_name_coming $l"
alias .coming2 "say_team $\$nick $eq_green $tp_name_coming $l %A%a"
alias .comingamrpowp "say_team $\$nick $eq_green {p} coming $l %A%a"
alias .comingamrpowpr "say_team $\$nick $eq_green {pr} coming $l %A%a"
alias .comingamrpowq "say_team $\$nick $eq_green {q} coming $l %A%a"
alias .comingamrpowqp "say_team $\$nick $eq_green {qp} coming $l %A%a"
alias .comingamrpowqpr "say_team $\$nick $eq_green {qpr} coming $l %A%a"
alias .comingamrpowqr "say_team $\$nick $eq_green {qr} coming $l %A%a"
alias .comingamrpowr "say_team $\$nick $eq_green {r} coming $l %A%a"
alias .comingpowp "say_team $\$nick $eq_green {p} coming $l"
alias .comingpowpr "say_team $\$nick $eq_green {pr} coming $l"
alias .comingpowq "say_team $\$nick $eq_green {q} coming $l"
alias .comingpowqp "say_team $\$nick $eq_green {qp} coming $l"
alias .comingpowqpr "say_team $\$nick $eq_green {qpr} coming $l"
alias .comingpowqr "say_team $\$nick $eq_green {qr} coming $l"
alias .comingpowr "say_team $\$nick $eq_green {r} coming $l"

alias _coming "if $health < 1 then _lost else _coming1"
alias _coming1 "if $qt$powerups$qt = $qt$tp_name_none$qt then _coming2 else _comingp"
alias _coming2 "if $bestweapon != $qt$tp_name_rl$qt then _coming3 else .coming"
alias _coming3 "if $armor > 99 then .coming2 else .coming"
alias _comingamrpow "if $qt$powerups$qt == $qt$tp_name_quad$qt then .comingamrpowq else _comingamrpow2"
alias _comingamrpow2 "if $qt$powerups$qt == $qt$tp_name_pent$qt then .comingamrpowp else _comingamrpow3"
alias _comingamrpow3 "if $qt$powerups$qt == $qt$tp_name_ring$qt then .comingamrpowr else _comingamrpow4"
alias _comingamrpow4 "if $qt$tp_name_quad$qt !isin $qt$powerups$qt then .comingamrpowpr else _comingamrpow5"
alias _comingamrpow5 "if $qt$tp_name_ring$qt !isin $qt$powerups$qt then .comingamrpowqp else _comingamrpow6"
alias _comingamrpow6 "if $qt$tp_name_pent$qt !isin $qt$powerups$qt then .comingamrpowqr else .comingamrpowqpr"
alias _comingp "_comingp1"
alias _comingp1 "if $bestweapon != $qt$tp_name_rl$qt then _comingp2 else _comingpow"
alias _comingp2 "if $armor > 99 then _comingamrpow else _comingpow"
alias _comingpow "if $qt$powerups$qt == $qt$tp_name_quad$qt then .comingpowq else _comingpow2"
alias _comingpow2 "if $qt$powerups$qt == $qt$tp_name_pent$qt then .comingpowp else _comingpow3"
alias _comingpow3 "if $qt$powerups$qt == $qt$tp_name_ring$qt then .comingpowr else _comingpow4"
alias _comingpow4 "if $qt$tp_name_quad$qt !isin $qt$powerups$qt then .comingpowpr else _comingpow5"
alias _comingpow5 "if $qt$tp_name_ring$qt !isin $qt$powerups$qt then .comingpowqp else _comingpow6"
alias _comingpow6 "if $qt$tp_name_pent$qt !isin $qt$powerups$qt then .comingpowqr else .comingpowqpr"

bind X "_coming"
range"> » Mob of Oddballsrange"> » #mofo @ qnet
2008-03-06, 15:40
Member
229 posts

Registered:
Aug 2007
Thank you very much. Much appreciated.

EDIT:
It didn't work. It required some aliases from that EQ260 config. Here's a clean version if someone else wants it.
alias .coming "say_team $\$nick coming $[{%l}$]"
alias .comingpowp "say_team $\$nick $colored_short_powerups coming $[{%l}$]"
alias .comingpowpr "say_team $\$nick $colored_short_powerups coming $[{%l}$]"
alias .comingpowq "say_team $\$nick $colored_short_powerups coming $[{%l}$]"
alias .comingpowqp "say_team $\$nick $colored_short_powerups coming $[{%l}$]"
alias .comingpowqpr "say_team $\$nick $colored_short_powerups coming $[{%l}$]"
alias .comingpowqr "say_team $\$nick $colored_short_powerups coming $[{%l}$]"
alias .comingpowr "say_team $\$nick $colored_short_powerups coming $[{%l}$]"

alias _coming "if $health < 1 then _lost else _coming1"
alias _coming1 "if $qt$powerups$qt = $qt$tp_name_none$qt then .coming else _comingp"
alias _coming2 "if $bestweapon != $qt$tp_name_rl$qt then _coming3 else .coming"
alias _comingp "_comingpow"
alias _comingpow "if $qt$powerups$qt == $qt$tp_name_quad$qt then .comingpowq else _comingpow2"
alias _comingpow2 "if $qt$powerups$qt == $qt$tp_name_pent$qt then .comingpowp else _comingpow3"
alias _comingpow3 "if $qt$powerups$qt == $qt$tp_name_ring$qt then .comingpowr else _comingpow4"
alias _comingpow4 "if $qt$tp_name_quad$qt !isin $qt$powerups$qt then .comingpowpr else _comingpow5"
alias _comingpow5 "if $qt$tp_name_ring$qt !isin $qt$powerups$qt then .comingpowqp else _comingpow6"
alias _comingpow6 "if $qt$tp_name_pent$qt !isin $qt$powerups$qt then .comingpowqr else .comingpowqpr"
TEAM QUAD [need nothing]
shaga loses another friend
shaga discovers blast radius

QUAD
2008-03-06, 22:30
Member
113 posts

Registered:
Apr 2006
Personally I would prefer something like this
alias tclreport {} {
if {$::health < 1} {
cmd _lost
break
}
set powerupsreport {}
if {[string match *quad* $::powerups]} {
set powerupsreport [concat $powerupsreport "\{&c05fq&cfff\}"]
}
if {[string match *pent* $::powerups]} {
set powerupsreport [concat $powerupsreport "\{&cf00p&cfff\}"]
}
if {[string match *ring* $::powerups]} {
set powerupsreport [concat $powerupsreport "\{&c0a0r&cfff\}"]
}
cmd "say_team \$\\\$nick $powerupsreport coming \$\[\{%l\}\$\]"
}

Put the code into a textfile and load it with tcl_exec path-to-file, then bind a button "bind x tclreport".

It's a lot more readable than spaghetti ifs =)
biomass
2008-03-07, 16:22
Member
171 posts

Registered:
Jan 2006
Shaga, else, if you want a fully functional "coming" according to your needs, + a super goodie-good allround config, use this one

http://web.telia.com/~u46505083/Quake/freedom_tp.cfg

EDIT: Ah, just saw and realized you wanted colored Q R P... which my config doesn't have. But if you hax it it will have
.over.and.out.ten.four.roger.that.affirmative.
2008-04-21, 22:21
Member
186 posts

Registered:
Jan 2008
Since there is a macro for this its kinda easy.

alias ".tp_coming" "say_team $colored_short_powerups coming %l"
2008-04-22, 08:43
News Writer
437 posts

Registered:
Jan 2006
SmackThatAss use a TP cfg that fits your needs. download
  7 posts on 1 page  1