Skip to content

Custom teams

Lactozilla requested to merge custom-teams into next

Merge !2222 first.

New:

  • Added TEAM_ freeslotting
  • Added TEAMLIST to SOC GAMETYPE
  • Added SOC TEAM
  • Added teams[], teamscores[], numteams and teamsingame to Lua
  • Added teams option to G_AddGametype
  • Added P_GetTeamFlag and P_GetTeamFlagMapthing
  • Added P_PlayerHasTeamFlag
  • Added P_MobjTouchingTeamBase and P_TeamHasFlagAtBase
  • Added G_GetBestPerformingTeam, G_GetWorstPerformingTeam, G_GetMostAdvantagedTeam and G_GetMostDisadvantagedTeam
  • Added teambase UDMF sector field
  • Added sector.teambase
  • Added MFE_TEAMITEM and MFE_TEAMFLAG (uses extravalue1 for the team ID)
  • Added map thing type 324 (CTF Team Flag)
    • String argument 1: Team this flag belongs to

Fixed:

  • Nothing to add

Backwards compatible:

  • Nothing to add

Backwards incompatible:

  • Nothing to add

SOC TEAM fields:

Field Description
NAME Name
FLAGNAME Name of the flag
FLAG GF_ constant
FLAGTYPE Object type
WEAPON Object type of team weapon (what can be picked up)
MISSILE Object type of team missile (what is fired by a player)
COLOR Team color (SKINCOLOR_)
WEAPONCOLOR Weapon color (SKINCOLOR_)
MISSILECOLOR Missile color (SKINCOLOR_)
ICON Team icon
FLAGICON Team flag icon (if applicable)
GOTFLAGICON Icon when another team's flag is held by your team
MISSINGFLAGICON Icon when the your team's flag is held by another team

Lua team fields:

Field Description Returns
name Name string
flag_name Name of the flag string
flag Flag enum GF_ enum
flag_mobj_type Object type MT_ enum
weapon_mobj_type Object type of team weapon (what can be picked up) MT_ enum
missile_mobj_type Object type of team missile (what is fired by a player) MT_ enum
color Team color SKINCOLOR_ enum
weapon_color Weapon color SKINCOLOR_ enum
missile_color Missile color SKINCOLOR_ enum
icon Team icon string
flag_icon Team flag icon (if applicable) string
captured_flag_icon Icon when another team's flag is held by your team string
missing_flag_icon Icon when the your team's flag is held by another team string
Edited by Lactozilla

Merge request reports