tp_fixedloclength and tp_fixedloccentered have been added by meag to the latest nightly build. This can make mm2 reports much neater!
Here's an example of before & after (well, after & before..)
If you also put %l at the start of all your tp binds, it makes things nice and standardised, which might make them easier to read at a glance:
(I've been working on a tp cfg which I'll upload when it's done. For now here's the status report part - some credit goes to XantoM for the code its based upon
Here's an example of before & after (well, after & before..)
If you also put %l at the start of all your tp binds, it makes things nice and standardised, which might make them easier to read at a glance:
(I've been working on a tp cfg which I'll upload when it's done. For now here's the status report part - some credit goes to XantoM for the code its based upon
Quote:
// REPORT:
set nick2 "{&cb29xxx &r}"
bind x "_report"
tp_fixedloclength "8"
tp_fixedloccentered "1"
set_tp dff_loc "$[{%l}$]"
alias _report "if $health < 1 then _lost else _report_check_armor"
alias _report_check_armor "if '1000' isin '$armor' then _report_armor_prewar else if ('armor' isin '$need') then _report_armor_low else _report_armor_high"
alias _report_armor_prewar "set_tp dff_armor {&cbf7%a&r}; _report_check_health"
alias _report_armor_high "set_tp dff_armor $colored_armor; _report_check_health"
alias _report_armor_low "set_tp dff_armor %A{&cf66%a&r}; _report_check_health"
alias _report_check_health "if ($health < 25) then _report_health_24 else if ('health' isin '$need') then _report_health_low else if ($health < 110) then _report_health_high else _report_health_mega"
alias _report_health_mega "set_tp dff_health {&cbf7%h&r}; _report_check_rox"
alias _report_health_high "set_tp dff_health {%h}; _report_check_rox"
alias _report_health_low "set_tp dff_health {&cf66%h&r}; _report_check_rox"
alias _report_health_24 "set_tp dff_health {&cf33%h&r}; _report_check_rox"
alias _report_check_rox "if ($rockets > 4) then _report_rox_high else if ($rockets = 0) then _report_rox_none else _report_rox_low"
alias _report_rox_high "set_tp dff_rox {&cf60$rockets&r}; _report_check_cells"
alias _report_rox_low "set_tp dff_rox {&cf66$rockets&r}; _report_check_cells"
alias _report_rox_none "set_tp dff_rox {&cf33$rockets&r}; _report_check_cells"
alias _report_check_cells "if ($cells > 9) then _report_cells_high else if ($cells = 0) then _report_cells_none else _report_cells_low"
alias _report_cells_high "set_tp dff_cells {&c399$cells&r}; _report_check_weapon"
alias _report_cells_low "set_tp dff_cells {&cf66$cells&r}; _report_check_weapon"
alias _report_cells_none "set_tp dff_cells {&cf33$cells&r}; _report_check_weapon"
alias _report_check_weapon "if ('rl' isin '$weapons' and 'lg' isin '$weapons') then _report_weapon_rlg else if ('rl' isin '$weapons') then _report_weapon_rl else if ('lg' isin '$weapons') then _report_weapon_lg else _report_weapon_none"
alias _report_weapon_rlg "set_tp dff_weapon $qt{&cf60rl:&r}$dff_rox {&c399LG:&r}$dff_cells$qt; _report_check_spare_ammo"
alias _report_weapon_rl "set_tp dff_weapon {&cf60rl:&r}$dff_rox; _report_check_spare_ammo"
alias _report_weapon_lg "set_tp dff_weapon {&c399LG:&r}$dff_cells; _report_check_spare_ammo"
alias _report_weapon_none "set_tp dff_weapon $bestweapon; _report_check_spare_ammo"
alias _report_check_spare_ammo "if ('rl' !isin '$weapons' and $rockets > 2 AND 'lg' !isin '$weapons' and $cells > 10) then _report_spare_rox_cells else if ('rl' !isin '$weapons' and $rockets > 2) then _report_spare_rox else if ('lg' !isin '$weapons' and $cells > 10 and 'rl' !isin '$weapons') then _report_spare_cells else _report_spare_nothing"
alias _report_spare_rox_cells "set_tp dff_spareammo $qt{&cf60r:&r}$dff_rox {&c399c:&r}$dff_cells $qt; .report"
alias _report_spare_rox "set_tp dff_spareammo $qt{&cf60r:&r}$dff_rox $qt; .report"
alias _report_spare_cells "set_tp dff_spareammo $qt{&c399c:&r}$dff_cells $qt; .report"
alias _report_spare_nothing "set_tp dff_spareammo $qt$qt; .report"
alias .report "say_team $\$nick2 $dff_loc $dff_armor/$dff_health $dff_weapon $dff_spareammo$colored_powerups"
set nick2 "{&cb29xxx &r}"
bind x "_report"
tp_fixedloclength "8"
tp_fixedloccentered "1"
set_tp dff_loc "$[{%l}$]"
alias _report "if $health < 1 then _lost else _report_check_armor"
alias _report_check_armor "if '1000' isin '$armor' then _report_armor_prewar else if ('armor' isin '$need') then _report_armor_low else _report_armor_high"
alias _report_armor_prewar "set_tp dff_armor {&cbf7%a&r}; _report_check_health"
alias _report_armor_high "set_tp dff_armor $colored_armor; _report_check_health"
alias _report_armor_low "set_tp dff_armor %A{&cf66%a&r}; _report_check_health"
alias _report_check_health "if ($health < 25) then _report_health_24 else if ('health' isin '$need') then _report_health_low else if ($health < 110) then _report_health_high else _report_health_mega"
alias _report_health_mega "set_tp dff_health {&cbf7%h&r}; _report_check_rox"
alias _report_health_high "set_tp dff_health {%h}; _report_check_rox"
alias _report_health_low "set_tp dff_health {&cf66%h&r}; _report_check_rox"
alias _report_health_24 "set_tp dff_health {&cf33%h&r}; _report_check_rox"
alias _report_check_rox "if ($rockets > 4) then _report_rox_high else if ($rockets = 0) then _report_rox_none else _report_rox_low"
alias _report_rox_high "set_tp dff_rox {&cf60$rockets&r}; _report_check_cells"
alias _report_rox_low "set_tp dff_rox {&cf66$rockets&r}; _report_check_cells"
alias _report_rox_none "set_tp dff_rox {&cf33$rockets&r}; _report_check_cells"
alias _report_check_cells "if ($cells > 9) then _report_cells_high else if ($cells = 0) then _report_cells_none else _report_cells_low"
alias _report_cells_high "set_tp dff_cells {&c399$cells&r}; _report_check_weapon"
alias _report_cells_low "set_tp dff_cells {&cf66$cells&r}; _report_check_weapon"
alias _report_cells_none "set_tp dff_cells {&cf33$cells&r}; _report_check_weapon"
alias _report_check_weapon "if ('rl' isin '$weapons' and 'lg' isin '$weapons') then _report_weapon_rlg else if ('rl' isin '$weapons') then _report_weapon_rl else if ('lg' isin '$weapons') then _report_weapon_lg else _report_weapon_none"
alias _report_weapon_rlg "set_tp dff_weapon $qt{&cf60rl:&r}$dff_rox {&c399LG:&r}$dff_cells$qt; _report_check_spare_ammo"
alias _report_weapon_rl "set_tp dff_weapon {&cf60rl:&r}$dff_rox; _report_check_spare_ammo"
alias _report_weapon_lg "set_tp dff_weapon {&c399LG:&r}$dff_cells; _report_check_spare_ammo"
alias _report_weapon_none "set_tp dff_weapon $bestweapon; _report_check_spare_ammo"
alias _report_check_spare_ammo "if ('rl' !isin '$weapons' and $rockets > 2 AND 'lg' !isin '$weapons' and $cells > 10) then _report_spare_rox_cells else if ('rl' !isin '$weapons' and $rockets > 2) then _report_spare_rox else if ('lg' !isin '$weapons' and $cells > 10 and 'rl' !isin '$weapons') then _report_spare_cells else _report_spare_nothing"
alias _report_spare_rox_cells "set_tp dff_spareammo $qt{&cf60r:&r}$dff_rox {&c399c:&r}$dff_cells $qt; .report"
alias _report_spare_rox "set_tp dff_spareammo $qt{&cf60r:&r}$dff_rox $qt; .report"
alias _report_spare_cells "set_tp dff_spareammo $qt{&c399c:&r}$dff_cells $qt; .report"
alias _report_spare_nothing "set_tp dff_spareammo $qt$qt; .report"
alias .report "say_team $\$nick2 $dff_loc $dff_armor/$dff_health $dff_weapon $dff_spareammo$colored_powerups"