@@ -11,7 +11,7 @@ getroottable()[EventsID] <-
11
11
if (! Convars. GetBool (" sm_tfco_donation_enabled" ))
12
12
return
13
13
14
- // Resupply Locker
14
+ // Resupply locker (static text)
15
15
local regenerate
16
16
while (regenerate = Entities. FindByClassname (regenerate, " func_regenerate" ))
17
17
{
@@ -31,7 +31,7 @@ getroottable()[EventsID] <-
31
31
AddThinkToEnt (worldtext, " ResupplyTextThink" )
32
32
}
33
33
34
- // Control Point
34
+ // Control point (rotating text)
35
35
local point
36
36
while (point = Entities. FindByClassname (point, " team_control_point" ))
37
37
{
@@ -46,6 +46,10 @@ getroottable()[EventsID] <-
46
46
origin = point. GetBoneOrigin (bone)
47
47
})
48
48
49
+ // For smoother bone updates
50
+ NetProps. SetPropBool (point, " m_bUseClientSideAnimation" , false )
51
+ AddThinkToEnt (point, " ControlPointThink" )
52
+
49
53
EntFireByHandle (worldtext, " SetParent" , " !activator" , - 1 , point, null )
50
54
AddThinkToEnt (worldtext, " ControlPointTextThink" )
51
55
}
@@ -70,6 +74,12 @@ __CollectGameEventCallbacks(EventsTable)
70
74
return - 1
71
75
}
72
76
77
+ ::ControlPointThink <- function()
78
+ {
79
+ self. StudioFrameAdvance ()
80
+ return - 1
81
+ }
82
+
73
83
::ControlPointTextThink <- function()
74
84
{
75
85
local parent = NetProps. GetPropEntity (self, " m_hMoveParent" )
0 commit comments