SBARINFO Team + MaxTeams Sub block feature request
Moderator: Developers
SBARINFO Team + MaxTeams Sub block feature request
https://zandronum.com/tracker/view.php?id=2507
It's been a year. I would like to bring this back up to light just so it's more likely to actually be added.
Feature request:
Team <team> - Executes the subblock if the team number (defined in TEAMINFO) equals <team>
MaxTeams <maxteams> - Executes the subblock if the max number of teams equals <maxteams>
(So the HUD can reorganise itself for when you have more than 2 teams.)
It's been a year. I would like to bring this back up to light just so it's more likely to actually be added.
Feature request:
Team <team> - Executes the subblock if the team number (defined in TEAMINFO) equals <team>
MaxTeams <maxteams> - Executes the subblock if the max number of teams equals <maxteams>
(So the HUD can reorganise itself for when you have more than 2 teams.)
Re: SBARINFO Team + MaxTeams Sub block feature request
Bug reports and feature requests need to go in the Bug Tracker (linked at the top of every page on this site), or they will probably not be considered.
"For the world is hollow, and I have touched the sky."
-
- Retired Staff / Community Team Member
- Posts: 2559
- Joined: Sat Jun 02, 2012 2:44 am
Re: SBARINFO Team + MaxTeams Sub block feature request
To be honest you'd be better off using DECORATE+ACS and SBARINFO than wait another year for this.
Re: SBARINFO Team + MaxTeams Sub block feature request
Hey Mr Superunhelpful, check the link at the top of my post.Empyre wrote:Bug reports and feature requests need to go in the Bug Tracker (linked at the top of every page on this site), or they will probably not be considered.
It's a shit method to use DECORATE+ACS, if I try to do any changes like making the hud blue if you're on the blue team, it flashes red every time you respawn.Catastrophe wrote:To be honest you'd be better off using DECORATE+ACS and SBARINFO than wait another year for this.
Re: SBARINFO Team + MaxTeams Sub block feature request
I was trying to be helpful, but failed this time.
"For the world is hollow, and I have touched the sky."
-
- Retired Staff / Community Team Member
- Posts: 2559
- Joined: Sat Jun 02, 2012 2:44 am
Re: SBARINFO Team + MaxTeams Sub block feature request
Then you're doing it completely wrong. Make two inventory items via decorate, isblue and isred, give the items appropriately via ACS, then on SBARINFO use isblue and isred to render differently per team.DTDsphere wrote:It's a shit method to use DECORATE+ACS, if I try to do any changes like making the hud blue if you're on the blue team, it flashes red every time you respawn.Catastrophe wrote:To be honest you'd be better off using DECORATE+ACS and SBARINFO than wait another year for this.
Re: SBARINFO Team + MaxTeams Sub block feature request
You say I'm doing it completely wrong and then proceed to describe exactly what I'm doing.Catastrophe wrote:Then you're doing it completely wrong. Make two inventory items via decorate, isblue and isred, give the items appropriately via ACS, then on SBARINFO use isblue and isred to render differently per team.
-
- Retired Staff / Community Team Member
- Posts: 2559
- Joined: Sat Jun 02, 2012 2:44 am
Re: SBARINFO Team + MaxTeams Sub block feature request
You're clearly doing it wrong if I'm able to do it with my mod. Did you forget to give the items back once the player respawns using a RESPAWN script? And did you give the inventory items the undroppable flag? If you answered no to any of these, then you're doing it wrong.DTDsphere wrote:You say I'm doing it completely wrong and then proceed to describe exactly what I'm doing.Catastrophe wrote:Then you're doing it completely wrong. Make two inventory items via decorate, isblue and isred, give the items appropriately via ACS, then on SBARINFO use isblue and isred to render differently per team.
Re: SBARINFO Team + MaxTeams Sub block feature request
Catastrophe wrote:You're clearly doing it wrong if I'm able to do it with my mod. Did you forget to give the items back once the player respawns using a RESPAWN script? And did you give the inventory items the undroppable flag? If you answered no to any of these, then you're doing it wrong.DTDsphere wrote:You say I'm doing it completely wrong and then proceed to describe exactly what I'm doing.Catastrophe wrote:Then you're doing it completely wrong. Make two inventory items via decorate, isblue and isred, give the items appropriately via ACS, then on SBARINFO use isblue and isred to render differently per team.
Code: Select all
#library "team_hud"
#include "zcommon.acs"
Script 988 RESPAWN clientside
{
if ("Teamplay" == False)
{Terminate;}
else
{
if (PlayerTeam() == 1)
{Terminate;}
if (PlayerTeam() == 0)
{GiveInventory("HUD_PlayerTeam", 1);}
}
}
Script 987 ENTER clientside
{
if ("Teamplay" == False)
{Terminate;}
else
{
if (PlayerTeam() == 1)
{Terminate;}
if (PlayerTeam() == 0)
{GiveInventory("HUD_PlayerTeam", 1);}
}
}
-
- Retired Staff / Community Team Member
- Posts: 2559
- Joined: Sat Jun 02, 2012 2:44 am
Re: SBARINFO Team + MaxTeams Sub block feature request
Try it w/o using clientside, also "teamplay" == false? Aren't you supposed to use getCvar with that?