customdefs.qc (1002B)
1 //Various globals that are used in this FTEQW example are defined here, they are not used by the engine itself 2 3 //events from ssqc 4 #define EVENT_PLAYERDEATH 0 5 #define EVENT_WEAPONCHANGE 1 6 #define EVENT_PISTOLFIRE 2 7 #define EVENT_MGFIRE 3 8 #define EVENT_EMITPARTICLES 4 9 10 #pragma warning disable Q302 11 vector cursor_pos; /* Current mouse cursor position, updated in csqc_inputevent */ 12 float g_width, g_height; /* Globals for screen width and height */ 13 14 float walk; 15 16 //Menu stuff 17 float in_menu; //what menu are we in 18 float time_in_menu; 19 20 entity player; 21 entity vmodel; 22 entity mzlflash; 23 entity dummy; 24 25 float weapon; 26 27 float tracercounter; 28 .float rate; 29 .vector targetpos; 30 31 vector vmodel_targetpos; 32 vector vmodel_currentpos; 33 vector vmodel_velocity; 34 vector vmodel_avelocity; 35 vector vmodel_muzzleoffset; 36 37 const float MENU_NONE = 0; 38 const float MENU_MAIN = 1; 39 const float MENU_SINGLE = 2; 40 const float MENU_MULTI = 4; 41 const float MENU_SETTINGS = 8; 42 const float MENU_ABOUT = 16; 43 const float MENU_JOIN = 32;