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)
154 IL_PUSH(g_onsgenerators,
this);
184 this.teamradar_color =
'1 1 0';
195 this.
origin = ReadVector();
200 this.
count = ReadByte();
201 this.
team = ReadByte();
214 if(_tmp != this.
team)
ERASEABLE void IL_REMOVE(IntrusiveList this, entity it)
Remove any element, anywhere in the list.
void generator_changeteam(entity this)
bool SetResourceExplicit(entity e, Resource res_type, float amount)
Sets the resource amount of an entity without calling any hooks.
vector Team_ColorRGB(int teamid)
const vector GENERATOR_MIN
void generator_construct(entity this, bool isnew)
#define setmodel(this, m)
ERASEABLE vector randompos(vector m1, vector m2)
ERASEABLE entity IL_PUSH(IntrusiveList this, entity it)
Push to tail.
void generator_damage(entity this, float hp)
void ons_generator_ray_draw(entity this)
void ons_generator_ray_spawn(vector org)
vector(float skel, float bonenum) _skel_get_boneabs_hidden
float GetResource(entity e, Resource res_type)
Returns the current amount of resource the given entity has.
const vector GENERATOR_MAX
NET_HANDLE(ENT_CLIENT_GENERATOR, bool isnew)
#define sound(e, c, s, v, a)
IntrusiveList g_drawables
void set_movetype(entity this, int mt)
void generator_draw(entity this)