User panel stuff on forum
  8 posts on 1 page  1
Client Talk
2015-11-16, 13:01
News Writer
283 posts

Registered:
Jan 2007
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..)

http://i.imgur.com/NjuTm2m.jpg


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:

http://i.imgur.com/EZkMv7f.png


(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"
2015-11-17, 17:50
News Writer
283 posts

Registered:
Jan 2007
Maybe time for tp_fixedhealthlength, tp_fixedarmorlength, tp_fixedweaponlength and tp_fixedammolength? Maximum neatness!
2015-11-17, 21:37
Administrator
1023 posts

Registered:
Apr 2006
I'd rather see a format specifier or something similar that supported fixed width instead of hardcoding it. This way there would be one solution that would work on any field.
2015-11-17, 22:07
Member
238 posts

Registered:
Jan 2006
Would be nice if one could chose left middle or right.. (i would definitely chose left)
2015-11-17, 22:17
News Writer
493 posts

Registered:
Jan 2006
Wow haven't posted here in ages.

I updated a lot of ezQuake's configs, and if you use the built-in ones you'll see how modern they are. Anyway, what I've always planned, but haven't been able to do since there are no programmers to help anymore, is to code the functionality for everyone's personal client to show teamsays how they want client-side.

Player a sends teamsay with info on health/armor/weapon/ammo,location, etc
All other player's clients capture this data and rearrange them to how he wants to see teamsays

Think how this will change configs. You no longer have to create configs to display information TO other people, but how you want information to be displayed. In other words, everyone's teamplay configs will be completely standardized according to their personal taste, and everyone can choose how they want to see them (different colors, order of information displayed, what is and is not displayed, etc). Mixes will be much more organized.
2015-11-19, 14:20
Member
459 posts

Registered:
Mar 2008
Cool! It's always nice with some new cosmetic features.

Looks like you were pretty stacked at [BIG-BUTT] at the 9 minute mark. Now even more readable than ever! Good thing tp_fixedloclength is included as well.
2015-11-19, 14:21
Administrator
871 posts

Registered:
Jan 2006
Wow, Uptonogood's suggestion is actully awesome!
Join us on discord.quake.world
2015-11-19, 15:20
Member
279 posts

Registered:
Jan 2015
Rikoll wrote:

Looks like you were pretty stacked at [BIG-BUTT] at the 9 minute mark.


LOL
dev
  8 posts on 1 page  1