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
+5 -2
View File
@@ -310,7 +310,7 @@ void Cmd_Give_f( const idCmdArgs &args ) {
gameLocal.world->spawnArgs.SetBool( "no_Weapons", false );
for( i = 0; i < gameLocal.numClients; i++ ) {
if ( gameLocal.entities[ i ] ) {
gameLocal.entities[ i ]->PostEventSec( &EV_Player_SelectWeapon, 0.5f, gameLocal.entities[ i ]->spawnArgs.GetString( "def_weapon1" ) );
gameLocal.entities[ i ]->PostEventSec( &EV_idPlayer_SelectWeapon, 0.5f, gameLocal.entities[ i ]->spawnArgs.GetString( "def_weapon1" ) );
}
}
}
@@ -774,8 +774,11 @@ void Cmd_Trigger_f( const idCmdArgs &args ) {
return;
}
const idEventDef *activateEvent = ent->FindEventDef( "activate", "e" );
ent->Signal( SIG_TRIGGER );
ent->ProcessEvent( &EV_Activate, player );
if ( activateEvent ) {
ent->ProcessEvent( activateEvent, player );
}
ent->TriggerGuis();
}