X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fphysics%2Fplayer.qh;h=9f540148deb9b8c08908376e644c4c5e93a862a0;hb=7a83212927a9bcfc8738eadba9e332f5ecede45e;hp=9e7b799d027257e72d1201f6f013fcbffe57eb99;hpb=a8e9c14803c6ee158f8183701f8e9c8601da9983;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/physics/player.qh b/qcsrc/common/physics/player.qh index 9e7b799d0..9f540148d 100644 --- a/qcsrc/common/physics/player.qh +++ b/qcsrc/common/physics/player.qh @@ -46,6 +46,7 @@ bool IsFlying(entity a); #define PHYS_AIRCONTROL(s) STAT(MOVEVARS_AIRCONTROL, s) #define PHYS_AIRCONTROL_PENALTY(s) STAT(MOVEVARS_AIRCONTROL_PENALTY, s) #define PHYS_AIRCONTROL_POWER(s) STAT(MOVEVARS_AIRCONTROL_POWER, s) +#define PHYS_AIRCONTROL_BACKWARDS(s) STAT(MOVEVARS_AIRCONTROL_BACKWARDS, s) #define PHYS_AIRSPEEDLIMIT_NONQW(s) STAT(MOVEVARS_AIRSPEEDLIMIT_NONQW, s) #define PHYS_AIRSTOPACCELERATE(s) STAT(MOVEVARS_AIRSTOPACCELERATE, s) #define PHYS_AIRSTRAFEACCELERATE(s) STAT(MOVEVARS_AIRSTRAFEACCELERATE, s) @@ -184,9 +185,9 @@ STATIC_INIT(PHYS_INPUT_BUTTON_JETPACK) .entity hook; // TODO - #define IS_CLIENT(s) ((s).isplayermodel) + #define IS_CLIENT(s) ((s).isplayermodel || (s) == csqcplayer) #define IS_PLAYER(s) ((s).isplayermodel) - #define IS_NOT_A_CLIENT(s) (!(s).isplayermodel) + #define IS_NOT_A_CLIENT(s) (!(s).isplayermodel && (s) != csqcplayer) #define isPushable(s) ((s).isplayermodel || (s).pushable || ((s).flags & FL_PROJECTILE)) //float player_multijump;