TypeInfoGen will now autobind doom scripts.

This commit is contained in:
Justin Marshall
2026-05-23 20:50:12 -07:00
parent df82170a67
commit 293942d07c
132 changed files with 7321 additions and 3762 deletions
+37
View File
@@ -84,7 +84,9 @@ public:
private:
int teleportStage;
ID_SCRIPT_EVENT( "activate", 0 )
void Event_TeleportPlayer( idEntity *activator );
ID_SCRIPT_EVENT( "<TeleportStage>", 0 )
void Event_TeleportStage( idEntity *player );
void TeleportPlayer( idPlayer *player );
};
@@ -115,6 +117,7 @@ public:
private:
bool stay_on;
ID_SCRIPT_EVENT( "activate", 0 )
void Event_Activate( idEntity *activator );
};
@@ -137,6 +140,7 @@ public:
static idPathCorner *RandomPath( const idEntity *source, const idEntity *ignore );
private:
ID_SCRIPT_EVENT( "randomPath", 'e' )
void Event_RandomPath( void );
};
@@ -166,7 +170,9 @@ private:
int nextTriggerTime;
void BecomeBroken( idEntity *activator );
ID_SCRIPT_EVENT( "activate", 0 )
void Event_BecomeBroken( idEntity *activator );
ID_SCRIPT_EVENT( "<RestoreDamagable>", 0 )
void Event_RestoreDamagable( void );
};
@@ -186,6 +192,7 @@ public:
void Spawn( void );
private:
ID_SCRIPT_EVENT( "activate", 0 )
void Event_Explode( idEntity *activator );
};
@@ -215,6 +222,7 @@ private:
idVec3 p2;
idForce_Spring spring;
ID_SCRIPT_EVENT( "<postspawn>", 0 )
void Event_LinkSpring( void );
};
@@ -243,8 +251,11 @@ private:
void Toggle( void );
ID_SCRIPT_EVENT( "activate", 0 )
void Event_Activate( idEntity *activator );
ID_SCRIPT_EVENT( "Toggle", 0 )
void Event_Toggle( void );
ID_SCRIPT_EVENT( "<findTargets>", 0 )
void Event_FindTargets( void );
};
@@ -283,12 +294,21 @@ private:
void PlayNextAnim( void );
ID_SCRIPT_EVENT( "activate", 0 )
void Event_Activate( idEntity *activator );
ID_SCRIPT_EVENT( "<start>", 0 )
void Event_Start( void );
ID_SCRIPT_EVENT( "startRagdoll", 0 )
void Event_StartRagdoll( void );
ID_SCRIPT_EVENT( "<AnimDone>", 0 )
void Event_AnimDone( int animIndex );
ID_SCRIPT_EVENT( "footstep", 0 )
ID_SCRIPT_EVENT( "leftFoot", 0 )
ID_SCRIPT_EVENT( "rightFoot", 0 )
void Event_Footstep( void );
ID_SCRIPT_EVENT( "launchMissiles", 0 )
void Event_LaunchMissiles( const char *projectilename, const char *sound, const char *launchjoint, const char *targetjoint, int numshots, int framedelay );
ID_SCRIPT_EVENT( "<launchMissiles>", 0 )
void Event_LaunchMissilesUpdate( int launchjoint, int targetjoint, int numshots, int framedelay );
};
@@ -321,6 +341,7 @@ public:
virtual void ReadFromSnapshot( const idBitMsgDelta &msg );
private:
ID_SCRIPT_EVENT( "activate", 0 )
void Event_Activate( idEntity *activator );
int spawnTime;
@@ -351,6 +372,7 @@ public:
void Restore( idRestoreGame *savefile );
void Spawn( void );
ID_SCRIPT_EVENT( "activate", 0 )
void Event_Activate( idEntity *activator );
virtual void WriteToSnapshot( idBitMsgDelta &msg ) const;
@@ -382,6 +404,7 @@ public:
void Restore( idRestoreGame *savefile );
virtual void Think( void );
ID_SCRIPT_EVENT( "activate", 0 )
void Event_Activate( idEntity *activator );
private:
@@ -408,7 +431,9 @@ public:
void Spawn( void );
private:
ID_SCRIPT_EVENT( "activate", 0 )
void Event_Activate( idEntity *activator );
ID_SCRIPT_EVENT( "<Splat>", 0 )
void Event_Splat();
};
@@ -477,6 +502,7 @@ public:
void Save( idSaveGame *savefile ) const;
void Restore( idRestoreGame *savefile );
ID_SCRIPT_EVENT( "activate", 0 )
void Event_Activate( idEntity *activator );
private:
@@ -523,7 +549,9 @@ public:
virtual void ReadFromSnapshot( const idBitMsgDelta &msg );
private:
ID_SCRIPT_EVENT( "<postspawn>", 0 )
void Event_MatchTarget( void );
ID_SCRIPT_EVENT( "activate", 0 )
void Event_Activate( idEntity *activator );
idEntityPtr<idBeam> target;
@@ -551,6 +579,7 @@ public:
void Restore( idRestoreGame *savefile );
private:
ID_SCRIPT_EVENT( "<touch>", 0 )
void Event_Touch( idEntity *other, trace_t *trace );
@@ -582,6 +611,7 @@ private:
bool active;
void BeginShaking( void );
ID_SCRIPT_EVENT( "activate", 0 )
void Event_Activate( idEntity *activator );
};
@@ -617,6 +647,7 @@ private:
bool disabled;
float shakeTime;
ID_SCRIPT_EVENT( "activate", 0 )
void Event_Activate( idEntity *activator );
};
@@ -644,6 +675,7 @@ private:
qhandle_t portal;
bool state;
ID_SCRIPT_EVENT( "activate", 0 )
void Event_Activate( idEntity *activator );
};
@@ -669,6 +701,7 @@ public:
private:
bool state;
ID_SCRIPT_EVENT( "activate", 0 )
void Event_Activate( idEntity *activator );
};
@@ -694,6 +727,7 @@ public:
private:
bool state;
ID_SCRIPT_EVENT( "activate", 0 )
void Event_Activate( idEntity *activator );
};
@@ -719,7 +753,9 @@ public:
private:
float time;
ID_SCRIPT_EVENT( "activate", 0 )
void Event_Activate( idEntity *activator );
ID_SCRIPT_EVENT( "<resetradiohud>", 0 )
void Event_ResetRadioHud( idEntity *activator );
};
@@ -746,6 +782,7 @@ public:
virtual void Think( void );
private:
ID_SCRIPT_EVENT( "activate", 0 )
void Event_Activate( idEntity *activator );
int end_time;