buttons.qc (321B)
1 void() button_touch = 2 { 3 if (other.classname != "player") 4 return; 5 if (self.movestate != MST_REST) 6 return; 7 8 self.movestate = MST_CLICK; 9 self.frame = 1; 10 SUB_UseTargets(); 11 } 12 13 void() func_button = 14 { 15 self.movetype = MOVETYPE_PUSH; 16 self.solid = SOLID_BSP; 17 setmodel (self, self.model); 18 19 self.touch = button_touch; 20 }