37 if (this.punchangle_x > 0)
39 this.punchangle_x = this.punchangle_x - 60 *
frametime;
40 if (this.punchangle_x < 0)
41 this.punchangle_x = 0;
43 else if (this.punchangle_x < 0)
45 this.punchangle_x = this.punchangle_x + 60 *
frametime;
46 if (this.punchangle_x > 0)
47 this.punchangle_x = 0;
50 if (this.punchangle_y > 0)
52 this.punchangle_y = this.punchangle_y - 60 *
frametime;
53 if (this.punchangle_y < 0)
54 this.punchangle_y = 0;
56 else if (this.punchangle_y < 0)
58 this.punchangle_y = this.punchangle_y + 60 *
frametime;
59 if (this.punchangle_y > 0)
60 this.punchangle_y = 0;
63 if (this.punchangle_z > 0)
65 this.punchangle_z = this.punchangle_z - 60 *
frametime;
66 if (this.punchangle_z < 0)
67 this.punchangle_z = 0;
69 else if (this.punchangle_z < 0)
71 this.punchangle_z = this.punchangle_z + 60 *
frametime;
72 if (this.punchangle_z > 0)
73 this.punchangle_z = 0;
76 this.angles_x = this.punchangle_x;
77 this.angles_y = this.punchangle_y + this.angles_y;
78 this.angles_z = this.punchangle_z;
79 this.angles_y = this.angles_y + 45 *
frametime;
95 else if(hp <= this.max_health || hp >= this.
max_health)
109 this.
netname =
"Control Point Icon";
154 this.teamradar_color =
'1 1 0';
165 this.
origin = ReadVector();
170 this.
count = ReadByte();
171 this.
team = ReadByte();
183 int _tmp = ReadByte();
184 if(_tmp != this.
team)
bool SetResourceExplicit(entity e, Resource res_type, float amount)
Sets the resource amount of an entity without calling any hooks.
void cpicon_changeteam(entity this)
vector Team_ColorRGB(int teamid)
void cpicon_damage(entity this, float hp)
void cpicon_construct(entity this, bool isnew)
#define setmodel(this, m)
ERASEABLE entity IL_PUSH(IntrusiveList this, entity it)
Push to tail.
void cpicon_draw(entity this)
float GetResource(entity e, Resource res_type)
Returns the current amount of resource the given entity has.
NET_HANDLE(ENT_CLIENT_CONTROLPOINT_ICON, bool isnew)
IntrusiveList g_drawables
void set_movetype(entity this, int mt)