Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
it often puts anything downloaded prior as the main base for things, which is why people ask for you to get the needed things first before getting the actual addon you want
Regular HL2 models and stuff work fine with headshot damage
local modelpaths = {"path/to/models", "one/other/one", "another/one/other", "etc."}
hook.Add ("PlayerSpawnedNPC","RandomConscriptModel", function (ply, npc)
if npc: GetName () = = "name of your recruit entity", then
npc: SetModel (modelpaths[math.random(1.9)])
end
end
)
I don't know what the return value of Entity:GetName () is, maybe you should use something else to find out if the generated NPC is yours or not...