Discarded entityactions and updated target
Discarded entityactions: was not used and bloat. Need a new system that handled networked entities static vs dynamic (non-moving non networked vs moving networked) updated target to improve performance on canInteract. It seems that the target systems spam this function. Using a state and checking every second instead of allowing spamming Added ClientEntity.ChangeModel
This commit is contained in:
1 parent
cbd340326d
commit
b06d2fb49e
8 files changed
+73
-190
No files matched your search
@@ -40,6 +40,13 @@ Target.FixOptions = function(options)
|
||||
|
||||
end
|
||||
v.groups = v.job or v.groups
|
||||
local optionsCanInteract = v.canInteract
|
||||
if optionsCanInteract then
|
||||
local id = Target.CreateCanInteract(optionsCanInteract)
|
||||
v.canInteract = function(...)
|
||||
return Target.CanInteract(id, ...)
|
||||
end
|
||||
end
|
||||
-- print(json.encode(v))
|
||||
end
|
||||
return options
|
||||
|
||||
Reference in new issue
Block a user