120 |
|
float DesiredFacing; |
121 |
|
uint32_t Health; |
122 |
|
uint32_t MaxHealth; |
123 |
< |
input_struct Inputs; |
123 |
> |
//input_struct Inputs; |
124 |
|
int rare_sync_index; |
125 |
|
char Animation[32]; |
126 |
|
uint16_t Frame; |
144 |
|
int intArray[]; |
145 |
|
} flatline_event; |
146 |
|
|
147 |
+ |
typedef struct { |
148 |
+ |
float MouseDeltaX; |
149 |
+ |
float MouseDeltaY; |
150 |
+ |
uint32_t Actions1; |
151 |
+ |
uint32_t Actions2; |
152 |
+ |
} player_input; |
153 |
+ |
|
154 |
|
//used for storing data about each player |
155 |
|
typedef struct { |
156 |
|
int FLATLINE; |
169 |
|
uint16_t sync_request; |
170 |
|
flatline_event flatline_event; |
171 |
|
uint32_t ping; |
172 |
+ |
player_input all_input[32]; |
173 |
|
}; |
174 |
|
} flatline_packet; |
175 |
|
#define FLATLINE_HEADER (sizeof(flatline_packet)-sizeof(char)*1080) |
197 |
|
FLATLINE_EVENT, |
198 |
|
PK_PING, |
199 |
|
PK_PONG, |
200 |
+ |
PK_ALL_INPUT, |
201 |
|
}; |
202 |
|
|
203 |
|
enum FlatlineEvent { |