Skip to content

Commit

Permalink
v2.6.2.6 Beta Merge pull request #676 from Die4Ever/develop
Browse files Browse the repository at this point in the history
v2.6.2.6 Beta
  • Loading branch information
Die4Ever authored Apr 1, 2024
2 parents a7c83a4 + 31c6323 commit 07cbaf5
Show file tree
Hide file tree
Showing 26 changed files with 109 additions and 61 deletions.
6 changes: 6 additions & 0 deletions DXRCore/DeusEx/Classes/DXRBase.uc
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,14 @@ simulated function PlayerAnyEntry(#var(PlayerPawn) player)
simulated event PreTravel()
{
SetTimer(0, False);
if(dxr != None) {
_PreTravel();
}
dxr = None;
}

simulated function _PreTravel();

simulated event Timer()
{
}
Expand Down
2 changes: 1 addition & 1 deletion DXRCore/DeusEx/Classes/DXRVersion.uc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ simulated static function CurrentVersion(optional out int major, optional out in
major=2;
minor=6;
patch=2;
build=5;//build can't be higher than 99
build=6;//build can't be higher than 99
}

simulated static function bool VersionIsStable()
Expand Down
15 changes: 15 additions & 0 deletions DXRCore/DeusEx/Classes/DXRando.uc
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,21 @@ function DXRInit()
}

simulated event PreTravel()
{
local int i;
for(i=0; i<num_modules; i++) {
modules[i].PreTravel();
modules[i] = None;
}
num_modules = 0;
default.dxr = None;// clear the singleton reference
flagbase = None;
Disable('Tick');
bTickEnabled = false;
SetTimer(0, false);
}

simulated event Destroyed()
{
default.dxr = None;// clear the singleton reference
}
Expand Down
26 changes: 26 additions & 0 deletions DXRFixes/DeusEx/Classes/LaserTrigger.uc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,33 @@ function BeginAlarm()
A.Trigger(Self, Pawn(emitter.HitActor));
}

function EndAlarm()
{
super.EndAlarm();
LightType = LT_None;
}

function Tick(float deltaTime)
{
Super.Tick(deltaTime);

if (AmbientSound != None){ //Alarm is happening
// flash the light and texture
if ((Level.TimeSeconds % 0.5) > 0.25)
{
LightType = LT_Steady;
}
else
{
LightType = LT_None;
}
}
}

defaultproperties
{
bProjTarget=true
LightBrightness=255
LightRadius=1
LightType=LT_None
}
8 changes: 8 additions & 0 deletions DXRMapFixups/DeusEx/Classes/DXRFixupM02.uc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function PreFirstEntryMapFixes()
local DXRHoverHint hoverHint;
local DXRButtonHoverHint buttonHint;
local #var(prefix)Button1 button;
local OnceOnlyTrigger oot;
local bool RevisionMaps;
local bool VanillaMaps;

Expand Down Expand Up @@ -214,6 +215,13 @@ function PreFirstEntryMapFixes()
class'PlaceholderEnemy'.static.Create(self,vectm(-4059,976,-976),,'Sitting');

break;
case "02_NYC_SMUG":
foreach AllActors(class'DeusExMover', d,'botordertrigger') {
d.tag = 'botordertriggerDoor';
}
oot = Spawn(class'OnceOnlyTrigger');
oot.Event='botordertriggerDoor';
oot.Tag='botordertrigger';
}
}

Expand Down
14 changes: 12 additions & 2 deletions DXRMapFixups/DeusEx/Classes/DXRFixupM04.uc
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function PreFirstEntryMapFixes()
local #var(prefix)GuntherHermann gunther;
local #var(prefix)MapExit exit;
local #var(prefix)BlackHelicopter jock;
local OnceOnlyTrigger oot;
local DXRHoverHint hoverHint;
local DXRMapVariants mapvariants;
local bool VanillaMaps;
Expand Down Expand Up @@ -178,13 +179,13 @@ function PreFirstEntryMapFixes()
if(VanillaMaps && dxr.flags.settings.goals > 0) {
foreach AllActors(class'#var(prefix)DatalinkTrigger', dt, 'DataLinkTrigger') {
if(dt.datalinkTag != 'DL_SimonsPissed') continue;
dt.Tag = 'SendingSignal3';
dt.Tag = 'UNATCOHatesPlayer';
break;
}

foreach AllActors(class'#var(prefix)FlagTrigger', ft, 'SendingSignal') {
ft.Tag = 'SendingSignal2';
ft.Event = 'SendingSignal3';
ft.Event = 'UNATCOHatesPlayer';
ft.bTrigger = true;
// spawn intermediate trigger to check flag
ft = Spawn(class'#var(prefix)FlagTrigger',, 'SendingSignal', ft.Location+vect(10,10,10));
Expand Down Expand Up @@ -288,6 +289,15 @@ function PreFirstEntryMapFixes()
}

break;

case "04_NYC_SMUG":
foreach AllActors(class'#var(DeusExPrefix)Mover', door,'botordertrigger') {
door.tag = 'botordertriggerDoor';
}
oot = Spawn(class'OnceOnlyTrigger');
oot.Event='botordertriggerDoor';
oot.Tag='botordertrigger';
break;
}
}

Expand Down
2 changes: 1 addition & 1 deletion DXRMapFixups/DeusEx/Classes/DXRFixupM05.uc
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ function BalanceJailbreak()
nextItem = MoveNextItemTo(nextItem, itemLocations[i], 'player_inv');
}

if(!dxr.flags.IsReducedRando()) {
if(dxr.flags.settings.swapitems > 0 || dxr.flags.loadout != 0) {
e = DXREnemies(dxr.FindModule(class'DXREnemies'));
if( e != None ) {
r = initchance();
Expand Down
10 changes: 10 additions & 0 deletions DXRMapFixups/DeusEx/Classes/DXRFixupM08.uc
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ function PreFirstEntryMapFixes()
local #var(prefix)PigeonGenerator pg;
local #var(prefix)MapExit exit;
local #var(prefix)BlackHelicopter jock;
local OnceOnlyTrigger oot;
local #var(DeusExPrefix)Mover d;
local DXRHoverHint hoverHint;
local bool VanillaMaps;
local ScriptedPawn pawn;
Expand Down Expand Up @@ -220,6 +222,14 @@ function PreFirstEntryMapFixes()
npClass.static.SpawnInfoDevice(self,class'#var(prefix)NewspaperOpen',vectm(-1171.976440,250.575806,53.729687),rotm(0,0,0),'08_Newspaper01'); //Joe Greene article, table near where Harley is in Vanilla
Spawn(class'BarDancer',,,vectm(-2150,-500,48),rotm(0,0,0));

break;
case "08_NYC_SMUG":
foreach AllActors(class'#var(DeusExPrefix)Mover', d,'botordertrigger') {
d.tag = 'botordertriggerDoor';
}
oot = Spawn(class'OnceOnlyTrigger');
oot.Event='botordertriggerDoor';
oot.Tag='botordertrigger';
break;
}
}
2 changes: 1 addition & 1 deletion DXRMapFixups/DeusEx/Classes/DXRFixupParis.uc
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function AnyEntryMapFixes()
switch(dxr.localURL)
{
case "10_PARIS_CATACOMBS":
if(!dxr.flags.IsReducedRando()) {
if(dxr.flags.settings.swapitems > 0) {
// spawn Le Merchant with a hazmat suit because there's no guarantee of one before the highly radioactive area
// we need to do this in AnyEntry because we need to recreate the conversation objects since they're transient
npcs = DXRNPCs(dxr.FindModule(class'DXRNPCs'));
Expand Down
3 changes: 1 addition & 2 deletions DXRModules/DeusEx/Classes/DXRBacktracking.uc
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,8 @@ function PostFirstEntry()
}
}

function PreTravel()
function _PreTravel()
{
Super.PreTravel();
CheckNextMap(player().nextMap);
}

Expand Down
12 changes: 5 additions & 7 deletions DXRModules/DeusEx/Classes/DXRCameraModes.uc
Original file line number Diff line number Diff line change
Expand Up @@ -100,22 +100,24 @@ function SetThirdPersonCamera()
}
}

#ifdef vanilla
function SetFixedCamera()
{
#ifdef vanilla
player().bBehindView=False;
player().bCrosshairVisible=False;
if (reCam==None){
if (reCam==None || reCam.bDeleteMe){
SpawnRECam();
}
#else
err("Fixed camera only supported in vanilla!");
#endif
}

function SpawnRECam()
{
reCam=Spawn(class'CCResidentEvilCam',,,player().Location);
reCam.BindPlayer(player());
}
#endif

function SetCameraMode(int mode)
{
Expand Down Expand Up @@ -145,11 +147,7 @@ function SetCameraMode(int mode)
break;

case CM_FixedCamera: //Fixed Camera
#ifdef vanilla
SetFixedCamera();
#else
err("Fixed camera only supported in vanilla!");
#endif
break;

default:
Expand Down
3 changes: 1 addition & 2 deletions DXRModules/DeusEx/Classes/DXRCrowdControl.uc
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,10 @@ function AnyEntry() {
}
}

function PreTravel() {
function _PreTravel() {
if( link != None && link.ccEffects != None ) {
link.ccEffects.CleanupOnExit();
}
Super.PreTravel();
}

function CheckConfig()
Expand Down
6 changes: 0 additions & 6 deletions DXRModules/DeusEx/Classes/DXREventsBase.uc
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,6 @@ simulated function Timer()
}
}

function PreTravel()
{
Super.PreTravel();
SetTimer(0, false);
}

function BingoWinScreen()
{
local #var(PlayerPawn) p;
Expand Down
7 changes: 1 addition & 6 deletions DXRModules/DeusEx/Classes/DXRFixup.uc
Original file line number Diff line number Diff line change
Expand Up @@ -347,14 +347,9 @@ function CleanupPlaceholders(optional bool alert)
}


function PreTravel()
function _PreTravel()
{
Super.PreTravel();
if(#defined(mapfixes)) {
if(dxr == None) {
warning("PreTravelMapFixes with dxr None");
return;
}
PreTravelMapFixes();
}
}
Expand Down
10 changes: 2 additions & 8 deletions DXRModules/DeusEx/Classes/DXRFlagsBase.uc
Original file line number Diff line number Diff line change
Expand Up @@ -111,23 +111,17 @@ simulated function ExecMaxRando();
function string DifficultyName(int diff);
static function string GameModeName(int gamemode);

simulated function PreTravel()
simulated function _PreTravel()
{
Super.PreTravel();
l("PreTravel "$dxr.localURL);
l("_PreTravel "$dxr.localURL);
#ifndef noflags
if( dxr != None && f != None && f.GetInt('Rando_version') == 0 ) {
info("PreTravel "$dxr.localURL$" SaveFlags");
SaveFlags();
}
#endif
// the game silently crashes if you don't wipe out all references to FlagBase during PreTravel?
// and we want to do it here instead of in DXRando.uc to ensure it happens after SaveFlags()
f = None;
dxr.flagbase = None;
dxr.Disable('Tick');
dxr.bTickEnabled = false;
dxr.SetTimer(0, false);
}

function Init(DXRando tdxr)
Expand Down
4 changes: 2 additions & 2 deletions DXRModules/DeusEx/Classes/DXRLoadouts.uc
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ struct _loadouts
var class<Inventory> allow_types[10];
var class<Inventory> starting_equipment[5];
var class<Augmentation> starting_augs[5];
var class<Actor> item_spawns[5];
var int item_spawns_chances[5];// the % spawned in each map, max of 300%
var class<Actor> item_spawns[10];
var int item_spawns_chances[10];// the % spawned in each map, max of 300%
};

var _loadouts _item_sets[20];
Expand Down
3 changes: 1 addition & 2 deletions DXRModules/DeusEx/Classes/DXRMusicPlayer.uc
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,10 @@ simulated event Destroyed()
Super.Destroyed();
}

simulated event PreTravel()
simulated event _PreTravel()
{
Disable('Tick');
RememberMusic();
Super.PreTravel();
}

function Timer()
Expand Down
4 changes: 2 additions & 2 deletions DXRModules/DeusEx/Classes/DXRSkills.uc
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ simulated function PlayerLogin(#var(PlayerPawn) player)
#endif
}

event PreTravel()
event _PreTravel()
{
local PlayerDataItem data;
local #var(PlayerPawn) p;
Super.PreTravel();

#ifdef multiplayer
foreach AllActors(class'#var(PlayerPawn)', p) {
l("PreTravel "$p);
Expand Down
6 changes: 2 additions & 4 deletions DXRando/DeusEx/Classes/CCResidentEvilCam.uc
Original file line number Diff line number Diff line change
Expand Up @@ -192,21 +192,19 @@ function UnTrigger(Actor Other, Pawn Instigator)
defaultproperties
{
bHidden=true
bCollideActors=false
bCollideWorld=false
bBlockActors=false
bBlockPlayers=false
bProjTarget=false
CollisionHeight=1
CollisionRadius=1
bActive=True
bNoAlarm=True
bSwing=False
bTrackPlayer=True
bGameRelevant=True
bAlwaysRelevant=True
bAlwaysTick=True
bInvincible=True
HitPoints=50
minDamageThreshold=5
bStasis=False
cameraRange=750
RotationRate=(Pitch=40000,Yaw=40000)
Expand Down
21 changes: 9 additions & 12 deletions DXRando/DeusEx/Classes/DXRAimLaserEmitter.uc
Original file line number Diff line number Diff line change
Expand Up @@ -56,21 +56,18 @@ function SetLaserColour()
player = DeusExPlayer(Owner);
if (player==None) return;

//White laser: Texture'Effects.UserInterface.WhiteStatic'
//Blue laser: Texture'LaserBeam2';
//Red Laser: FireTexture'Effects.Laser.LaserBeam1'
//Green Laser: Texture'Effects.Fire.Wepn_Prifle_SFX'

DeusExRootWindow(Player.rootWindow).hud.augDisplay.GetTargetReticleColor(HitActor,retColour);
//player.ClientMessage("R"$retColour.R$" G"$retColour.G$" B"$retColour.B);
if (retColour.R==0 && retColour.G==0 && retColour.B==0){ //White
proxy.Skin = Texture'Effects.UserInterface.WhiteStatic';
} else if (retColour.R==255 && retColour.G==0 && retColour.B==0){ //Red
proxy.Skin = FireTexture'Effects.Laser.LaserBeam1';
} else if (retColour.R==0 && retColour.G==255 && retColour.B==0){ //Green
proxy.Skin = Texture'Effects.Fire.Wepn_Prifle_SFX';
if (HitActor!=None){
if (retColour.R==0 && retColour.G==0 && retColour.B==0){
proxy.Skin = Texture'Extension.SolidYellow';
} else if (retColour.R==255 && retColour.G==0 && retColour.B==0){
proxy.Skin = Texture'Extension.SolidRed';
} else if (retColour.R==0 && retColour.G==255 && retColour.B==0){
proxy.Skin = Texture'Extension.SolidGreen';
}
} else {
proxy.Skin = Texture'LaserBeam2';
proxy.Skin = Texture'Extension.Solid'; //Solid White
}
}

Expand Down
Binary file modified DeusEx.u
Binary file not shown.
Binary file modified GMDXRandomizer.u
Binary file not shown.
Binary file modified HXRandomizer.u
Binary file not shown.
Loading

0 comments on commit 07cbaf5

Please sign in to comment.