39 e.scale =
random() * 5 + 8;
40 e.move_time =
time + 0.05;
90 org = this.
origin +
randompos(
'-30 -30 -30' * i +
'0 0 -20',
'30 30 30' * i +
'0 0 20');
141 else if(hp <= this.max_health || hp >= this.
max_health)
158 setorigin(
this, this.
origin);
184 this.teamradar_color =
'1 1 0';
196 setorigin(
this, this.
origin);
214 if(_tmp != this.
team)
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
void generator_damage(entity this, float hp)
void generator_construct(entity this, bool isnew)
void ons_generator_ray_spawn(vector org)
void generator_draw(entity this)
void generator_changeteam(entity this)
void ons_generator_ray_draw(entity this)
const vector GENERATOR_MIN
const vector GENERATOR_MAX
float GetResource(entity e, Resource res_type)
Returns the current amount of resource the given entity has.
bool SetResourceExplicit(entity e, Resource res_type, float amount)
Sets the resource amount of an entity without calling any hooks.
IntrusiveList g_drawables
#define setmodel(this, m)
#define pointparticles(effect, org, vel, howmany)
ERASEABLE void IL_REMOVE(IntrusiveList this, entity it)
Remove any element, anywhere in the list.
ERASEABLE entity IL_PUSH(IntrusiveList this, entity it)
Push to tail.
#define NET_HANDLE(id, param)
void set_movetype(entity this, int mt)
const int MOVETYPE_NOCLIP
IntrusiveList g_onsgenerators
#define sound(e, c, s, v, a)
vector Team_ColorRGB(int teamid)
ERASEABLE vector randompos(vector m1, vector m2)