Custom teams
Merge !2222 first.
New:
- Added
TEAM_freeslotting - Added
TEAMLISTto SOCGAMETYPE - Added SOC
TEAM - Added
teams[],teamscores[],numteamsandteamsingameto Lua - Added
teamsoption toG_AddGametype - Added
P_GetTeamFlagandP_GetTeamFlagMapthing - Added
P_PlayerHasTeamFlag - Added
P_MobjTouchingTeamBaseandP_TeamHasFlagAtBase - Added
G_GetBestPerformingTeam,G_GetWorstPerformingTeam,G_GetMostAdvantagedTeamandG_GetMostDisadvantagedTeam - Added
teambaseUDMF sector field - Added
sector.teambase - Added
MFE_TEAMITEMandMFE_TEAMFLAG(usesextravalue1for 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