-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug_arccw.lua
More file actions
30 lines (29 loc) · 936 Bytes
/
debug_arccw.lua
File metadata and controls
30 lines (29 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
if SERVER then
print("\n--- DEBUG ARCCW TABLE ---")
if ArcCW and ArcCW.AttachmentTable then
local count = 0
for k, v in pairs(ArcCW.AttachmentTable) do
count = count + 1
if count <= 5 then
print("ShortName: " .. k)
print(" Entity: " .. tostring(v.Entity))
print(" Model: " .. tostring(v.Model))
end
end
print("Total ArcCW Atts: " .. count)
else
print("ArcCW not found or AttachmentTable missing.")
end
print("\n--- DEBUG SCRIPTED ENTS ---")
local count = 0
for k, v in pairs(scripted_ents.GetList()) do
if string.find(k, "arccw") then
count = count + 1
if count <= 5 then
print("Class: " .. k)
print(" Model: " .. tostring(v.t.Model))
end
end
end
print("Total ArcCW Ents: " .. count)
end