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
+27 -24
View File
@@ -816,8 +816,11 @@ void idAnim::CallFrameCommands( idEntity *ent, int from, int to ) const {
target = gameLocal.FindEntity( command.string->c_str() );
if ( target ) {
const idEventDef *activateEvent = target->FindEventDef( "activate", "e" );
target->Signal( SIG_TRIGGER );
target->ProcessEvent( &EV_Activate, ent );
if ( activateEvent ) {
target->ProcessEvent( activateEvent, ent );
}
target->TriggerGuis();
} else {
gameLocal.Warning( "Framecommand 'trigger' on entity '%s', anim '%s', frame %d: Could not find entity '%s'",
@@ -826,95 +829,95 @@ void idAnim::CallFrameCommands( idEntity *ent, int from, int to ) const {
break;
}
case FC_TRIGGER_SMOKE_PARTICLE: {
ent->ProcessEvent( &AI_TriggerParticles, command.string->c_str() );
ent->ProcessEvent( &EV_idAI_TriggerParticles, command.string->c_str() );
break;
}
case FC_MELEE: {
ent->ProcessEvent( &AI_AttackMelee, command.string->c_str() );
ent->ProcessEvent( &EV_idAI_AttackMelee, command.string->c_str() );
break;
}
case FC_DIRECTDAMAGE: {
ent->ProcessEvent( &AI_DirectDamage, command.string->c_str() );
ent->ProcessEvent( &EV_idAI_DirectDamage, command.string->c_str() );
break;
}
case FC_BEGINATTACK: {
ent->ProcessEvent( &AI_BeginAttack, command.string->c_str() );
ent->ProcessEvent( &EV_idAI_AttackBegin, command.string->c_str() );
break;
}
case FC_ENDATTACK: {
ent->ProcessEvent( &AI_EndAttack );
ent->ProcessEvent( &EV_idAI_AttackEnd );
break;
}
case FC_MUZZLEFLASH: {
ent->ProcessEvent( &AI_MuzzleFlash, command.string->c_str() );
ent->ProcessEvent( &EV_idAI_MuzzleFlash, command.string->c_str() );
break;
}
case FC_CREATEMISSILE: {
ent->ProcessEvent( &AI_CreateMissile, command.string->c_str() );
ent->ProcessEvent( &EV_idAI_CreateMissile, command.string->c_str() );
break;
}
case FC_LAUNCHMISSILE: {
ent->ProcessEvent( &AI_AttackMissile, command.string->c_str() );
ent->ProcessEvent( &EV_idAI_AttackMissile, command.string->c_str() );
break;
}
case FC_FIREMISSILEATTARGET: {
ent->ProcessEvent( &AI_FireMissileAtTarget, modelDef->GetJointName( command.index ), command.string->c_str() );
ent->ProcessEvent( &EV_idAI_FireMissileAtTarget, modelDef->GetJointName( command.index ), command.string->c_str() );
break;
}
case FC_FOOTSTEP : {
ent->ProcessEvent( &EV_Footstep );
ent->ProcessEvent( &EV_idActor_RightFoot );
break;
}
case FC_LEFTFOOT: {
ent->ProcessEvent( &EV_FootstepLeft );
ent->ProcessEvent( &EV_idActor_RightFoot );
break;
}
case FC_RIGHTFOOT: {
ent->ProcessEvent( &EV_FootstepRight );
ent->ProcessEvent( &EV_idActor_RightFoot );
break;
}
case FC_ENABLE_EYE_FOCUS: {
ent->ProcessEvent( &AI_EnableEyeFocus );
ent->ProcessEvent( &EV_idActor_EnableEyeFocus );
break;
}
case FC_DISABLE_EYE_FOCUS: {
ent->ProcessEvent( &AI_DisableEyeFocus );
ent->ProcessEvent( &EV_idActor_DisableEyeFocus );
break;
}
case FC_DISABLE_GRAVITY: {
ent->ProcessEvent( &AI_DisableGravity );
ent->ProcessEvent( &EV_idAI_DisableGravity );
break;
}
case FC_ENABLE_GRAVITY: {
ent->ProcessEvent( &AI_EnableGravity );
ent->ProcessEvent( &EV_idAI_EnableGravity );
break;
}
case FC_JUMP: {
ent->ProcessEvent( &AI_JumpFrame );
ent->ProcessEvent( &EV_idAI_Jumpframe );
break;
}
case FC_ENABLE_CLIP: {
ent->ProcessEvent( &AI_EnableClip );
ent->ProcessEvent( &EV_idAI_EnableClip );
break;
}
case FC_DISABLE_CLIP: {
ent->ProcessEvent( &AI_DisableClip );
ent->ProcessEvent( &EV_idAI_DisableClip );
break;
}
case FC_ENABLE_WALK_IK: {
ent->ProcessEvent( &EV_EnableWalkIK );
ent->ProcessEvent( &EV_idActor_EnableWalkIK );
break;
}
case FC_DISABLE_WALK_IK: {
ent->ProcessEvent( &EV_DisableWalkIK );
ent->ProcessEvent( &EV_idActor_DisableWalkIK );
break;
}
case FC_ENABLE_LEG_IK: {
ent->ProcessEvent( &EV_EnableLegIK, command.index );
ent->ProcessEvent( &EV_idActor_EnableLegIK, command.index );
break;
}
case FC_DISABLE_LEG_IK: {
ent->ProcessEvent( &EV_DisableLegIK, command.index );
ent->ProcessEvent( &EV_idActor_DisableLegIK, command.index );
break;
}
case FC_RECORDDEMO: {