]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'master' into LegendaryGuard/ttt
authorLegendaryGuard <rootuser999@gmail.com>
Tue, 12 Oct 2021 07:31:57 +0000 (09:31 +0200)
committerLegendaryGuard <rootuser999@gmail.com>
Tue, 12 Oct 2021 07:31:57 +0000 (09:31 +0200)
1  2 
gamemodes-server.cfg
notifications.cfg
qcsrc/common/ent_cs.qc
qcsrc/common/notifications/all.inc
qcsrc/common/notifications/all.qh
qcsrc/common/scores.qh
qcsrc/common/stats.qh
qcsrc/server/world.qc

Simple merge
Simple merge
index 21172448527ccf0cd4a49bce3fb1ec850f94556e,a3691386be379296ae2b494025666e320a13de18..4ef353a5296ff22b55703905c038107be6a0cab0
@@@ -157,20 -157,25 +157,31 @@@ ENTCS_PROP(SOLID, true, sv_solid, solid
        { WriteByte(chan, ent.sv_solid); },
        { ent.sv_solid = ReadByte(); })
  
 +//LegendGuard adds ENTCS_PROP for MMM 20-02-2021
 +// gamemode specific player mmm status (independent of score and frags)
 +ENTCS_PROP(MMM_STATUS, true, mmm_status, mmm_status, ENTCS_SET_NORMAL,
 +      { WriteShort(chan, ent.mmm_status); },
 +      { ent.mmm_status = ReadShort(); })
 +
  #ifdef SVQC
  
-       int ENTCS_PUBLICMASK = 0;
+       int ENTCS_PUBLICMASK = 0, ENTCS_PRIVATEMASK = 0;
        STATIC_INIT(ENTCS_PUBLICMASK)
        {
-               FOREACH(EntCSProps, it.m_public,
+               FOREACH(EntCSProps, true,
                {
-                       ENTCS_PUBLICMASK |= BIT(it.m_id);
+                       if (it.m_public)
+                               ENTCS_PUBLICMASK |= BIT(it.m_id);
+                       else
+                               ENTCS_PRIVATEMASK |= BIT(it.m_id);
+               });
+       }
+       void entcs_update_players(entity player)
+       {
+               FOREACH_CLIENT(it != player && IS_PLAYER(it),
+               {
+                       CS(it).entcs.SendFlags |= ENTCS_PRIVATEMASK;
                });
        }
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge