Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
modeleffects.qh File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void modeleffect_spawn (string m, float s, float f, vector o, vector v, vector ang, vector angv, float s0, float s2, float a, float t1, float t2)

Function Documentation

◆ modeleffect_spawn()

void modeleffect_spawn ( string m,
float s,
float f,
vector o,
vector v,
vector ang,
vector angv,
float s0,
float s2,
float a,
float t1,
float t2 )

Definition at line 48 of file modeleffects.qc.

49{
50 entity e = new(modeleffect);
51 _setmodel(e, m);
52 e.frame = f;
53 setorigin(e, o);
54 e.velocity = v;
55 e.angles = ang;
56 e.avelocity = angv;
57 e.alpha = a;
58 e.teleport_time = t1;
59 e.fade_time = t2;
60 e.skin = s;
61 if(s0 >= 0)
62 e.scale = s0 / max6(-e.mins.x, -e.mins.y, -e.mins.z, e.maxs.x, e.maxs.y, e.maxs.z);
63 else
64 e.scale = -s0;
65 if(s2 >= 0)
66 e.scale2 = s2 / max6(-e.mins.x, -e.mins.y, -e.mins.z, e.maxs.x, e.maxs.y, e.maxs.z);
67 else
68 e.scale2 = -s2;
69 float sz = max(e.scale, e.scale2);
70 setsize(e, e.mins * sz, e.maxs * sz);
72}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
void Net_LinkEntity(entity e, bool docull, float dt, bool(entity this, entity to, int sendflags) sendfunc)
Definition net.qh:123
float max(float f,...)
bool modeleffect_SendEntity(entity this, entity to, int sf)
spree_inf s1 s2 s3loc s2 spree_inf s1 s2 s3loc s2 spree_inf s1 s2 s3loc s2 s1 s2loc s1 s2loc s1 s2loc s1 s2loc s1 s2loc s1 s2loc s1 s2 f1points s1 s2
Definition all.inc:469
vector vector ang
Definition self.qh:92

References ang, entity(), max(), modeleffect_SendEntity(), Net_LinkEntity(), s2, and vector.

Referenced by W_Fireball_Explode().