raze/source/core/cheathandler.h
Christoph Oelckers 3e5e956b72 - run most cheats through the network.
The remaining excpetions are the "give" CCMD and any level change action.
Unfortunately the implementation of most cheats is not multiplayer safe so right now it'd only be useful for demo recording (assuming that worked to begin with... ;))
2020-09-03 01:32:51 +02:00

21 lines
429 B
C

#pragma once
struct cheatseq_t
{
const char *Sequence;
const char* ccmd;
bool (*Handler)(cheatseq_t *);
uint8_t DontCheck;
uint8_t Param;
// This is working data for processing the cheat
uint8_t CurrentArg;
uint8_t Args[6];
const char *Pos;
};
struct event_t;
bool Cheat_Responder(event_t* ev);
void SetCheats(cheatseq_t *cht, int count);
void PlaybackCheat(const char* p);
bool SendGenericCheat(cheatseq_t* cheat);