31 virtual float SendEntity(entity,
float);
33 virtual void ReceiveEntity(
void);
34 virtual float predraw(
void);
35 virtual void BuildShader(
void);
39 virtual void Place(vector,
string);
40 virtual void PlaceAtScale(vector,
string,
float);
57decal_pickwall(entity dself, vector vpos)
63 g_tracedDecal.
endpos = [0,0,0];
64 g_tracedDecal.
normal = [0,0,0];
67 makevectors([0, 0, 0]);
68 traceline(vpos + (v_forward * -1), vpos + (v_forward * 128), 0, dself);
70 tmp[0].
normal = trace_plane_normal;
71 tmp[0].
endpos = trace_endpos;
72 traceline(vpos + (v_forward * 1), vpos + (v_forward * -128), 0, dself);
74 tmp[1].
normal = trace_plane_normal;
75 tmp[1].
endpos = trace_endpos;
76 traceline(vpos + (v_right * -1), vpos + (v_right * 128), 0, dself);
78 tmp[2].
normal = trace_plane_normal;
79 tmp[2].
endpos = trace_endpos;
80 traceline(vpos + (v_right * 1), vpos + (v_right * -128), 0, dself);
82 tmp[3].
normal = trace_plane_normal;
83 tmp[3].
endpos = trace_endpos;
84 traceline(vpos + (v_up * -1), vpos + (v_up * 128), 0, dself);
86 tmp[4].
normal = trace_plane_normal;
87 tmp[4].
endpos = trace_endpos;
88 traceline(vpos + (v_up * 1), vpos + (v_up * -128), 0, dself);
90 tmp[5].
normal = trace_plane_normal;
91 tmp[5].
endpos = trace_endpos;
94 for (
int i = 0; i < 6; i++) {
95 if (tmp[i].fraction < frac) {
104void Decals_Init(
void);
105NSDecal Decals_Next(vector pos);
108void Decals_Place(vector pos,
string dname);
111string Decal_Precache(
string decalTex);
112void Decal_Parse(
void);
113void Decal_Reload(
void);
114void Decal_Shutdown(
void);
This entity class represents decals
Definition: NSDecal.h:26
vector endpos
Definition: NSDecal.h:51
vector normal
Definition: NSDecal.h:50
float fraction
Definition: NSDecal.h:49