Defines the whitelisted Civil Worker's Union faction (FACTION_CWU), with the group02 human models and a rule that Combine characters transferred into it need a new name.

Summary

Methods

Called when a player is transferred to the faction.

Methods

FACTION:OnTransferred(player, faction, name)

shared gamemodes/cwhl2rp/schema/factions/sh_cwu.lua:41

Called when a player is transferred to the faction.

Combine players need a new name (the transfer's third argument) and get a random model of the faction; other players keep their name and model.

Parameters

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

Returns

  • Boolean false to refuse the transfer
  • String The reason

Defined in