// shaman's ezQuake teamplay configuration file
// e-mail: post at o2 dot pl
// (C) Hugo Dworak 2000-2004

// LEDs:
// $x86 = green   - teammates, safe, u take, has, our, took, coming, camping, ok, don't kill, i take, my pack, soon, unlocked, powerup over, rl died 
// $x87 = red     - enemies, enemy powerups, death messages, negative, nmy coming from, nmy holds, breached, enemy rl, discharge warning, nmy took secret ra, lava opened, lag report
// $x89 = blue    - pointed items that are not: powerups (except the biosuit), eyes, enemies or teammates 
// $x8b = brown   - chat, questions, pointed eyes, orders without specified location
// $x88 = yellow  - ...everything else

// Magic LEDs:
// $ledpoint      - the type of object you point
// $ledstatus     - related to how much do you need




// prefix for teamplay reports
set nick                    "noob"

// bindings

bind mwheelup       "x_get"
bind mwheeldown     "x_need"

bind 1              "x_ringover"
bind 2              "x_trick"
bind 3              "x_statusra"
bind 4              "x_statusquad"

bind 5              "x_getquad"
bind 6              "x_quadover"
bind 7              "x_pentover"
bind 8              "x_nosorry"

bind q              "x_statusya"
bind w              "x_tele"
bind e              "x_coming"
bind i              "x_choose_best"

bind y              "x_report"
bind u              "x_attacklost"
bind 9              "x_iquad"
bind a              "x_lostpack"

bind s              "x_lost"
bind h              "x_took"
bind j              "x_call"
bind k              "x_already"

bind z              "x_rasecure"
bind x              "x_swap"
bind c              "x_safe"
bind v              "x_wait"

bind b              "x_enemy"
bind n              "x_call"
bind capslock       "x_cancel"
bind lwinkey        "x_yasecure"

bind lalt           "x_itemsoon"
bind lctrl          "x_cantyoutake"
bind lshift         "x_help"

bind rightarrow     "x_msg1"
bind leftarrow      "x_msg2"
bind uparrow        "x_msg3"
bind downarrow      "x_msg4"

bind f1             "x_msg5"
bind f2             "x_msg6"
bind f3             "x_pent30"
bind f4             "x_getpent"

bind f5             "x_scores"
bind f6             "x_itemsoon"
bind f7             "x_iquad"
bind f8             "x_hide"

bind f9             "x_msg7"
bind f10            "x_msg8"
bind f11            "x_msg9"
bind f12            "x_msg10"

// end of bindings











































// DON'T CHANGE ANYTHING BELOW

// basic variables
set loc_name_ga             "GA"
set loc_name_mh             "MEGA"
set loc_name_ra             "RA"
set loc_name_separator      "-"
set loc_name_ya             "YA"
set tp_name_ask_status      "status?"
set tp_name_attack          "attack"
set tp_name_get             "get"
set tp_name_go_secure       "go secure!"
set tp_name_now             "NOW!"
set tp_name_over            "over"
set tp_name_rush            "rush - attack NOW!"
set tp_name_seconds         "s"
set tp_need_ping            "89"
set tp_waymaps              "?dm2?dm3?dm4?dm5?dm6?e1m2?e1m6?e3m2?e3m3?e3m4?ukooldm4?"
set x_last_mega_location    ""
set x_mega_active           "0"
set x_mega_timer            "0"
set x_parsing               "1"
set x_funparsing            "1"

// those variables must not be empty
if $qt$tp_name_none$qt = $qt$qt then $qtset tp_name_none -$qt
if $qt$tp_name_separator$qt = $qt$qt then $qtset tp_name_separator $x0f$qt

// warn if prefix is default
if $qt$nick$qt = $qtnoob$qt then echo Change your reports prefix using /set nick pfx

// load location file
loadloc $mapname

// resets mega timer on map change
alias  on_enter                          "set x_last_mega_location $qt$qt;set x_mega_active 0"

// produces $x_lag
alias  x_recalculate_lag                 "set x_lag $qt$qt;if $latency > $tp_need_ping then $qtset x_lag $x20$x87$x87$x20{PING $latency}$qt"

// produces $x_bestweapon
alias  x_recalculate_weapons_cells       "set x_rl_lg_cells 0;if $qt$bestweapon$qt = $qt$tp_name_rl$qt then if $qt$tp_name_lg$qt isin $qt$weapons$qt then if $cells >= $tp_need_cells then set x_rl_lg_cells 1"
alias  x_recalculate_weapons_rl_lg       "set x_rl_lg 0;if $qt$bestweapon$qt = $qt$tp_name_rl$qt then if $qt$tp_name_lg$qt isin $qt$weapons$qt then set x_rl_lg 1"
alias  x_recalculate_weapons_sg          "set x_sg 0;if $qt$bestweapon$qt isin $qt$tp_name_none$tp_name_separator$tp_name_axe$tp_name_separator$tp_name_sg$tp_name_separator$tp_name_ng$qt then set x_sg 1"
alias  x_recalculate_weapons_rl          "if $rockets = 0 then $qtset x_rl $tp_name_rl$qt else set x_rl $tp_name_rl:$rockets"
alias  x_recalculate_weapons_ammo        "if $bestammo = 0 then $qtset x_bestweapon $bestweapon$qt else set x_bestweapon $bestweapon:$bestammo"
alias  x_recalculate_weapons_water       "if $qt$tp_name_sng$qt isin $qt$weapons$qt then if $qt$tp_name_sng$qt != $qt$bestweapon$qt $qtset x_bestweapon $x_bestweapon$tp_name_separator$tp_name_sng:$nails;if $qt$tp_name_sng$qt !isin $qt$weapons$qt then if $qt$tp_name_ssg$qt != $qt$bestweapon$qt then if $qt$tp_name_ssg$qt isin $qt$weapons$qt then set x_bestweapon $x_bestweapon$tp_name_separator$tp_name_ssg:$shells"
alias  x_recalculate_weapons             "x_recalculate_weapons_rl;x_recalculate_weapons_cells;x_recalculate_weapons_rl_lg;x_recalculate_weapons_sg;set x_bestweapon $qt$qt;if $x_rl_lg_cells = 1 then $qtset x_bestweapon $x_rl$tp_name_separator$tp_name_lg:$cells$qt else if $x_rl_lg = 1 then $qtset x_bestweapon $x_rl$tp_name_separator$tp_name_lg$qt else if $x_sg = 0 then x_recalculate_weapons_ammo;if $mapname != dm2 then if $qtwater$qt isin $qt$location$qt then x_recalculate_weapons_water;if $qt$x_bestweapon$qt != $qt$qt then set x_bestweapon $qt$x_bestweapon$x20$qt"

// produces $x_armor
alias  x_recalculate_armor               "set x_armor $qt$qt;if $qt$armortype$qt != $qt$tp_name_none$qt then if $armor > 0 then $qtset x_armor $armortype$armor$tp_name_separator$qt;if $qt$tp_name_pent$qt isin $qt$powerups$qt then set x_armor $qt$[{$tp_name_pent}$]$x20$qt"

// produces $x_health (white text might cover 201+ health)
alias  x_recalculate_health              "set x_health $qt$qt;if $health < 501 then if $qt$tp_name_pent$qt !isin $qt$powerups$qt then $qtset x_health $health$x20$qt;if $qt$armortype$qt = $qt$tp_name_none$qt then if $health < 501 then if $qt$tp_name_pent$qt !isin $qt$powerups$qt then $qtset x_health h$x_health$qt"

// produces $x_powerups (this is only for the report bind; the pent and the biosuit are not reported)
alias  x_recalculate_powerups_ring       "if $qt$tp_name_quad$qt isin $qt$powerups$qt then $qtset x_powerups QR$qt else $qtset x_powerups $tp_name_ring$qt"
alias  x_recalculate_powerups_quad       "if $qt$tp_name_quad$qt isin $qt$powerups$qt then $qtset x_powerups $tp_name_quad$qt"
alias  x_recalculate_powerups            "set x_powerups $qt$qt;if $qt$tp_name_ring$qt isin $qt$powerups$qt then x_recalculate_powerups_ring else x_recalculate_powerups_quad;if $qt$x_powerups$qt != $qt$qt then set x_powerups $qt$[{$x_powerups}$]$qt"

// produces $x_pows (the biosuit is not reported)
alias  x_recalculate_pows_two            "if $qt$tp_name_quad$qt isin $qt$powerups$qt then $qtset x_pows $x_powsQ$qt;if $qt$tp_name_pent$qt isin $qt$powerups$qt then $qtset x_pows $x_powsP$qt;if $qt$tp_name_ring$qt isin $qt$powerups$qt then $qtset x_pows $x_powsR$qt"
alias  x_recalculate_pows_short          "if $qt$tp_name_quad$tp_name_separator$tp_name_pent$tp_name_separator$tp_name_ring$qt isin $qt$powerups$qt then $qtset x_pows QPR$qt else x_recalculate_pows_two"
alias  x_recalculate_pows_single         "if $qt$tp_name_none$qt != $qt$powerups$qt then $qtset x_pows $powerups$qt"
alias  x_recalculate_pows                "set x_pows $qt$qt;if $qt$tp_name_separator$qt !isin $qt$powerups$qt then x_recalculate_pows_single else x_recalculate_pows_short;if $qt$x_pows$qt != $qt$qt then set x_pows $qt$[{$x_pows}$]$qt"

// should cover more than one megahealth taken
alias  x_mega_notify                     "playvol boss2/idle 5;if $qt$x_last_mega_location$qt != $qt$qt then say_team $\$nick$x89 $tp_name_mh soon {$x_last_mega_location}"
alias  x_mega_check                      "if $qt$x_mega_timer$qt = $qt1$qt then x_mega_notify"
alias  x_mega                            "x_mega_check;set x_mega_active 0"
alias  x_recalculate_mega                "if $x_mega_active = 1 then if $health < 101 then x_mega"

// report recalculation
alias  x_recalculate                     "x_recalculate_mega;x_recalculate_lag;x_recalculate_weapons;x_recalculate_armor;x_recalculate_health;x_recalculate_powerups;x_recalculate_pows"

// status
alias  x_status                          "x_recalculate;say_team $\$nick$ledstatus $x_armor$x_health$x_bestweapon{$location} $x_powerups$x_lag"

// lost
alias  x_lost_empty                      "if $qt$deathloc$qt != $qt$tp_name_someplace$qt then say_team $\$nick$x87 {$deathloc} lost %EE"
alias  x_lost_backpack                   "if $qt$deathloc$qt != $qt$tp_name_someplace$qt then say_team $\$nick$x87 died $tp_name_at {$deathloc} with $weapon:$ammo %EE"
alias  x_lost                            "x_recalculate_mega;if $qt$weapon$qt = $qt$tp_name_rl$qt then x_lost_backpack else if $qt$weapon$qt = $qt$tp_name_lg$qt then x_lost_backpack else x_lost_empty"

// status or lost
alias  x_report                          "if $health < 1 then x_lost else x_status"

// coming
alias  x_comingshort                     "say_team $\$nick$x86 coming $x_bestweapon{$location} $x_pows"
alias  x_comingway                       "say_team $\$nick$x86 coming $x_bestweapon{$location} to {%Z} $x_pows$x20"
alias  x_comingwaypoints                 "x_recalculate;if ?$mapname? !isin $qt$tp_waymaps$qt then x_comingshort else x_comingway"
alias  x_coming                          "x_recalculate;x_comingshort"

// need, has rl, has powerup, where help, what need
alias  x_needbind                        "say_team $\$nick$ledstatus need $need {$location}"
alias  x_hasweapon                       "if $tp_name_ring isin $qt$powerups$qt then $qtsay_team $\$nick$x86 has $[{$tp_name_ring}$] $ledstatus need $need$qt else $qtsay_team $\$nick$x86 has $bestweapon $ledstatus need $need$qt"
alias  x_haspowerup1                     "say_team $\$nick$x86 has $x_pows $ledstatus need $tp_name_weapon"
alias  x_haspowerup2                     "say_team $\$nick$x86 has $x_pows $ledstatus need $need"

alias  x_teamneed                        "say_team $\$nick$x8b what do u need? REPORT!"
alias  x_wherehelp                       "say_team $\$nick$x8b where is $x_pows help needed?"

alias  x_needpent                        "if $tp_name_weapon isin $qt$need$qt then x_haspowerup1 else x_wherehelp"
alias  x_needself                        "if $tp_name_quad isin $qt$powerups$qt then x_haspowerup2 else if $tp_name_pent isin $qt$powerups$qt then x_needpent else if $tp_name_weapon !isin $qt$need$qt x_hasweapon else x_needbind"
alias  x_needmates                       "if $tp_name_quad isin $qt$powerups$qt then x_wherehelp else if $tp_name_pent isin $qt$powerups$qt then x_wherehelp else x_teamneed"
alias  x_need_check_armor                "if $tp_name_pent isin $qt$powerups$qt then $qtif $need = $tp_name_armor then x_needmates$qt else x_needself"
alias  x_need                            "x_recalculate;if $ledstatus = $tp_name_status_green then x_needmates else x_need_check_armor"

// took, team powerup
alias  x_team                            "say_team $\$nick$x86 our $powerups $ledstatus need $need"
alias  x_took_set                        "set x_last_mega_location $tookloc;set x_mega_active 1"
alias  x_took_check                      "if $qt$tookloc$qt != $qt$tp_name_someplace$qt then x_took_set"
alias  x_took_item                       "if $qt$took$qt = $qt$tp_name_mh$qt then x_took_check;if $qt$cl_parseSay$qt = 0 then say_team $\$nick$x86 took %i else say_team $\$nick$x86 took $took $tp_name_at {$tookloc}"
alias  x_took                            "if $qt$took$qt = $qt$tp_name_nothing$qt then else if $qt$took$qt = $qt$tp_name_quad$qt then x_team else if $qt$took$qt = $qt$tp_name_pent$qt then x_team else if $qt$took$qt = $qt$tp_name_ring$qt then x_team else x_took_item"

// KTpro's shownick
alias  x_shownick                        "if $ledpoint isin $qt$tp_name_status_green$tp_name_status_red$qt then shownick"

// get, get pack
alias  x_parsing_save                    "set x_funparsing $qt$cl_parseFunChars$qt;set x_parsing $qt$cl_parseSay$qt"
alias  x_parsing_restore                 "cl_parseFunChars $qt$x_funparsing$qt;cl_parseSay $qt$x_parsing$qt"

alias  x_geteyesway                      "say_team $\$nick$x8b %x $tp_name_at {%y}! REPORT!"
alias  x_getenemybway                    "say_team $\$nick$x87 %x $tp_name_at {%y} %e"

alias  x_getpack                         "say_team $\$nick$x89 $tp_name_backpack {$location}"
alias  x_geteyes                         "shownick;if ?$mapname? !isin $qt$tp_waymaps$qt then say_team $\$nick$x8b %x $tp_name_at {%y}! REPORT!$x20 else x_getaskway"
alias  x_getenemyb                       "shownick;if ?$mapname? !isin $qt$tp_waymaps$qt then say_team $\$nick$x87 %x $tp_name_at {%y} %eE$x20 else x_getenemybway"
alias  x_getenemy                        "if $tp_name_eyes isin $qt$point$qt then x_geteyes else x_getenemyb"

alias  x_powerups_red                    "tp_name_eyes eyes;tp_name_quaded Quaded;tp_name_pented Penta"
alias  x_powerups_white                  "x_powerups_red" // "tp_name_eyes {eyes};tp_name_quaded {Quaded};tp_name_pented {Penta}"
alias  x_point_live                      "tp_point powerups armor players suit mh lg rl gl sng ssg pack rockets"
alias  x_point_dead                      "tp_point powerups armor players suit mh lg rl gl sng ssg rockets"

alias  x_getteammatep                    "wait;x_powerups_red;x_getask;x_powerups_white;shownick"
alias  x_getteammateb                    "shownick;x_getask"
alias  x_getteammate                     "if $qt $qt isin $qt$point$qt then x_getteammatep else x_getteammateb"
alias  x_getpower                        "say_team $\$nick$ledpoint $tp_name_get %x $tp_name_now"

alias  x_getb                            "say_team $\$nick$ledpoint %x $tp_name_at {%y}"
alias  x_getelse                         "if $qt$point$qt = $qt$tp_name_nothing$qt then else if $qtrune$qt isin $qt$point$qt then x_getpower else x_getb"
alias  x_getalive                        "if $ledpoint = $tp_name_status_yellow then x_getpower else if $ledpoint = $tp_name_status_red then x_getenemy else if $ledpoint = $tp_name_status_green then x_getteammate else x_getelse"
alias  x_getdeath                        "x_point_dead;if $ledpoint = $tp_name_status_green then else x_getalive;x_point_live"
alias  x_get                             "if $health > 0 then x_getalive else x_getdeath"

alias  x_getask                          "if ?$mapname? !isin $qt$tp_waymaps$qt then say_team $\$nick$x8b status %x $tp_name_at {%y}? else x_getaskway"
alias  x_getaskway                       "say_team $\$nick$x8b status %x $tp_name_at {%y}?"

x_powerups_white
x_point_live

// u take
alias  x_cantyoutakeb                    "say_team $\$nick$x8b can't/u take {$location}"
alias  x_cantyoutaken                    "say_team $\$nick$x86 %x take {$location};shownick"
alias  x_cantyoutakep                    "wait;x_powerups_red;say_team $\$nick$x86 %x take {$location};x_powerups_white;shownick"
alias  x_cantyoutaket                    "if $qt $qt isin $qt$point$qt then x_cantyoutakep else x_cantyoutaken"

alias  x_cantyoutake                     "if $ledpoint = $tp_name_status_green then x_cantyoutaket else x_cantyoutakeb"

// enemy powerup
alias  x_enemyl                          "say_team $\$nick$x87 $tp_name_enemy %q"
alias  x_enemyd                          "if $qt$deathloc$qt != $qt$tp_name_someplace$qt then say_team $\$nick$x87 killed by %q {$deathloc}"
alias  x_enemy                           "if $health < 1 then x_enemyd else x_enemyl"

// go secure
alias  x_gasecure                        "say_team $\$nick$x88 {$loc_name_ga} $tp_name_go_secure"
alias  x_megasecure                      "say_team $\$nick$x88 {$loc_name_mh} $tp_name_go_secure"
alias  x_200secure                       "say_team $\$nick$x88 {$loc_name_ra} $tp_name_go_secure"
alias  x_150secure                       "say_team $\$nick$x88 {$loc_name_ya} $tp_name_go_secure"
alias  x_telesecure                      "say_team $\$nick$x88 {tele} $tp_name_go_secure"
alias  x_yasecure                        "if $mapname = dm2 then x_telesecure else x_150secure"
alias  x_rasecure                        "if $mapname = e1m2 then x_megasecure else x_200secure"

// area status?
alias  x_statusarmor                     "say_team $\$nick$x8b $tp_name_armor $tp_name_ask_status"
alias  x_statusra                        "say_team $\$nick$x8b {$loc_name_ra} $tp_name_ask_status"
alias  x_status150                       "say_team $\$nick$x8b {$loc_name_ya} $tp_name_ask_status"
alias  x_statustele                      "say_team $\$nick$x8b {tele} $tp_name_ask_status"
alias  x_statusya                        "if $mapname = dm2 then x_statustele else x_status150"

// Euthanasia map binds

// - dm2 enemy rl binds
alias  x_dm2rlhigh                       "say_team $\$nick$x87 {high} $tp_name_enemy $tp_name_rl"
alias  x_dm2rlya-tele                    "say_team $\$nick$x87 {tele} $tp_name_enemy $tp_name_rl"
alias  x_dm2rllarge                      "say_team $\$nick$x87 {big} $tp_name_enemy $tp_name_rl"
alias  x_dm2rlra-mega                    "say_team $\$nick$x87 {$loc_name_ra$loc_name_separator$loc_name_mh} $tp_name_enemy $tp_name_rl"

// - dm3 enemy rl binds
alias  x_dm3rlsng                        "say_team $\$nick$x87 {$tp_name_sng} $tp_name_enemy $tp_name_rl"
alias  x_dm3rlpent                       "say_team $\$nick$x87 {lifts/$tp_name_pent} $tp_name_enemy $tp_name_rl"
alias  x_dm3rlya                         "say_team $\$nick$x87 {$loc_name_ya} $tp_name_enemy $tp_name_rl"
alias  x_dm3rlra                         "say_team $\$nick$x87 {$loc_name_ra} $tp_name_enemy $tp_name_rl"

// - e1m2 enemy rl binds
alias  x_e1m2rlya                        "say_team $\$nick$x87 {$loc_name_ya} $tp_name_enemy $tp_name_rl"
alias  x_e1m2rl+100                      "say_team $\$nick$x87 {$loc_name_mh} $tp_name_enemy $tp_name_rl"
alias  x_e1m2rlquad                      "say_team $\$nick$x87 {$tp_name_quad area} $tp_name_enemy $tp_name_rl"
alias  x_e1m2rlstart                     "say_team $\$nick$x87 {start} $tp_name_enemy $tp_name_rl"

// - dm2 attack orders
alias  x_dm2atthigh                      "say_team $\$nick$x88 $tp_name_attack {high}"
alias  x_dm2attya-tele                   "say_team $\$nick$x88 $tp_name_attack {tele}"
alias  x_dm2attlarge                     "say_team $\$nick$x88 $tp_name_attack {big}"
alias  x_dm2attra-mega                   "say_team $\$nick$x88 $tp_name_attack {$loc_name_ra$loc_name_separator$loc_name_mh}"

// - dm3 attack orders
alias  x_dm3attsng                       "say_team $\$nick$x88 $tp_name_attack {$tp_name_sng}"
alias  x_dm3attpent                      "say_team $\$nick$x88 $tp_name_attack {lifts/$tp_name_pent}"
alias  x_dm3attya                        "say_team $\$nick$x88 $tp_name_attack {$loc_name_ya}"
alias  x_dm3attra                        "say_team $\$nick$x88 $tp_name_attack {$loc_name_ra}"

// - e1m2 attack orders
alias  x_e1m2attya                       "say_team $\$nick$x88 $tp_name_attack {$loc_name_ya}"
alias  x_e1m2att+100                     "say_team $\$nick$x88 $tp_name_attack {$loc_name_mh}"
alias  x_e1m2attquad                     "say_team $\$nick$x88 $tp_name_attack {$tp_name_quad}"
alias  x_e1m2attstart                    "say_team $\$nick$x88 $tp_name_attack {start}"

// - ready to bind aliases
alias  x_msg1                            "if $mapname = dm2 then x_dm2rlra-mega else if $mapname = e1m2 then x_e1m2rlstart else x_dm3rlsng"
alias  x_msg2                            "if $mapname = dm2 then x_dm2rlya-tele else if $mapname = e1m2 then x_e1m2rlya else x_dm3rlpent"
alias  x_msg3                            "if $mapname = dm2 then x_dm2rlhigh else if $mapname = e1m2 then x_e1m2rlquad else x_dm3rlra"
alias  x_msg4                            "if $mapname = dm2 then x_dm2rllarge else if $mapname = e1m2 then x_e1m2rl+100 else x_dm3rlya"

alias  x_msg5                            "if $mapname = dm2 then x_dm2secret else x_delayedpent"
alias  x_msg6                            "if $mapname = dm2 then x_dm2lava else x_pent60"

alias  x_msg7                            "if $mapname = dm2 then x_dm2attra-mega else if $mapname = e1m2 then x_e1m2attstart else x_dm3attsng"
alias  x_msg8                            "if $mapname = dm2 then x_dm2attya-tele else if $mapname = e1m2 then x_e1m2attya else x_dm3attpent"
alias  x_msg9                            "if $mapname = dm2 then x_dm2atthigh else if $mapname = e1m2 then x_e1m2attquad else x_dm3attra"
alias  x_msg10                           "if $mapname = dm2 then x_dm2attlarge else if $mapname = e1m2 then x_e1m2att+100 else x_dm3attya"

// breached by cb2
alias  x_tele                            "if $qt$mapname$qt = $qtdm2$qt then x_brslipdm2 else if $qt$mapname$qt = $qtdm3$qt then x_brslipdm3 else if $qt$mapname$qt = $qte1m2$qt then x_brslipe1m2"
alias  x_brslipdm2                       "if $qtbig$qt isin $qt$location$qt then x_brerlhigh else if $qt$location$qt = $qtlow$loc_name_separatorrl/stairs$qt then x_brerlbig else if $qt$location$qt = $qt$loc_name_ra$loc_name_separator$loc_name_mh$qt then x_brerlbig else if $qt$location$qt = $qtlow$loc_name_separatorrl$qt then x_brerlsecret else if $qt$location$qt = $qtlow$loc_name_separatorrl/button$qt then x_brerlbig else if $qt$location$qt = $qttele$loc_name_separatorhigh$qt then x_brerlbig else if $qt$location$qt = $qthigh$loc_name_separatorrl$qt then x_brerlbig else if $qt$location$qt = $qtfloating$qt then x_brerlbig else if $qt$location$qt = $qtgl$qt then x_brerlbig else x_breslipped"
alias  x_brslipdm3                       "if $qt$loc_name_ya$qt isin $qt$location$qt then x_brerlwindow else if $qtpent$qt isin $qt$location$qt then x_brerlwindow else if $qtsng$qt isin $qt$location$qt then x_brerlra else if $qt$loc_name_ra$qt isin $qt$location$qt then x_brerlsng else if $qtwater$qt isin $qt$location$qt then x_brerlpent else if $qt$location$qt = $qtwindow$qt then x_brerlpent else if $qtrl$qt isin $qt$location$qt then x_brerlya else if $qt$location$qt = $qtring$qt then x_brerlra else if $qt$location$qt = $qtquad$qt then x_brerllifts else x_brerlsng"
alias  x_brslipe1m2                      "if $qt$location$qt = $qtssg$qt then x_brerlstart else if $qtspikes$qt isin $qt$location$qt then x_brerlya else if $loc_name_ga isin $qt$location$qt then x_brerlstart else if $qtgl$qt isin $qt$location$qt then x_brerlya else if $qt$location$qt = $qt$loc_name_ya$qt then x_brerlstart else if $qt$location$qt = $qt$loc_name_ya-top$qt then x_brerlstart else if $qtrl$qt isin $qt$location$qt then x_brerlstart else if $qt$location$qt = $qtbridge$qt then x_brerlstart else x_brerlmega"

alias  x_brerlbig                        "say_team $\$nick$x87 {big} $tp_name_enemy rl"
alias  x_brerlgl                         "say_team $\$nick$x87 {$tp_name_gl} $tp_name_enemy rl"
alias  x_brerlhigh                       "say_team $\$nick$x87 {high} $tp_name_enemy rl"
alias  x_brerllifts                      "say_team $\$nick$x87 {lifts} $tp_name_enemy rl"

alias  x_brerlmega                       "say_team $\$nick$x87 {$loc_name_mh} $tp_name_enemy rl"
alias  x_brerlpent                       "say_team $\$nick$x87 {$tp_name_pent} $tp_name_enemy rl"
alias  x_brerlra                         "say_team $\$nick$x87 {$loc_name_ra} $tp_name_enemy rl"
alias  x_brerlratnl                      "say_team $\$nick$x87 {$loc_name_ra-tunnel} $tp_name_enemy rl"

alias  x_brerlsecret                     "say_team $\$nick$x87 {secret} $tp_name_enemy rl"
alias  x_brerlsng                        "say_team $\$nick$x87 {$tp_name_sng} $tp_name_enemy rl"
alias  x_brerlstart                      "say_team $\$nick$x87 {start/$loc_name_ga} $tp_name_enemy rl"
alias  x_brerlwindow                     "say_team $\$nick$x87 {window} $tp_name_enemy rl"

alias  x_brerlya                         "say_team $\$nick$x87 {$loc_name_ya} $tp_name_enemy rl"
alias  x_breslipped                      "say_team $\$nick$x87 breached {$location}"

// trick by def
alias  x_dischargewb                     "say_team $\$nick$x87 {water} discharge warning! $tp_name_lg:$cells"
alias  x_dischargepb                     "say_team $\$nick$x87 {$tp_name_pent} discharge warning! $tp_name_lg:$cells"
alias  x_dischargew                      "if water isin $qt$location$qt then if $cells > 6 then if $tp_name_lg isin $weapons then x_dischargewb"
alias  x_dischargep                      "if water isin $qt$location$qt then if $cells > 6 then if $tp_name_lg isin $weapons then x_dischargepb"
alias  x_dischargeb                      "if bridge$loc_name_separatorlow isin $qt$location$qt then if $cells > 6 then if $tp_name_lg isin $weapons then x_dischargewb"

alias  x_shortcut                        "say_team $\$nick$ledstatus {$tp_name_quad} shortcut"
alias  x_opensecret                      "say_team $\$nick$ledstatus open {secret}"
alias  x_openramega                      "say_team $\$nick$ledstatus open {$loc_name_ra$loc_name_separator$loc_name_mh}"
alias  x_opentele                        "say_team $\$nick$ledstatus open {tele$loc_name_separator$loc_name_ya}"

alias  x_trickdm3w                       "if $qt$location$qt = $qtwater$qt then x_dischargew else if $qt$location$qt = $qtwater$loc_name_separatorammo$qt then x_dischargew else if $qt$location$qt = $qtwater$loc_name_separatorgl$qt then x_dischargew else if $qt$location$qt = $qtwater$loc_name_separatorlg$qt then x_dischargew else if $qt$location$qt = $qtwater$loc_name_separatortunnel$qt then x_dischargep else if $qt$location$qt = $qtpent$loc_name_separatorwater$qt then x_dischargep"
alias  x_trickdm2                        "if quad isin $qt$location$qt then x_shortcut else if $qt$location$qt = $qtwater$loc_name_separatorstairs$qt then x_opensecret else if $qt$location$qt = $qtwater$loc_name_separatorng$qt then x_opensecret else if $qt$location$qt = $qtwater$loc_name_separatormid$qt then x_opensecret else if $qt$location$qt = $qtsecret$qt then x_opensecret else if $qt$location$qt = $qtwater$qt then x_opensecret else if $qt$location$qt = $qtlow$loc_name_separatorrl/button$qt then x_openramega else if $qt$location$qt = $qttele$loc_name_separator$loc_name_ya$qt then x_opentele else if $qt$location$qt = $qttele$loc_name_separatorstairs$qt then x_opentele else if $qt$location$qt = $qttele$loc_name_separatorrox$qt then x_opentele else if $qt$location$qt = $qttele$qt then x_opentele else x_trickb"
alias  x_trickdm3                        "if water isin $qt$location$qt then x_trickdm3w else if $qt$location$qt = bridge$loc_name_separatorlow then x_dischargeb else x_trickb"
alias  x_trickb                          "if $qt$mapname$qt != $qtdm2$qt then x_tricka else if ?path? = $qt?$location?$qt then x_opensecret else x_tricka"
alias  x_tricka                          "say_team $\$nick$ledstatus {$location} trick"

alias  x_trick                           "if $qt$mapname$qt = $qtdm2$qt then x_trickdm2 else if $qt$mapname$qt = $qtdm3$qt then x_trickdm3 else x_trickb"

// powerups

// - powerup over
alias  x_quadover                        "say_team $\$nick$x86 $tp_name_quad $tp_name_over"
alias  x_pentover                        "say_team $\$nick$x86 $tp_name_pent $tp_name_over"
alias  x_ringover                        "say_team $\$nick$x86 $tp_name_ring $tp_name_over"
alias  x_suitover                        "say_team $\$nick$x86 $tp_name_suit $tp_name_over"

// - powerup status?
alias  x_statusquad                      "say_team $\$nick$x8b $tp_name_quad $tp_name_ask_status"
alias  x_statuspent                      "say_team $\$nick$x8b $tp_name_pent $tp_name_ask_status"
alias  x_statusring                      "say_team $\$nick$x8b $tp_name_ring $tp_name_ask_status"
alias  x_statussuit                      "say_team $\$nick$x8b $tp_name_suit $tp_name_ask_status"

// - get a powerup
alias  x_getquad                         "say_team $\$nick$x88 $tp_name_get $tp_name_quad"
alias  x_getpentb                        "say_team $\$nick$x88 $tp_name_get $tp_name_pent"
alias  x_getring                         "say_team $\$nick$x88 $tp_name_get $tp_name_ring"
alias  x_getsuit                         "say_team $\$nick$x88 $tp_name_get $tp_name_suit"

alias  x_getpent                         "if $tp_name_pent isin $qt$powerups$qt x_getring else x_getpentb"

// - quad/pent timing
alias  x_quad60                          "say_team $\$nick$x88 $tp_name_quad 60$tp_name_seconds"
alias  x_quad50                          "say_team $\$nick$x88 $tp_name_quad 50$tp_name_seconds"
alias  x_quad40                          "say_team $\$nick$x88 $tp_name_quad 40$tp_name_seconds"
alias  x_quad30                          "say_team $\$nick$x88 $tp_name_quad 30$tp_name_seconds"

alias  x_quad20                          "say_team $\$nick$x88 $tp_name_quad 20$tp_name_seconds"
alias  x_quad10                          "say_team $\$nick$x88 $tp_name_quad 10$tp_name_seconds"
alias  x_quad5                           "say_team $\$nick$x88 $tp_name_quad 5$tp_name_seconds"
alias  x_quadnow                         "say_team $\$nick$x88 $tp_name_get $tp_name_quad $tp_name_now"

alias  x_pent60                          "say_team $\$nick$x88 $tp_name_pent 60$tp_name_seconds"
alias  x_pent50                          "say_team $\$nick$x88 $tp_name_pent 50$tp_name_seconds"
alias  x_pent40                          "say_team $\$nick$x88 $tp_name_pent 40$tp_name_seconds"
alias  x_pent30                          "say_team $\$nick$x88 $tp_name_pent 30$tp_name_seconds"

alias  x_pent20                          "say_team $\$nick$x88 $tp_name_pent 20$tp_name_seconds"
alias  x_pent10                          "say_team $\$nick$x88 $tp_name_pent 10$tp_name_seconds"
alias  x_pent5                           "say_team $\$nick$x88 $tp_name_pent 5$tp_name_seconds"
alias  x_pentnow                         "say_team $\$nick$x88 $tp_name_get $tp_name_pent $tp_name_now"

// help, group
alias  x_helpb                           "say_team $\$nick$x88 help {$location} %eE"
alias  x_group                           "say_team $\$nick$x88 group {$location}"
alias  x_help                            "if $ledstatus != $tp_name_status_green then x_helpb else x_group"

// lost backpack, attack lost, nmy holds
alias  x_lostpack                        "if $qt$deathloc$qt != $qt$tp_name_someplace$qt then say_team $\$nick$x87 $tp_name_backpack lost $tp_name_at {$deathloc} %EE"
alias  x_attacklost                      "if $qt$deathloc$qt != $qt$tp_name_someplace$qt then say_team $\$nick$x87 attack {$deathloc}"
alias  x_holds                           "say_team $\$nick$x87 nmy holds {$location} %eE"

// group at pent, don't kill eyes, delayed pent, delayed ring
alias  x_grouppent                       "say_team $\$nick$x88 group at {$tp_name_pent}"
alias  x_dontkill                        "say_team $\$nick$x86 DON'T KILL $tp_name_eyes"
alias  x_delayedpent                     "say_team $\$nick$x88 $tp_name_pent delayed"
alias  x_delayedring                     "say_team $\$nick$x88 $tp_name_ring delayed"

// chat
alias  x_false                           "say_team $\$nick$x8b PUBLIC/VOICE MSG is FALSE!"
alias  x_cancel                          "say_team $\$nick$x8b cancel that"
alias  x_nosorry                         "say_team $\$nick$x8b no/sorry"
alias  x_yesok                           "say_team $\$nick$x86 yes/ok"

// self actions: i take, coming, enemy coming, attacking, awaiting, safe, camping
alias  x_iquad                           "x_recalculate;say_team $\$nick$x86 i take $tp_name_quad $x_bestweapon{$location} $x_pows"
alias  x_itakemypack                     "x_recalculate;say_team $\$nick$x86 i take/my $tp_name_backpack $x_bestweapon{$location} $x_pows"
alias  x_already                         "say_team $\$nick$x87 {$location} already guarded, bugger off!"

alias  x_nmycoming                       "if ?$mapname? isin $qt$tp_waymaps$qt then say_team $\$nick$x87 $tp_name_enemy coming from {%z}$x20"
alias  x_attacking                       "if ?$mapname? !isin $qt$tp_waymaps$qt then say_team $\$nick$x88 attacking from {$location} else say_team $\$nick$x87 attacking {%Z} from {$location}$x20"

alias  x_wait                            "x_recalculate;say_team $\$nick$x88 awaiting $x_bestweapon{$location} $x_pows"
alias  x_safe                            "x_recalculate;say_team $\$nick$x86 safe $x_bestweapon{$location} $x_pows"
alias  x_camping                         "x_recalculate;say_team $\$nick$x86 camping $x_bestweapon{$location} $x_pows"

// orders: call positions, hide, attack lost, swap, kill
alias  x_reportdeath                     "say_team $\$nick$x8b report death location!"
alias  x_call                            "say_team $\$nick$x8b call your positions!"
alias  x_hide                            "say_team $\$nick$x88 hide/spawn slowly!"

alias  x_swap                            "say_team $\$nick$x88 swap {$location} %eE"

alias  x_choose_best                     "impulse 7 8 5 6 4 3 2"
alias  x_killme                          "x_choose_best;say_team $\$nick$x86 kill me! $weapon {$location}"
alias  x_killyourself                    "say_team $\$nick$x88 kill yourself! {$location}"

// item soon, unlocked, KT' scores
alias  x_itemsoon                        "say_team $\$nick$x86 soon {$location}"
alias  x_unlocked                        "say_team $\$nick$x86 unlocked {$location}"
alias  x_scores                          "scores"

// dm2 specific
alias  x_dm2lava                         "if $mapname = dm2 then say_team $\$nick$x87 lava in {bigroom}"
alias  x_dm2secret                       "if $mapname = dm2 then say_team $\$nick$x87 $tp_name_enemy took {secret $loc_name_ra}"

// cooperative bindings
alias  x_tooksilver                      "say_team $\$nick$x86 took silver key $tp_name_at {$location}"
alias  x_tookgolden                      "say_team $\$nick$x86 took gold key $tp_name_at {$location}" 
alias  x_openedsilver                    "say_team $\$nick$x86 opened silver door $tp_name_at {$location}"
alias  x_openedgolden                    "say_team $\$nick$x86 opened golden door $tp_name_at {$location}" 

alias  x_axetrick                        "say_team $\$nick$x86 {$location} $tp_name_axe trick"
alias  x_secret                          "say_team $\$nick$x86 {$location} secret triggered"
alias  x_tookrune                        "say_team $\$nick$x86 our rune"
alias  x_checkplayername2                "if $qt?$pointloc?$qt != $qt?$tp_name_someplace?$qt then echo $point at $pointloc else echo $point"
alias  x_checkplayername                 "if $qt$ledpoint$qt = $qt$tp_name_status_green$qt then x_checkplayername2

// console aliases; not bound
alias  sync                              "say_team $\$nick$x88 sync attack from {$location}"

alias  yar                               "say_team $\$nick$x88 {$loc_name_ya} $tp_name_rush"
alias  rar                               "say_team $\$nick$x88 {$loc_name_ra} $tp_name_rush"
alias  qr                                "say_team $\$nick$x88 {$tp_name_quad} $tp_name_rush"
alias  pentr                             "say_team $\$nick$x88 {$tp_name_pent} $tp_name_rush"

alias  erl                               "say_team $\$nick$x87 $tp_name_enemy $tp_name_rl!"
alias  edied                             "say_team $\$nick$x86 $tp_name_rl died"
alias  gr                                "x_getring"
alias  ge                                "gr"

alias  yarush                            "yar"
alias  rarush                            "rar"
alias  quadrush                          "qr"
alias  pr                                "pentr"

alias  prush                             "pentr"
alias  pentrush                          "pentr"
alias  666rush                           "pentr"
alias  666r                              "pentr"

alias  66r                               "pentr"
alias  6r                                "pentr"
alias  yr                                "yar"
alias  rr                                "rar"

alias  km                                "x_killme;x_killme"
alias  ky                                "x_need;x_killyourself;x_killyourself"
alias  fal                               "x_false"

// end of file