mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-17 19:23:51 +02:00
TypeInfoGen will now autobind doom scripts.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user