Installer Steam
log på
|
sprog
简体中文 (forenklet kinesisk)
繁體中文 (traditionelt kinesisk)
日本語 (japansk)
한국어 (koreansk)
ไทย (thai)
Български (bulgarsk)
Čeština (tjekkisk)
Deutsch (tysk)
English (engelsk)
Español – España (spansk – Spanien)
Español – Latinoamérica (spansk – Latinamerika)
Ελληνικά (græsk)
Français (fransk)
Italiano (italiensk)
Bahasa indonesia (indonesisk)
Magyar (ungarsk)
Nederlands (hollandsk)
Norsk
Polski (polsk)
Português (portugisisk – Portugal)
Português – Brasil (portugisisk – Brasilien)
Română (rumænsk)
Русский (russisk)
Suomi (finsk)
Svenska (svensk)
Türkçe (tyrkisk)
Tiếng Việt (Vietnamesisk)
Українська (ukrainsk)
Rapporter et oversættelsesproblem
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)