Skip to content

Commit

Permalink
Restore cut conversation between Lebedev and Tong in the LaGuardia
Browse files Browse the repository at this point in the history
Helibase (#430)
  • Loading branch information
theastropath committed Sep 23, 2023
1 parent 4803c60 commit 3f38617
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions DXRMapFixups/DeusEx/Classes/DXRFixupM03.uc
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,41 @@ function PreFirstEntryMapFixes()

function AnyEntryMapFixes()
{
local #var(prefix)Phone phone;
local Conversation c;
local ConEvent ce;
local ConEventSpeech ces;

switch(dxr.localURL) {
case "03_NYC_747":
SetTimer(1, true);
break;

case "03_NYC_AIRFIELDHELIBASE":
//Restore this cut phone conversation
c = GetConversation('OverhearLebedev');
c.conOwnerName="LebedevPhone";
c.bInvokeRadius=True;
c.radiusDistance=200;
foreach AllActors(class'#var(prefix)Phone',phone){
if (phone.name=='Phone1'){
phone.BindName="LebedevPhone";
break;
}
}

ce = c.eventList;
while (ce!=None){
if (ce.eventType==ET_Speech){
ces = ConEventSpeech(ce);
ces.speaker=phone;
ces.speakingTo=phone;
}
ce = ce.nextEvent;
}

phone.ConBindEvents();
break;
}
}

Expand Down

0 comments on commit 3f38617

Please sign in to comment.