mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-19 12:14:35 +02:00
Switched Doom 3 weapons to native.
This commit is contained in:
+46
-2
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user