-#define PLAYERDEMO_FIELD(func,t,f) func##t(f,#f);
-#define PLAYERDEMO_FIELDS(func) \
- PLAYERDEMO_FIELD(func,originvector,origin) \
- PLAYERDEMO_FIELD(func,vector,angles) \
- PLAYERDEMO_FIELD(func,sizevector,mins) \
- PLAYERDEMO_FIELD(func,sizevector,maxs) \
- PLAYERDEMO_FIELD(func,vector,v_angle) \
- PLAYERDEMO_FIELD(func,modelstring,model) \
- PLAYERDEMO_FIELD(func,string,playermodel) \
- PLAYERDEMO_FIELD(func,float,skin) \
- PLAYERDEMO_FIELD(func,string,playerskin) \
- PLAYERDEMO_FIELD(func,float,frame) \
- PLAYERDEMO_FIELD(func,float,effects) \
- /* PLAYERDEMO_FIELD(func,float,switchweapon) */ \
- PLAYERDEMO_FIELD(func,float,button0) /* TODO: PHYS_INPUT_BUTTON_ATCK */ \
- PLAYERDEMO_FIELD(func,float,button3) /* TODO: PHYS_INPUT_BUTTON_ATCK2 */ \
- PLAYERDEMO_FIELD(func,float,button5) /* TODO: PHYS_INPUT_BUTTON_CROUCH */ \
- PLAYERDEMO_FIELD(func,float,button6) /* TODO: PHYS_INPUT_BUTTON_HOOK */ \
- PLAYERDEMO_FIELD(func,float,buttonuse) /* TODO: PHYS_INPUT_BUTTON_USE */ \
- PLAYERDEMO_FIELD(func,float,flags) \
+#define PLAYERDEMO_FIELD(ent,func,t,f) func##t(ent,f,#f);
+#define PLAYERDEMO_FIELDS(ent,func) \
+ PLAYERDEMO_FIELD(ent,func,originvector,origin) \
+ PLAYERDEMO_FIELD(ent,func,vector,angles) \
+ PLAYERDEMO_FIELD(ent,func,sizevector,mins) \
+ PLAYERDEMO_FIELD(ent,func,sizevector,maxs) \
+ PLAYERDEMO_FIELD(ent,func,vector,v_angle) \
+ PLAYERDEMO_FIELD(ent,func,modelstring,model) \
+ PLAYERDEMO_FIELD(ent,func,string,playermodel) \
+ PLAYERDEMO_FIELD(ent,func,float,skin) \
+ PLAYERDEMO_FIELD(ent,func,string,playerskin) \
+ PLAYERDEMO_FIELD(ent,func,float,frame) \
+ PLAYERDEMO_FIELD(ent,func,float,effects) \
+ /* PLAYERDEMO_FIELD(ent,func,float,switchweapon) */ \
+ PLAYERDEMO_FIELD(ent,func,float,button0) /* TODO: PHYS_INPUT_BUTTON_ATCK */ \
+ PLAYERDEMO_FIELD(ent,func,float,button3) /* TODO: PHYS_INPUT_BUTTON_ATCK2 */ \
+ PLAYERDEMO_FIELD(ent,func,float,button5) /* TODO: PHYS_INPUT_BUTTON_CROUCH */ \
+ PLAYERDEMO_FIELD(ent,func,float,button6) /* TODO: PHYS_INPUT_BUTTON_HOOK */ \
+ PLAYERDEMO_FIELD(ent,func,float,buttonuse) /* TODO: PHYS_INPUT_BUTTON_USE */ \
+ PLAYERDEMO_FIELD(ent,func,float,flags) \