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
+46 -2
View File
@@ -248,6 +248,8 @@ public:
bool GetMasterPosition( idVec3 &masterOrigin, idMat3 &masterAxis ) const;
void GetWorldVelocities( idVec3 &linearVelocity, idVec3 &angularVelocity ) const;
virtual void CallNativeEvent(idStr& name) {};
// physics
// set a new physics object to be used by this entity
void SetPhysics( idPhysics *phys );
@@ -351,6 +353,48 @@ public:
void ServerSendEvent( int eventId, const idBitMsg *msg, bool saveEvent, int excludeClient ) const;
void ClientSendEvent( int eventId, const idBitMsg *msg ) const;
int GetIntKey(const char* key)
{
int value;
spawnArgs.GetInt(key, "0", value);
return value;
}
float GetFloatKey(const char* key)
{
float value;
spawnArgs.GetFloat(key, "0", value);
return value;
}
const char* GetKey(const char* key)
{
const char* value;
spawnArgs.GetString(key, "", &value);
return value;
}
float idEntity::GetFloat(const char* key)
{
return spawnArgs.GetFloat(key, "0");
}
int idEntity::GetInt(const char* key)
{
return spawnArgs.GetInt(key, "0");
}
bool idEntity::GetBool(const char* key)
{
return spawnArgs.GetBool(key, "0");
}
idVec3 idEntity::GetOrigin(void)
{
return GetLocalCoordinates(GetPhysics()->GetOrigin());
}
protected:
renderEntity_t renderEntity; // used to present a model to the renderer
int modelDefHandle; // handle to static renderer model
@@ -390,7 +434,7 @@ private:
void QuitTeam( void ); // leave the current team
void UpdatePVSAreas( void );
public:
// events
void Event_GetName( void );
void Event_SetName( const char *name );
@@ -511,7 +555,7 @@ protected:
idAnimator animator;
damageEffect_t * damageEffects;
private:
public:
void Event_GetJointHandle( const char *jointname );
void Event_ClearAllJoints( void );
void Event_ClearJoint( jointHandle_t jointnum );