remove(self);
self.nextthink = time + 0.1;
-};
+}
void dynlight_find_aiment()
{
- local entity targ;
+ entity targ;
if (!self.target)
objerror ("dynlight: no target to follow");
self.v_angle = self.angles - targ.angles;
self.think = dynlight_think;
self.nextthink = time + 0.1;
-};
+}
void dynlight_find_path()
{
- local entity targ;
+ entity targ;
if (!self.target)
objerror ("dynlight: no target to follow");
setorigin (self, targ.origin);
self.think = train_next;
self.nextthink = time + 0.1;
-};
+}
void dynlight_find_target()
{
- local entity targ;
+ entity targ;
if (!self.target)
objerror ("dynlight: no target to follow");
self.light_lev = self.lefty;
else
self.light_lev = 0;
-};
+}
void spawnfunc_dynlight()
{
local entity targ;
InitializeEntity(self, dynlight_find_path, INITPRIO_FINDTARGET);
return;
}
-};
+}