mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 09:11:48 +00:00
Try to add cvars for old camera
This commit is contained in:
parent
33725a58b4
commit
3dff612f3c
3 changed files with 9 additions and 2 deletions
|
@ -880,6 +880,8 @@ void D_RegisterClientCommands(void)
|
|||
// CV_RegisterVar(&cv_grid);
|
||||
// CV_RegisterVar(&cv_snapto);
|
||||
|
||||
CV_RegisterVar(&cv_freedemocamera);
|
||||
|
||||
// add cheat commands
|
||||
COM_AddCommand("noclip", Command_CheatNoClip_f);
|
||||
COM_AddCommand("god", Command_CheatGod_f);
|
||||
|
|
|
@ -39,6 +39,7 @@ tic_t leveltime;
|
|||
|
||||
// The entries will behave like both the head and tail of the lists.
|
||||
thinker_t thlist[NUM_THINKERLISTS];
|
||||
consvar_t cv_freedemocamera = {"freedemocamera", "Off", CV_SAVE, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
|
||||
|
||||
void Command_Numthinkers_f(void)
|
||||
{
|
||||
|
@ -646,9 +647,12 @@ void P_Ticker(boolean run)
|
|||
{
|
||||
player_t* p = &players[consoleplayer];
|
||||
G_ReadDemoTiccmd(&p->cmd, 0);
|
||||
if (!cv_freedemocamera.value)
|
||||
{
|
||||
P_ForceLocalAngle(p, p->cmd.angleturn << 16);
|
||||
localaiming = p->aiming;
|
||||
}
|
||||
}
|
||||
|
||||
ps_lua_mobjhooks = 0;
|
||||
ps_checkposition_calls = 0;
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#endif
|
||||
|
||||
extern tic_t leveltime;
|
||||
extern consvar_t cv_freedemocamera;
|
||||
|
||||
// Called by G_Ticker. Carries out all thinking of enemies and players.
|
||||
void Command_Numthinkers_f(void);
|
||||
|
|
Loading…
Reference in a new issue