]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/Main.qc
After the MOTD self-expired normally, when joining the game it was shown again quickl...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / Main.qc
index 4e54f811c91ef963d7e3351d5d475510441d58b9..d4d1948d4cd88b5413e57cac46a64d2f3e61de4f 100644 (file)
@@ -140,6 +140,7 @@ void CSQC_Init(void)
        Casings_Precache();
        DamageInfo_Precache();
        Vehicles_Precache();
+       turrets_precache();
 
        if(autocvar_cl_announcer != cl_announcer_prev) {
                Announcer_Precache();
@@ -987,6 +988,7 @@ void(float bIsNewEntity) CSQC_Ent_Update =
                case ENT_CLIENT_GAUNTLET: Ent_ReadHook(bIsNewEntity, ENT_CLIENT_GAUNTLET); break;
                case ENT_CLIENT_ACCURACY: Ent_ReadAccuracy(); break;
                case ENT_CLIENT_AUXILIARYXHAIR: Net_AuXair2(bIsNewEntity); break;
+               case ENT_CLIENT_TURRET: ent_turret(); break; 
                default:
                        //error(strcat(_("unknown entity type in CSQC_Ent_Update: %d\n"), self.enttype));
                        error(sprintf(_("Unknown entity type in CSQC_Ent_Update (enttype: %d, edict: %d, classname: %s)\n"), self.enttype, num_for_edict(self), self.classname));
@@ -1328,6 +1330,17 @@ void Net_Notify() {
        {
                HUD_Centerprint(ReadString(), ReadString(), ReadShort(), ReadByte());
        }
+       else if(type == CSQC_CENTERPRINT_GENERIC)
+       {
+               float id;
+               string s;
+               id = ReadByte();
+               s = ReadString();
+               if (id != 0 && s != "")
+                       centerprint_generic(id, s, ReadByte(), ReadByte());
+               else
+                       centerprint_generic(id, s, 0, 0);
+       }
 }
 
 void Net_WeaponComplain() {