mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-19 12:14:35 +02:00
TypeInfoGen will now autobind doom scripts.
This commit is contained in:
@@ -6,8 +6,6 @@
|
||||
#include "../Game_local.h"
|
||||
|
||||
|
||||
CLASS_DECLARATION( rvmAIObject, rvmMonsterBase )
|
||||
END_CLASS
|
||||
|
||||
rvmMonsterBase::rvmMonsterBase() {
|
||||
run_distance = 0.0f;
|
||||
@@ -1078,7 +1076,10 @@ void rvmMonsterBase::trigger_wakeup_targets() {
|
||||
while ( kv ) {
|
||||
idEntity* ent = gameLocal.FindEntity( kv->GetValue() );
|
||||
if ( ent ) {
|
||||
ent->ProcessEvent( &EV_Activate, owner );
|
||||
const idEventDef* activateEvent = ent->FindEventDef( "activate", "e" );
|
||||
if ( activateEvent ) {
|
||||
ent->ProcessEvent( activateEvent, owner );
|
||||
}
|
||||
} else {
|
||||
gameLocal.Warning( "Unknown wakeup_target '%s' on entity '%s'", kv->GetValue().c_str(), owner->GetName() );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user