From: drjaska Date: Sat, 6 Mar 2021 01:37:39 +0000 (+0200) Subject: fixed a compile error, all the hooks work now, need to find a way to X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7874376f7c8ad63b7f916146325ea5dceee2480c;p=xonotic%2Fxonotic-data.pk3dir.git fixed a compile error, all the hooks work now, need to find a way to disable self damage and hp&armor rot. need to find the file to write default values for g_mayhem_ regeneration and weaponarena. need to add a new icon for mayhem. need to look into mapinfo regeneration. --- diff --git a/qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc b/qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc index 7b443af5f..5fbe7a096 100644 --- a/qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc +++ b/qcsrc/common/gamemodes/gamemode/mayhem/sv_mayhem.qc @@ -1,6 +1,7 @@ #include "sv_mayhem.qh" -bool autocvar_g_mayhem_regenerate; +float autocvar_g_mayhem_regenerate; +string autocvar_g_mayhem_weaponarena; MUTATOR_HOOKFUNCTION(mayhem, Scores_CountFragsRemaining) { @@ -49,4 +50,6 @@ MUTATOR_HOOKFUNCTION(mayhem, FilterItem) if (autocvar_g_pickup_items <= 0) return true; + else + return false; } \ No newline at end of file