Make visible_mode global
This commit is contained in:
parent
6e39b49c4b
commit
889d9481aa
|
@ -6,14 +6,7 @@
|
||||||
|
|
||||||
#include <GL/gl.h>
|
#include <GL/gl.h>
|
||||||
|
|
||||||
enum visible_flags {
|
visible_flags visible_mode;
|
||||||
NONE = 0,
|
|
||||||
VISIBLE = 1,
|
|
||||||
NOT_VISIBLE = 2,
|
|
||||||
/* TODO: HANDS */
|
|
||||||
};
|
|
||||||
|
|
||||||
static visible_flags visible_mode;
|
|
||||||
|
|
||||||
bool chams(void* this_ptr) {
|
bool chams(void* this_ptr) {
|
||||||
if (!CVAR_ON(chams))
|
if (!CVAR_ON(chams))
|
||||||
|
|
|
@ -4,6 +4,15 @@
|
||||||
|
|
||||||
#include "../include/sdk.h"
|
#include "../include/sdk.h"
|
||||||
|
|
||||||
|
enum visible_flags {
|
||||||
|
NONE = 0,
|
||||||
|
VISIBLE = 1,
|
||||||
|
NOT_VISIBLE = 2,
|
||||||
|
/* TODO: HANDS */
|
||||||
|
};
|
||||||
|
|
||||||
|
/*----------------------------------------------------------------------------*/
|
||||||
|
|
||||||
/* src/features/movement.c */
|
/* src/features/movement.c */
|
||||||
void bhop(usercmd_t* cmd);
|
void bhop(usercmd_t* cmd);
|
||||||
|
|
||||||
|
@ -12,6 +21,7 @@ void esp(void);
|
||||||
void correct_movement(usercmd_t* cmd, vec3_t old_angles);
|
void correct_movement(usercmd_t* cmd, vec3_t old_angles);
|
||||||
|
|
||||||
/* src/features/chams.c */
|
/* src/features/chams.c */
|
||||||
|
extern visible_flags visible_mode;
|
||||||
bool chams(void* this_ptr);
|
bool chams(void* this_ptr);
|
||||||
|
|
||||||
#endif /* FEATURES_H_ */
|
#endif /* FEATURES_H_ */
|
||||||
|
|
Loading…
Reference in New Issue