Defines the whitelisted Vortigaunt Slave faction (FACTION_VORT_SLAVE), with the vortigaunt_slave model 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_vortigaunt_slave.lua:21

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