View Single Post
Author Message
bigbalaboom
Junior Member
Join Date: Aug 2013
Old 09-06-2013 , 11:34   How is the value of m_fFlags calculated?
Reply With Quote #1

I'v been searching this for hours but there are only some references.

PHP Code:
#define IN_ATTACK     (1 << 0)
#define IN_JUMP       (1 << 1)
#define IN_DUCK       (1 << 2)
#define IN_FORWARD    (1 << 3)
#define IN_BACK       (1 << 4)
#define IN_USE        (1 << 5)
#define IN_CANCEL     (1 << 6)
...
#define FL_ONGROUND   (1 << 0) on the ground
#define FL_DUCKING    (1 << 1) fully crouched
#define FL_WATERJUMP  (1 << 2) jumping out of water
#define FL_ONTRAIN    (1 << 3) _controlling_ a train
#define FL_INRAIN     (1 << 4) standing in rain
#define FL_FROZEN     (1 << 5) frozen
#define FL_ATCONTROLS (1 << 6) can't move
#define FL_CLIENT     (1 << 7) player
#define FL_FAKECLIENT (1 << 8) fake client
... 
PHP Code:
SetEntProp(clientProp_Send"m_fFlags"8); 
How is the 8 calculated according to the flags table? Can I directly use FL_*** instead of a calculated number?

Could someone please give me some examples on how to set/remove certain flags? Thanks!
bigbalaboom is offline