]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Finally fixed nade slapping and being able to shoot yourself, thanks to divVerent
authorMario <zacjardine@y7mail.com>
Thu, 5 Feb 2015 18:17:37 +0000 (05:17 +1100)
committerMario <zacjardine@y7mail.com>
Thu, 5 Feb 2015 18:17:37 +0000 (05:17 +1100)
qcsrc/client/main.qh
qcsrc/client/view.qc
qcsrc/common/weapons/w_shotgun.qc
qcsrc/server/g_subs.qc
qcsrc/server/mutators/mutator_nades.qc

index 45aa3c05b0fe9b777775fc34f8842a3a997de0ce..4757b4456a044820f544264ca8a358652b4e7f84 100644 (file)
@@ -166,5 +166,5 @@ int spectatorlist[MAX_SPECTATORS];
 bool camera_drawviewmodel_locked;
 bool camera_drawviewmodel_backup;
 
-int framecount;
+float framecount;
 #endif
index bbbad7c65401e44df9cfcb41d51f0a3c2a07e959..8b36f5c3467d615f2fb3d8bd762041be5d1e8360 100644 (file)
@@ -1042,7 +1042,7 @@ void UpdateCrosshair()
 }
 
 float fps_start;
-int fps_frames;
+float fps_frames;
 
 void FPSCounter_Update()
 {
index 4fc96eb2cc6479b315fcf3ac6e635febc0af1c30..d88a15159adbba8beb3f8355f6cc72d1efbcb1dc 100644 (file)
@@ -120,7 +120,7 @@ void W_Shotgun_Melee_Think(void)
                        + (v_up * swing_factor * WEP_CVAR_SEC(shotgun, melee_swing_up))
                        + (v_right * swing_factor * WEP_CVAR_SEC(shotgun, melee_swing_side)));
 
-               WarpZone_traceline_antilag(self, self.realowner.origin + self.realowner.view_ofs, targpos, false, self.realowner, ANTILAG_LATENCY(self.realowner));
+               WarpZone_traceline_antilag(self.realowner, self.realowner.origin + self.realowner.view_ofs, targpos, false, self.realowner, ANTILAG_LATENCY(self.realowner));
 
                // draw lightning beams for debugging
                //te_lightning2(world, targpos, self.realowner.origin + self.realowner.view_ofs + v_forward * 5 - v_up * 5);
index f9d690ad2069fb969b41565dcf0eccf0ee3a0847..74a8cf7f96126135f1ec45074a86d9d0036e3201 100644 (file)
@@ -476,9 +476,9 @@ void tracebox_antilag_force_wz (entity source, vector v1, vector mi, vector ma,
 
        // do the trace
        if(wz)
-               WarpZone_TraceBox (v1, mi, ma, v2, nomonst, world);
+               WarpZone_TraceBox (v1, mi, ma, v2, nomonst, forent);
        else
-               tracebox (v1, mi, ma, v2, nomonst, world);
+               tracebox (v1, mi, ma, v2, nomonst, forent);
 
        // restore players to current positions
        if (lag)
index 388c5480e251a1e1762386e2c3f7ca37ac4973f3..163b291de20432ab0d032cd84cfabbfdb9dea6e4 100644 (file)
@@ -704,7 +704,7 @@ void toss_nade(entity e, vector _velocity, float _time)
        _nade.flags = FL_PROJECTILE;
        _nade.projectiledeathtype = DEATH_NADE;
        _nade.toss_time = time;
-       _nade.solid = SOLID_CORPSE; //((_nade.nade_type == NADE_TYPE_TRANSLOCATE) ? SOLID_CORPSE : SOLID_BBOX);
+       //_nade.solid = SOLID_TRIGGER; //((_nade.nade_type == NADE_TYPE_TRANSLOCATE) ? SOLID_CORPSE : SOLID_BBOX);
 
        if(_nade.nade_type == NADE_TYPE_TRANSLOCATE || _nade.nade_type == NADE_TYPE_SPAWN)
                _nade.dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_PLAYERCLIP | DPCONTENTS_BOTCLIP;