]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
more todo notes and fixes
authordrjaska <drjaska83@gmail.com>
Sun, 28 Nov 2021 23:32:27 +0000 (01:32 +0200)
committerdrjaska <drjaska83@gmail.com>
Sun, 28 Nov 2021 23:32:27 +0000 (01:32 +0200)
qcsrc/common/gamemodes/gamemode/mh/TODO.txt
qcsrc/common/gamemodes/gamemode/mh/mh.qh
qcsrc/common/gamemodes/gamemode/mh/sv_mh.qc

index cae75cc33f4223c580192f2cab381422a44aee09..67a12d06f6a8bf9074be921c5b2a7f62b3d2ee0a 100644 (file)
@@ -1,9 +1,13 @@
 add g_mh_startitem cvars to the balance files
 
-+1 waypoint mode, waypoints for runners on round start always and waypoints for hunters when there are 3 or more hunters
++2 waypoint modes, 
+waypoints for runners on round start always and waypoints for hunters when there are 3 or more hunters
+only runners can see other runners but hunters don't see others
 
 rename teams as far as possible
 
+find a proper damage type for tagging instead of death by camping as it doesn't show kill notifications or text
+
 on-screen notification for getting tagged
 
 on-screen indication for your role
@@ -16,5 +20,4 @@ add more TODO: notes
 
 
 
-fix waypoint visibility, currently they are always visible to everyone. Fix them to not be visible for self or for spectators of that player.
-can you even see your own null waypoint?
\ No newline at end of file
+fix waypoint visibility, currently they are always visible to everyone. Fix them to not be visible for spectators of that player.
\ No newline at end of file
index 090c410cc49de3a39f8dce37487c30efd3e1c992..fb3729f03effa8dd7286e193478312506722d949 100644 (file)
@@ -16,7 +16,7 @@ CLASS(Manhunt, Gametype)
        }
        METHOD(Manhunt, m_isAlwaysSupported, bool(Gametype this, int spawnpoints, float diameter))
        {
-               if(spawnpoints >= 4 && diameter > 4096)
+               if(spawnpoints >= 2 && diameter > 4096)
                        return true;
                return false;
        }
index a55c7bfdeadcc3d9286e3d650224a588720521df..947a1b212e79aba4b60d46227c79729d0da36da2 100644 (file)
@@ -57,11 +57,16 @@ MUTATOR_HOOKFUNCTION(mh, Damage_Calculate)
        float frag_damage = M_ARGV(4, float);
        vector frag_force = M_ARGV(6, vector);
        
-       if(frag_deathtype==DEATH_CAMP.m_id)return;
+       if(frag_deathtype == DEATH_FALL.m_id){
+               M_ARGV(4, float) = 0; //no fall damage or splat damage
+               return;
+       }
+       
+       if(frag_deathtype==DEATH_CAMP.m_id || !IS_PLAYER(frag_attacker)return;
        
        if(IS_PLAYER(frag_target) && !IS_DEAD(frag_target)){ //check that the target is a player and not dead, allows anyone to knock around corpses for funsies
 
-               if(frag_deathtype == DEATH_FALL.m_id)frag_damage = 0; //no fall damage or splat damage
+               
 
                switch(autocvar_g_mh_weapons_damage)
                {