Defines the whitelisted Overwatch Transhuman Arm faction (FACTION_OTA), a Combine faction whose units get the Combine soldier model and a generated soldier name with a random unit number.

Summary

Methods

Returns the Combine soldier model for a new character of either gender.
Returns a random soldier name for a new unit, such as OTA.C24.ECHO.OWS:042.
Called when a player is transferred to the faction.

Methods

FACTION:GetModel(player, character)

shared gamemodes/cwhl2rp/schema/factions/sh_ota.lua:29

Returns the Combine soldier model for a new character of either gender.

Parameters

  • player Player The player
  • character Character The character

Returns

  • String The model

FACTION:GetName(player, character)

shared gamemodes/cwhl2rp/schema/factions/sh_ota.lua:19

Returns a random soldier name for a new unit, such as OTA.C24.ECHO.OWS:042.

Parameters

  • player Player The player
  • character Character The character

Returns

  • String The name

FACTION:OnTransferred(player, faction, name)

shared gamemodes/cwhl2rp/schema/factions/sh_ota.lua:44

Called when a player is transferred to the faction.

Civil Protection units keep their unit number in an Overwatch name; everyone else gets a new soldier name. The character gets the Overwatch model.

Parameters

  • player Player The player
  • faction Faction The faction the player comes from
  • name String optional, defaults to nil The new name, unused

Defined in