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
Please fix!
thank you
(pack 1 and 2)
1. There mouth talking animation is really messed up
2. Some of their models aren't blinking. Yes, their eyes aren't blinking and just staring at me.
I also don't have lagging issues. All my friends who playtested it don't. The only way this hinders performance is short stutters when the models spawn in on my end.
hook_OnSpawnShit
for _,v in ipairs(ents.GetAll()) do
if v:GetModel() == themdl then
setshit
end
end
whereas if you do it like how I showed you where you actually detect the entity thats being spawned and not checking EVERY entity in the map, you're saving A LOT of processing. I have a really good PC, and never have I ever downloaded a Garry's Mod addon that lags as bad as this one
For example, instead of running:
for k, v in pairs( ents.FindByModel( mdl ) ) do
everytime any entity is spawned, you can just do:
hook.Add("OnEntityCreated","EnhancedCitizens_NPCScript",function(ent)
if ent:GetClass() == "npc_citizen" then -- Eliminate that butt load of lag you have now
if ent:GetModel() == themodeldir then
change model, fix collisions and set skins/bodygroups
end
end
end)