Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Name: "sh_vortigaunt.lua".
- Product: "HL2 RP".
- --]]
- local FACTION = {};
- FACTION.whitelist = true;
- FACTION.models = {
- female = {"models/vortigaunt.mdl"},
- male = {"models/vortigaunt.mdl"}
- };
- -- Called when a player's model should be assigned for the faction.
- function FACTION:GetModel(player, character)
- if (character.gender == GENDER_MALE) then
- return self.models.male[1];
- else
- return self.models.female[1];
- end;
- end;
- -- Called when a player is transferred to the faction.
- function FACTION:OnTransferred(player, faction, name)
- if (player:QueryCharacter("gender") == GENDER_MALE) then
- player:SetCharacterData("model", self.models.male[1], true);
- else
- player:SetCharacterData("model", self.models.female[1], true);
- end;
- end;
- FACTION_VORTIGAUNT = nexus.faction.Register(FACTION, "Vortigaunts");
Add Comment
Please, Sign In to add comment