setsize(self, spectatee.mins, spectatee.maxs);\r
SetZoomState(spectatee.zoomstate);\r
\r
+ // copy necessary flags\r
+ if(spectatee.flags & FL_ONGROUND) self.flags |= FL_ONGROUND; else self.flags &~= FL_ONGROUND;\r
+\r
anticheat_spectatecopy(spectatee);\r
}\r
\r
entity head;\r
for(head = findradius(self.origin, cvar("g_healthsize_quake_step_radius")); head; head = head.chain)\r
{\r
- if not(head.classname == "player")\r
+ if not(head.classname == "player" || head.classname == "spectator")\r
continue;\r
- if(head == self)\r
+ if(head == self || head.spectatee_status == num_for_edict(self))\r
continue; // not for self\r
if not(head.flags & FL_ONGROUND)\r
continue; // we only feel the ground shaking if we are sitting on it\r
\r
- 0.7 BUG: Disabling g_healthsize gives a different field of view, even at 100 heatlh\r
\r
-- 0.7 | 0.8: The macro earthquake effect does not work for spectators who are spectating a player, because fl_onground needs to be bhack for the spectated player, not the spectator
\ No newline at end of file
+- 0.7: Make sure all effects work for spectators too (such as the macro earthquake effect)
\ No newline at end of file