]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
A couple of tweaks (don't do fall damage tests if player entity isn't moving, don...
authorMario <mario@smbclan.net>
Thu, 23 Jun 2016 22:21:00 +0000 (08:21 +1000)
committerMario <mario@smbclan.net>
Thu, 23 Jun 2016 22:21:00 +0000 (08:21 +1000)
qcsrc/server/cheats.qc
qcsrc/server/cl_client.qc
qcsrc/server/sv_main.qc

index 9706a2f1598820d972650d73fc14950d87f3ab55..a7cbeae2856f37e6ffd7913524810e58c94e76f1 100644 (file)
@@ -733,7 +733,8 @@ float CheatFrame(entity this)
                        if(this.maycheat || (gamestart_sv_cheats && autocvar_sv_cheats))
                        {
                                // use cheat dragging if cheats are enabled
-                               crosshair_trace_plusvisibletriggers(this);
+                               //if(Drag_IsDragging(this))
+                                       //crosshair_trace_plusvisibletriggers(this);
                                Drag(this, true, true);
                        }
                        else
index 608895b4e77cc630e2e84bb2ec8f20e4236f3ba1..3edf09ef9ae89c3c9e54f1c6ef2188f1afe65c74 100644 (file)
@@ -802,7 +802,7 @@ void ClientKill_Now(entity this)
        if(this.killindicator_teamchange)
                ClientKill_Now_TeamChange(this);
 
-       if(IS_PLAYER(this))
+       if(!IS_SPEC(this) && !IS_OBSERVER(it))
                Damage(this, this, this, 100000, DEATH_KILL.m_id, this.origin, '0 0 0');
 
        // now I am sure the player IS dead
@@ -905,7 +905,7 @@ void ClientKill_TeamChange (entity this, float targetteam) // 0 = don't change,
                                setorigin(it.killindicator, '0 0 52');
                                setthink(it.killindicator, KillIndicator_Think);
                                it.killindicator.nextthink = starttime + (it.lip) * 0.05;
-                               clientkilltime = max(clientkilltime, it.killindicator.nextthink + 0.05);
+                               //clientkilltime = max(clientkilltime, it.killindicator.nextthink + 0.05);
                                it.killindicator.cnt = ceil(killtime);
                        });
                        this.lip = 0;
index 5eaf6618fa865f291018f3a68aa63a62fafbffdb..bc6814879122a116786dfa7074b92eed0766f617 100644 (file)
@@ -96,6 +96,7 @@ void CreatureFrame_Liquids(entity this)
 void CreatureFrame_FallDamage(entity this)
 {
        if(!IS_VEHICLE(this) && !(this.flags & FL_PROJECTILE)) // vehicles don't get falling damage
+       if(this.velocity || this.oldvelocity) // moving or has moved
        {
                // check for falling damage
                float velocity_len = vlen(this.velocity);