File tree Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,7 @@ MineableEntity["rock"] = {
42
42
" models/props_debris/barricade_tall01a.mdl"
43
43
},
44
44
Tools = { [" weapon_crowbar" ] = 5 },
45
- Drops = { [" ucs_iron" ] = 100 },
46
- TextOffset = Vector ( 20 , 0 , 0 )
45
+ Drops = { [" ucs_iron" ] = 100 }
47
46
}
48
47
49
48
-- Template crafting table; All options except name and model have fallbacks and are not required
@@ -75,8 +74,7 @@ CraftingTable["hl2"] = {
75
74
Name = " HL2 Weapons Table" ,
76
75
Model = " models/props_wasteland/controlroom_desk001b.mdl" ,
77
76
ShouldExplode = true ,
78
- AllowAutomation = true ,
79
- TextOffset = Vector ( 0 , 0 , 30 )
77
+ AllowAutomation = true
80
78
}
81
79
82
80
-- Template Ingredient
Original file line number Diff line number Diff line change @@ -12,6 +12,13 @@ function ENT:Draw()
12
12
local name = data .Name or " Unnamed Mineable Entity"
13
13
local health = self :Health ()
14
14
local maxHealth = self :GetMaxHealth ()
15
+
16
+ local min ,max = self :GetHitBoxBounds ( 0 , 0 )
17
+ if max then
18
+ local converted = self :LocalToWorld ( max )
19
+ origin .z = converted .z + 15
20
+ end
21
+
15
22
local pos = origin + offset
16
23
local ang = ( ply :EyePos () - pos ):Angle ()
17
24
ang .p = 0
Original file line number Diff line number Diff line change @@ -327,6 +327,13 @@ function ENT:Draw()
327
327
local name = data .Name or " Unnamed Crafting Table"
328
328
local health = self :Health ()
329
329
local maxHealth = self :GetMaxHealth ()
330
+
331
+ local min ,max = self :GetHitBoxBounds ( 0 , 0 )
332
+ if max then
333
+ local converted = self :LocalToWorld ( max )
334
+ origin .z = converted .z + 15
335
+ end
336
+
330
337
local pos = origin + offset
331
338
local ang = ( ply :EyePos () - pos ):Angle ()
332
339
ang .p = 0
Original file line number Diff line number Diff line change @@ -20,5 +20,5 @@ function ENT:GetData()
20
20
return CraftingTable [typ ]
21
21
end
22
22
23
- local version = " 2.0"
23
+ local version = " 2.0.1 "
24
24
print ( " Universal Crafting System v" .. version .. " by OPGman successfully loaded.\n " )
You can’t perform that action at this time.
0 commit comments