rebel.Faction faction
Faction defined in factions/sh_rebel.lua
Defines the whitelisted Rebel faction (FACTION_REBEL), with the tnb/citizens 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_rebel.lua:41Called 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
nilThe new name
Returns
- Boolean
falseto refuse the transfer - String The reason