-#include "nades.qh"
+#include "net.qh"
+
+#ifdef GAMEQC
-#ifdef IMPLEMENTATION
+#include "nades.qh"
#ifdef CSQC
.float ltime;
this.alpha = (this.ltime - time) / this.orb_lifetime;
this.scale = min((1 - this.alpha)*this.orb_lifetime*4,1)*this.orb_radius;
+ this.angles = this.angles + dt * this.avelocity;
}
void orb_setup(entity e)
{
setmodel(e, MDL_NADE_ORB);
+ e.skin = 1;
setorigin(e, e.origin);
e.orb_radius = e.orb_radius/model_radius*0.6;
e.draw = orb_draw;
+ IL_PUSH(g_drawables, e);
e.health = 255;
- e.movetype = MOVETYPE_NONE;
+ set_movetype(e, MOVETYPE_NONE);
e.solid = SOLID_NOT;
e.drawmask = MASK_NORMAL;
e.scale = 0.01;
- e.avelocity = e.move_avelocity = '7 0 11';
+ e.avelocity = '7 0 11';
e.renderflags |= RF_ADDITIVE;
}
#endif