Added typeinfogen with state system

This commit is contained in:
Justin Marshall
2026-05-18 21:35:07 -07:00
parent 4686349b62
commit b841fcb33b
27 changed files with 21899 additions and 194 deletions
+10 -2
View File
@@ -422,7 +422,6 @@ protected:
void Think(void);
void Activate(idEntity* activator);
int ReactionTo(const idEntity* ent);
bool CheckForEnemy(void);
void EnemyDead(void);
virtual bool CanPlayChatterSounds(void) const;
void SetChatSound(void);
@@ -485,7 +484,6 @@ protected:
// effects
const idDeclParticle* SpawnParticlesOnJoint(particleEmitter_t& pe, const char* particleName, const char* jointName);
void SpawnParticles(const char* keyName);
bool ParticlesActive(void);
// turning
bool FacingIdeal(void);
@@ -801,4 +799,14 @@ private:
void Event_MarkUsed(void);
};
class idAI_Vagary : public idAI {
public:
CLASS_PROTOTYPE(idAI_Vagary);
private:
void Event_ChooseObjectToThrow(const idVec3& mins, const idVec3& maxs, float speed, float minDist, float offset);
void Event_ThrowObjectAtEnemy(idEntity* ent, float speed);
};
#endif /* !__AI_H__ */
-9
View File
@@ -38,15 +38,6 @@ Vagary specific AI code
#include "../Game_local.h"
class idAI_Vagary : public idAI {
public:
CLASS_PROTOTYPE( idAI_Vagary );
private:
void Event_ChooseObjectToThrow( const idVec3 &mins, const idVec3 &maxs, float speed, float minDist, float offset );
void Event_ThrowObjectAtEnemy( idEntity *ent, float speed );
};
const idEventDef AI_Vagary_ChooseObjectToThrow( "vagary_ChooseObjectToThrow", "vvfff", 'e' );
const idEventDef AI_Vagary_ThrowObjectAtEnemy( "vagary_ThrowObjectAtEnemy", "ef" );