]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge remote-tracking branch 'origin' into TimePath/guide
authorotta8634 <k9wolf@pm.me>
Fri, 9 May 2025 17:32:30 +0000 (01:32 +0800)
committerotta8634 <k9wolf@pm.me>
Fri, 9 May 2025 17:32:30 +0000 (01:32 +0800)
20 files changed:
1  2 
qcsrc/common/gamemodes/gamemode/cts/cts.qh
qcsrc/common/gamemodes/gamemode/tmayhem/tmayhem.qh
qcsrc/common/items/item/ammo.qh
qcsrc/common/items/item/armor.qh
qcsrc/common/items/item/health.qh
qcsrc/common/items/item/jetpack.qh
qcsrc/common/items/item/pickup.qh
qcsrc/common/monsters/monster/mage.qc
qcsrc/common/mutators/mutator/nades/nade/darkness.qc
qcsrc/common/mutators/mutator/nades/nade/heal.qc
qcsrc/common/mutators/mutator/nades/nade/ice.qc
qcsrc/common/mutators/mutator/nades/nade/monster.qc
qcsrc/common/mutators/mutator/nades/nade/napalm.qc
qcsrc/common/mutators/mutator/nades/nade/normal.qc
qcsrc/common/mutators/mutator/powerups/powerups.qh
qcsrc/common/mutators/mutator/walljump/walljump.qc
qcsrc/common/weapons/all.qh
qcsrc/common/weapons/weapon/fireball.qc
qcsrc/menu/xonotic/_mod.inc
qcsrc/menu/xonotic/_mod.qh

index 166ae53376fd9e769d94adcc1a874e38be72b49e,87ecd23ac61773534ae9229c66d05890e291beca..5030ca00dbe358430ce5784d61c829496d000129
@@@ -6,31 -6,31 +6,31 @@@
  #endif
  
  CLASS(RaceCTS, Gametype)
-     INIT(RaceCTS)
-     {
-         this.gametype_init(this, _("Race CTS"),"cts","g_cts",0,"cloaked","timelimit=20",_("Race to the finish line for the fastest time"));
-     }
-     METHOD(RaceCTS, m_generate_mapinfo, void(Gametype this, string v))
-     {
-         if(v == "target_startTimer")
-             MapInfo_Map_supportedGametypes |= this.gametype_flags;
-     }
-     METHOD(RaceCTS, m_setTeams, void(string sa))
-     {
-         // this is the skill of the map
-         // not parsed by anything yet
-         // for map databases
-         //  cvar_set("fraglimit", sa);
-     }
-     METHOD(RaceCTS, m_configuremenu, void(Gametype this, entity menu, void(entity me, string pLabel, float pMin, float pMax, float pStep, string pCvar, string tCvar, string pTooltip) returns))
-     {
-         TC(Gametype, this);
-         returns(menu, _("Point limit:"),    50,  500, 10, string_null,                 string_null,                    string_null);
-     }
+       INIT(RaceCTS)
+       {
 -              this.gametype_init(this, _("Race CTS"),"cts","g_cts",0,"cloaked","timelimit=20",_("Race for fastest time."));
++              this.gametype_init(this, _("Race CTS"),"cts","g_cts",0,"cloaked","timelimit=20",_("Race to the finish line for the fastest time"));
+       }
+       METHOD(RaceCTS, m_generate_mapinfo, void(Gametype this, string v))
+       {
+               if(v == "target_startTimer")
+                       MapInfo_Map_supportedGametypes |= this.gametype_flags;
+       }
+       METHOD(RaceCTS, m_setTeams, void(string sa))
+       {
+               // this is the skill of the map
+               // not parsed by anything yet
+               // for map databases
+               //  cvar_set("fraglimit", sa);
+       }
+       METHOD(RaceCTS, m_configuremenu, void(Gametype this, entity menu, void(entity me, string pLabel, float pMin, float pMax, float pStep, string pCvar, string tCvar, string pTooltip) returns))
+       {
+               TC(Gametype, this);
+               returns(menu, _("Point limit:"),    50,  500, 10, string_null,                 string_null,                    string_null);
+       }
  #ifdef CSQC
-     ATTRIB(RaceCTS, m_modicons, void(vector pos, vector mySize), HUD_Mod_Race);
+       ATTRIB(RaceCTS, m_modicons, void(vector pos, vector mySize), HUD_Mod_Race);
  #endif
-     ATTRIB(RaceCTS, m_legacydefaults, string, "20 0 0");
+       ATTRIB(RaceCTS, m_legacydefaults, string, "20 0 0");
  ENDCLASS(RaceCTS)
  REGISTER_GAMETYPE(CTS, NEW(RaceCTS));
  #define g_cts IS_GAMETYPE(CTS)
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 8c8ca1637df31275f1dd41938f8fb2d17a6b18d4,2d679fad000bf00ba80b7428e9a6023fd7db7f8c..ca40d95c8776963e03a8ac8a7b1c77c6ec27951b
@@@ -114,12 -114,3 +114,12 @@@ void nade_ice_boom(entity this
                setmodel(fountain, MDL_Null);
  }
  #endif // SVQC
-               "While frozen, players can't move or shoot, leaving them vulnerable to damage."),
 +#ifdef MENUQC
 +METHOD(IceNade, describe, string(IceNade this))
 +{
 +      TC(IceNade, this);
 +      return sprintf(_("The %s detonates after a short delay, freezing any enemies who walk within the explosion radius for a few seconds after the explosion. "
++              "While frozen, players can't move or shoot, leaving them vulnerable to damage, but if left too long they'll unfreeze and run away!"),
 +      COLORED_NAME(this));
 +}
 +#endif // MENUQC
index 67aa9c3d81f2085da6af741a362d2f1129e472e4,4c5c7d1654d941febde66892f692a0b80eb2b6e2..2d35090acbc8fe4b7696f3c69c8d70559233c383
@@@ -19,11 -19,3 +19,11 @@@ void nade_monster_boom(entity this
        e.monster_skill = MONSTER_SKILL_INSANE;
  }
  #endif // SVQC
-       return sprintf(_("The %s explodes after a short delay, spawning one of four monster types."),
 +#ifdef MENUQC
 +METHOD(MonsterNade, describe, string(MonsterNade this))
 +{
 +      TC(MonsterNade, this);
++      return sprintf(_("The %s detonates after a short delay, spawning one of four monster types."),
 +      COLORED_NAME(this));
 +}
 +#endif // MENUQC
index 2170d70b239932de4eea9c857d6d45d001c54b6c,ed0aecb9c3b52845942ca447487a81435fc5ab77..ffe7fefa1d8c92f55680865427b89a4b8d03e553
@@@ -176,12 -176,3 +176,12 @@@ void nade_napalm_boom(entity this
        CSQCProjectile(fountain, true, PROJECTILE_NAPALM_FOUNTAIN, true);
  }
  #endif // SVQC
-       return sprintf(_("The %s explodes after a short delay, spreading fiery napalm globs around in the fountain. "
 +#ifdef MENUQC
 +METHOD(NapalmNade, describe, string(NapalmNade this))
 +{
 +      TC(NapalmNade, this);
++      return sprintf(_("The %s detonates after a short delay, spreading fiery napalm globs around in the fountain. "
 +              "The napalm fire balls burn for a while, and damage players who get too close."),
 +      COLORED_NAME(this));
 +}
 +#endif // MENUQC
index f1dcb57d3f44e9f9e3405afeaf08746817650d78,1e133fdfb19f333c988978e4cbf2dc5d4c78d62f..2f56cba7dff5a0d1e56dadfb63b98ee0f793efa3
@@@ -9,12 -9,3 +9,13 @@@ void nade_normal_boom(entity this
                autocvar_g_nades_nade_radius, '1 1 1' * autocvar_g_nades_nade_force, this.projectiledeathtype, 0, this);
  }
  #endif // SVQC
-       return sprintf(_("The (normal) %s explodes after a short delay, dealing damage to nearby players.\n\n"
 +#ifdef MENUQC
 +METHOD(NormalNade, describe, string(NormalNade this))
 +{
 +      TC(NormalNade, this);
++      return sprintf(_("The (normal) %s explodes after a short delay, dealing damage to nearby players. "
++              "If other nade types are destroyed before they detonate, they will instead explode similarly, without doing their special effects.\n\n"
 +              "Make sure you remember to throw it with ^3drop weapon^7, or else it will blow up in your hands!"),
 +      COLORED_NAME(this));
 +}
 +#endif // MENUQC
index 6e6bdc660d76f95e21fbe4e447f27474c409b6f4,b8f5b731ab319b7a81950cfe70e3b76528102c78..6694b574d7ef06a415b54ef4256539e89ec18ee7
@@@ -6,16 -12,9 +12,16 @@@ CLASS(Powerup, Pickup
      ATTRIB(Powerup, m_maxs, vector, ITEM_L_MAXS);
      ATTRIB(Powerup, m_botvalue, int, 11000);
      ATTRIB(Powerup, m_itemflags, int, FL_POWERUP);
-     ATTRIB(Powerup, m_respawntime, float(), GET(g_pickup_respawntime_powerup));
-     ATTRIB(Powerup, m_respawntimejitter, float(), GET(g_pickup_respawntimejitter_powerup));
+     ATTRIB(Powerup, m_respawntime, float, autocvar_g_pickup_respawntime_powerup);
+     ATTRIB(Powerup, m_respawntimejitter, float, autocvar_g_pickup_respawntimejitter_powerup);
  #endif
 +#ifdef MENUQC
 +    METHOD(Powerup, describe, string(Powerup this))
 +    {
 +        TC(Powerup, this);
 +        return SUPER(Powerup).describe(this);
 +    }
 +#endif
  ENDCLASS(Powerup)
  
  #include <common/mutators/mutator/status_effects/all.qh>
Simple merge
Simple merge
Simple merge