Switched Doom 3 weapons to native.

This commit is contained in:
Justin Marshall
2026-05-19 08:28:43 -07:00
parent b841fcb33b
commit b97127f038
82 changed files with 20023 additions and 1371 deletions
+36
View File
@@ -60,6 +60,7 @@ extern idSoundWorld * gameSoundWorld;
// the "gameversion" client command will print this plus compile date
#define GAME_VERSION "baseDOOM-1"
#define GAME_FRAMETIME 0.016 // 16 milliseconds
// classes used by idGameLocal
class idEntity;
@@ -238,6 +239,12 @@ private:
int spawnId;
};
struct rvmGameDelayRemoveEntry_t
{
int32_t removeTime;
idEntity* entity;
};
//============================================================================
class idGameLocal : public idGame {
@@ -369,15 +376,27 @@ public:
// Initializes all map variables common to both save games and spawned games
void LoadMap( const char *mapName, int randseed );
void DelayRemoveEntity(idEntity* entity, int delay);
void LocalMapRestart( void );
void MapRestart( void );
static void MapRestart_f( const idCmdArgs &args );
float SysScriptTime(void) const
{
return MS2SEC(realClientTime);
}
float SysScriptFrameTime(void) const
{
return MS2SEC(time - previousTime);
}
bool NextMap( void ); // returns wether serverinfo settings have been modified
static void NextMap_f( const idCmdArgs &args );
idMapFile * GetLevelMap( void );
const char * GetMapName( void ) const;
idEntity* Spawn(const char* classname);
int NumAAS( void ) const;
idAAS * GetAAS( int num ) const;
idAAS * GetAAS( const char *name ) const;
@@ -572,6 +591,8 @@ private:
void UpdateLagometer( int aheadOfServer, int dupeUsercmds );
void GetMapLoadingGUI( char gui[ MAX_STRING_CHARS ] );
idList<rvmGameDelayRemoveEntry_t> delayRemoveEntities;
};
//============================================================================
@@ -741,4 +762,19 @@ const int CINEMATIC_SKIP_DELAY = SEC2MS( 2.0f );
#include "script/Script_Interpreter.h"
#include "script/Script_Thread.h"
#include "weapons/Weapon_fist.h"
#include "weapons/Weapon_pistol.h"
#include "weapons/Weapon_flashlight.h"
#include "weapons/Weapon_pda.h"
#include "weapons/Weapon_shotgun.h"
#include "weapons/Weapon_double_shotgun.h"
#include "weapons/Weapon_machinegun.h"
#include "weapons/Weapon_plasmagun.h"
#include "weapons/Weapon_chaingun.h"
#include "weapons/Weapon_rocketlauncher.h"
#include "weapons/Weapon_bfg.h"
#include "weapons/Weapon_handgrenade.h"
#include "weapons/Weapon_chainsaw.h"
#include "weapons/Weapon_grabber.h"
#endif /* !__GAME_LOCAL_H__ */