mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-25 13:31:55 +00:00
Get floor height offset correct for each game
This commit is contained in:
parent
fa74cf0559
commit
16299b3f8a
3 changed files with 11 additions and 3 deletions
|
@ -51,6 +51,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#include "tilesetbuilder.h"
|
#include "tilesetbuilder.h"
|
||||||
#include "nnexts.h"
|
#include "nnexts.h"
|
||||||
|
|
||||||
|
extern int playerHeight; //Used to define player height for VR
|
||||||
|
|
||||||
BEGIN_BLD_NS
|
BEGIN_BLD_NS
|
||||||
|
|
||||||
|
|
||||||
|
@ -604,6 +606,8 @@ void GameInterface::app_init()
|
||||||
{
|
{
|
||||||
mirrortile = tileGetTextureID(504);
|
mirrortile = tileGetTextureID(504);
|
||||||
|
|
||||||
|
playerHeight = 60;
|
||||||
|
|
||||||
GC::AddMarkerFunc(markgcroots);
|
GC::AddMarkerFunc(markgcroots);
|
||||||
|
|
||||||
InitCheats();
|
InitCheats();
|
||||||
|
|
|
@ -52,6 +52,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
#include "tilesetbuilder.h"
|
#include "tilesetbuilder.h"
|
||||||
#include "psky.h"
|
#include "psky.h"
|
||||||
|
|
||||||
|
extern int playerHeight; //Used to define player height for VR
|
||||||
|
|
||||||
|
|
||||||
BEGIN_PS_NS
|
BEGIN_PS_NS
|
||||||
|
|
||||||
TObjPtr<DExhumedActor*> bestTarget;
|
TObjPtr<DExhumedActor*> bestTarget;
|
||||||
|
@ -568,12 +571,11 @@ void GameInterface::SetupSpecialTextures(TilesetBuildInfo& info)
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
void GameInterface::app_init()
|
void GameInterface::app_init()
|
||||||
{
|
{
|
||||||
GC::AddMarkerFunc(markgcroots);
|
GC::AddMarkerFunc(markgcroots);
|
||||||
|
|
||||||
|
playerHeight = 58;
|
||||||
#if 0
|
#if 0
|
||||||
help_disabled = true;
|
help_disabled = true;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -86,6 +86,7 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms
|
||||||
#include "interpolate.h"
|
#include "interpolate.h"
|
||||||
|
|
||||||
//#include "crc32.h"
|
//#include "crc32.h"
|
||||||
|
extern int playerHeight; //Used to define player height for VR
|
||||||
|
|
||||||
CVAR(Bool, sw_ninjahack, false, CVAR_ARCHIVE /*| CVAR_SERVERINFO*/);
|
CVAR(Bool, sw_ninjahack, false, CVAR_ARCHIVE /*| CVAR_SERVERINFO*/);
|
||||||
CVAR(Bool, sw_darts, false, CVAR_ARCHIVE);
|
CVAR(Bool, sw_darts, false, CVAR_ARCHIVE);
|
||||||
|
@ -249,7 +250,6 @@ void GameInterface::SetupSpecialTextures(TilesetBuildInfo& info)
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
void GameInterface::app_init()
|
void GameInterface::app_init()
|
||||||
{
|
{
|
||||||
// these are frequently checked markers.
|
// these are frequently checked markers.
|
||||||
|
@ -306,6 +306,8 @@ void GameInterface::app_init()
|
||||||
|
|
||||||
userConfig.AddDefs.reset();
|
userConfig.AddDefs.reset();
|
||||||
InitFX();
|
InitFX();
|
||||||
|
|
||||||
|
playerHeight = 58;
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue