mpf.Faction faction
Faction defined in factions/sh_mpf.lua
Defines the whitelisted Metropolice Force faction (FACTION_MPF), a Combine faction whose units get the cp_c08
Civil Protection models and a generated recruit name with a random unit number.
Summary
Methods
Returns a random recruit name for a new unit, such as
CP.C24.RCT:042.Called when a player is transferred to the faction.
Methods
Returns a random recruit name for a new unit, such as CP.C24.RCT:042.
Parameters
- player Player The player
- character Character The character
Returns
- String The name
Called when a player is transferred to the faction.
Characters coming from Overwatch need the transfer's third argument and have the part of their name
before its last five digits replaced with CP.C24.RCT:; everyone else gets a new recruit name. The
character gets the first Civil Protection model of their gender.
Parameters
- player Player The player
- faction Faction The faction the player comes from
- name String optional, defaults to
nilRequired when coming from Overwatch
Returns
- Boolean
falseto refuse the transfer - String The reason