X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fclient%2FMain.qc;h=f916e843af6120484cfc04fb6f2fa0d3f54d1ed1;hp=28db128b06d52f379c76bf71d989fb58680926a0;hb=a090db7b58f8721e8344516bd896db69050a48d0;hpb=9bad86b2cf8cbfcc1c29b6aef66f6cae39476e03 diff --git a/qcsrc/client/Main.qc b/qcsrc/client/Main.qc index 28db128b0..f916e843a 100644 --- a/qcsrc/client/Main.qc +++ b/qcsrc/client/Main.qc @@ -148,23 +148,6 @@ void CSQC_Init(void) } Tuba_Precache(); -#ifdef UID - { - // find the user ID - string uid; - registercvar("_cl_userid", "", CVAR_SAVE); - uid = cvar_string("_cl_userid"); - if(strlen(uid) < 16) - { - uid = ""; - for(i = 0; i < 4; ++i) - uid = strcat(uid, substring(ftos(floor(10000 + random() * 10000)), 1, -1)); - } - cvar_set("_cl_userid", uid); - localcmd(strcat("\ncmd uid ", uid, "\n")); - } -#endif - get_mi_min_max_texcoords(1); // try the CLEVER way first minimapname = strcat("gfx/", mi_shortname, "_radar.tga"); shortmapname = mi_shortname; @@ -457,7 +440,9 @@ void ShotOrg_Draw() self.angles = view_angles; self.angles_x = -self.angles_x; if not(self.cnt) - R_AddEntity(self); + self.drawmask = MASK_NORMAL; + else + self.drawmask = 0; } void ShotOrg_Draw2D() { @@ -504,11 +489,12 @@ void DrawDebugModel() if(time - floor(time) > 0.5) { PolyDrawModel(self); + self.drawmask = 0; } else { self.renderflags = 0; - R_AddEntity(self); + self.drawmask = MASK_NORMAL; } } @@ -1352,9 +1338,12 @@ float CSQC_Parse_TempEntity() bHandled = true; break; case TE_CSQC_NEX_VELOCITY: + nex_velocitydependent = ReadByte(); nex_minvelocity = ReadShort(); nex_maxvelocity = ReadShort(); - nex_speed_falloff_factor = ReadShort()/10000; + nex_speed_falloff_rate = ReadByte(); + nex_charge = ReadByte(); + nex_charge_rate = ReadByte(); bHandled = true; break; case TE_CSQC_CR_MAXBULLETS: