File tree Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Expand file tree Collapse file tree 1 file changed +4
-20
lines changed Original file line number Diff line number Diff line change @@ -71,33 +71,17 @@ public void Handle()
71
71
{
72
72
case "func_breakable" :
73
73
case "func_breakable_surf" :
74
+ case "prop_dynamic" :
75
+ case "prop.breakable.01" :
76
+ case "prop.breakable.02" :
74
77
var breakableEntity = new PointerTo < CBreakable > ( pEntity . Handle ) . Value ;
75
78
76
79
if ( breakableEntity . IsValid )
77
80
{
78
81
breakableEntity . AcceptInput ( action ) ;
79
82
}
80
83
break ;
81
-
82
- case "prop.breakable.01" :
83
- case "prop.breakable.02" :
84
- var breakableProp = new PointerTo < CBreakableProp > ( pEntity . Handle ) . Value ;
85
-
86
- if ( breakableProp . IsValid )
87
- {
88
- breakableProp . AcceptInput ( action ) ;
89
- }
90
- break ;
91
-
92
- case "prop_dynamic" :
93
- var dynamicProp = new PointerTo < CDynamicProp > ( pEntity . Handle ) . Value ;
94
-
95
- if ( dynamicProp . IsValid )
96
- {
97
- dynamicProp . AcceptInput ( action ) ;
98
- }
99
- break ;
100
-
84
+
101
85
case "func_button" :
102
86
var button = new PointerTo < CBaseButton > ( pEntity . Handle ) . Value ;
103
87
You can’t perform that action at this time.
0 commit comments