const float PLAYERDEMO_MODE_OFF = 0;
const float PLAYERDEMO_MODE_READING = 1;
const float PLAYERDEMO_MODE_WRITING = 2;
-void playerdemo_init()
-{SELFPARAM();
- self.playerdemo_mode = PLAYERDEMO_MODE_OFF;
+void playerdemo_init(entity this)
+{
+ this.playerdemo_mode = PLAYERDEMO_MODE_OFF;
}
void playerdemo_shutdown()
{SELFPARAM();
PLAYERDEMO_FIELD(func,string,playerskin) \
PLAYERDEMO_FIELD(func,float,frame) \
PLAYERDEMO_FIELD(func,float,effects) \
- PLAYERDEMO_FIELD(func,float,switchweapon) \
+ /* PLAYERDEMO_FIELD(func,float,switchweapon) */ \
PLAYERDEMO_FIELD(func,float,BUTTON_ATCK) \
PLAYERDEMO_FIELD(func,float,BUTTON_ATCK2) \
PLAYERDEMO_FIELD(func,float,BUTTON_CROUCH) \