Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.5.3 Beta #515

Merged
merged 80 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from 75 commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
8abadd2
fix release workflow
Die4Ever Aug 31, 2023
520dd0c
Update README.md
Die4Ever Jun 29, 2023
c677bcf
in game splits view WIP
Die4Ever Sep 4, 2023
0020fad
speedrun splits view updates
Die4Ever Sep 5, 2023
60d499d
splits viewer, non fixed width font
Die4Ever Sep 5, 2023
dbd4f3b
installer DXVK
Die4Ever Sep 5, 2023
32833b4
installer DXVK, fix workflow
Die4Ever Sep 5, 2023
d1e0d23
fix compile for other mods
Die4Ever Sep 5, 2023
758c667
v2.5.3.1 Alpha builds
Die4Ever Sep 5, 2023
3e18996
Remove the two small cardboard boxes at the ladder base of the sewers in
theastropath Sep 5, 2023
ee53460
Make medium metal crates breakable, like large ones. Fixes #507
theastropath Sep 5, 2023
63252aa
brightness boost clarification (as if anyone reads these)
Die4Ever Sep 6, 2023
ecf8a05
splits enabled and minimal settings
Die4Ever Sep 6, 2023
a6fd6ba
fix splits saving new PB/golds
Die4Ever Sep 6, 2023
b5aa0df
v2.5.3.2 Alpha builds
Die4Ever Sep 6, 2023
8e607bd
Add various bingo goals related to using vending machines. Work towards
theastropath Sep 6, 2023
9409ac7
Merge branch 'develop' of https://github.com/Die4Ever/deus-ex-randomizer
theastropath Sep 6, 2023
bbed4d1
Add bingo events for killing the Russian Sailors in the Lucky Money and
theastropath Sep 6, 2023
951dbd1
Add a bingo goal for killing Shannon in UNATCO. Work for #504
theastropath Sep 6, 2023
78e1e53
installer ability to remove DXVK
Die4Ever Sep 6, 2023
45e009c
Add bingo goal for crushing capitalism
theastropath Sep 6, 2023
92bb662
Merge branch 'develop' of https://github.com/Die4Ever/deus-ex-randomizer
theastropath Sep 6, 2023
b98b2b0
HUDSpeedrunSplits adjust width to really slow times, like 10+ hours
Die4Ever Sep 7, 2023
75d27a0
installer D3D9 and OpenGL 2.0
Die4Ever Sep 7, 2023
075f831
fix OpenGLDrv.dll path in workflow (maybe)
Die4Ever Sep 7, 2023
cee2f0f
fix bingo win with inventory open crash
Die4Ever Sep 7, 2023
68c4c3a
installer support reverting OpenGL2 renderer
Die4Ever Sep 7, 2023
71a05ae
fix Walton Ware Advanced settings
Die4Ever Sep 7, 2023
6abde16
v2.5.3.3 Alpha builds
Die4Ever Sep 8, 2023
c273165
only run github actions when certain files are changed
Die4Ever Sep 8, 2023
8d7656e
menu clarify Bingo Scale %
Die4Ever Sep 8, 2023
ef74b5e
installer fix Linux Kentie
Die4Ever Sep 8, 2023
9a4c957
installer Linux use Kentie's by default
Die4Ever Sep 8, 2023
ef70c74
installer fix mirrored maps MD5
Die4Ever Sep 8, 2023
5a8c903
Add bingo goal for killing one of the Hong Kong Military in the canals
theastropath Sep 8, 2023
fba6902
fix binoculars PreTravel
Die4Ever Sep 8, 2023
aef8127
Add bingo goals for destroying lamps, skeleton bits, and trophies
theastropath Sep 9, 2023
f3b0600
Merge branch 'develop' of https://github.com/Die4Ever/deus-ex-randomizer
theastropath Sep 9, 2023
93e393f
DXREvents watched actors small cleanup
Die4Ever Sep 9, 2023
74cfc9d
DXREvents fix whitespace change
Die4Ever Sep 9, 2023
e4c268b
fix safe_rules for mirrored maps
Die4Ever Sep 9, 2023
cf55661
installer maybe fix Linux Proton Documents path
Die4Ever Sep 9, 2023
1daa1c5
v2.5.3.4 Alpha builds, fix installer tests
Die4Ever Sep 9, 2023
6073bbe
speedrun timer always visible, moved from HUD to root
Die4Ever Sep 9, 2023
b4da01c
Update light vandalism goal to include more types of lights. Add goals
theastropath Sep 9, 2023
805fa0a
Fix numbering of bingo_options defaultproperties
theastropath Sep 9, 2023
03ef715
Update "Kill x Allies" bingo goal to include neutral people (and change
theastropath Sep 9, 2023
b90f235
Add a bingo goal for bringing Lebedev back to Manderley's office. Work
theastropath Sep 9, 2023
2a60d1b
Fix male JC conversation from being started in Vandenberg, even if
theastropath Sep 9, 2023
f53fd63
Add a bingo goal for talking to Walton Simons
theastropath Sep 10, 2023
658a4c9
Remove all datavault images on new game plus
theastropath Sep 10, 2023
91c0523
debug mode easier testing of endings
Die4Ever Sep 10, 2023
c0e54a3
NG+ and MaxRando new file
Die4Ever Sep 10, 2023
936f6bf
Consider it to be "in game" if the bingo win message is up, so that the
theastropath Sep 10, 2023
48cd02f
Merge branch 'develop' of https://github.com/Die4Ever/deus-ex-randomizer
theastropath Sep 10, 2023
9e6c428
move RemoveRandomWeapon into DXRFlagsNGPMaxRando
Die4Ever Sep 10, 2023
678c272
Move the DXRBigMessage check out of the DXRBase logic and specifically
theastropath Sep 10, 2023
6ceed86
Fix bingo viewer to use regex to parse bingo lines for more flexibility.
theastropath Sep 10, 2023
112c0ae
ClearInHand function to fix deleting items traveling from NG+ and new…
Die4Ever Sep 10, 2023
2044021
autosave lock player in place (I hope Jesus will be happy now)
Die4Ever Sep 10, 2023
e3d9467
installer fix mirrored maps MD5 check
Die4Ever Sep 10, 2023
eafebf3
Add several new bingo goals (now over 250!) and make the What a Shame
theastropath Sep 10, 2023
21be4be
Merge branch 'develop' of https://github.com/Die4Ever/deus-ex-randomizer
theastropath Sep 10, 2023
f49108f
installer mirrored maps v0.9.4 and fix MD5s for map files
Die4Ever Sep 10, 2023
a3ba1c7
installer check for Vulkan support
Die4Ever Sep 10, 2023
5039574
v2.5.3.5 Alpha builds
Die4Ever Sep 10, 2023
8208c4d
Add bingo goal for cracking safes (which are somehow only in mission 2
theastropath Sep 10, 2023
204eac8
Increase the size of the watched actor list for DXREvents
theastropath Sep 10, 2023
70dfbb3
Add a bingo goal to throw a corpse off the cliffs of Vandenberg
theastropath Sep 11, 2023
90819d3
Add a bingo goal for throwing Maggie out of her window
theastropath Sep 11, 2023
c66f606
fix graveyard gatekeeper softlocks (#512)
Die4Ever Sep 11, 2023
5eca286
maybe improved autosave again?
Die4Ever Sep 11, 2023
36af39b
Add new bingo goals for jumping down the vandenberg shaft, killing
theastropath Sep 11, 2023
8b60c2d
Make My Name Chef mutually exclusive with Cook the Cook
theastropath Sep 11, 2023
802bd01
fix autosave vandenberg tunnels no MissionScript
Die4Ever Sep 11, 2023
f65adbd
installer smarter renderer selection for default
Die4Ever Sep 11, 2023
37f5146
autosave remove use of old_game_speed for now
Die4Ever Sep 11, 2023
1f32bad
v2.5.3.6 Beta builds
Die4Ever Sep 11, 2023
9a050ef
installer Linux default OGL2
Die4Ever Sep 11, 2023
9f9fa8c
fix hints for GreeneArticles, need to double check and fix the wiki too
Die4Ever Sep 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/release_template.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Download `DXRandoInstaller.exe` in the Assets section under the changelog.
Download `DXRandoInstaller.exe` in the Assets section under the changelog. It is safe to update in the middle of a playthrough.

For Nvidia users, setting ultra low latency mode for DXRando.exe can help performance.

If you're having an issue with the installer program: [Manual Installation Instructions for Vanilla, Lay D Denton, GMDX, Revision, HX co-op, and Vanilla? Madder.](https://github.com/Die4Ever/deus-ex-randomizer/wiki/Installation-Instructions-and-performance-tweaks)

Expand Down
53 changes: 48 additions & 5 deletions .github/run-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ runs:
- run: pip3 install -r installer/requirements.txt 2>&1
shell: bash

# download launchers
- run: mkdir installer/3rdParty
shell: bash
- run: mkdir installer/3rdParty/d3d10drv
shell: bash

# https://github.com/Defaultplayer001/Deus-Ex-Universe-Community-Update-/tree/master/%5B1.0%5D%20Deus%20Ex%20-%20Windows-Linux-macOS-Android/DXCU%20Installer%20Source/Mods/Community%20Update/System/Alternative%20EXEs
- run: >-
curl -Lo installer/3rdParty/KentieDeusExe.exe
Expand All @@ -25,7 +23,34 @@ runs:
"https://github.com/Defaultplayer001/Deus-Ex-Universe-Community-Update-/raw/master/%5B1.0%5D%20Deus%20Ex%20-%20Windows-Linux-macOS-Android/DXCU%20Installer%20Source/Mods/Community%20Update/System/Alternative%20EXEs/Launch.exe"
shell: bash

# D3D10 stuff
# download D3D9
- run: >-
curl -Lo installer/3rdParty/D3D9Drv.dll
"https://github.com/Defaultplayer001/Deus-Ex-Universe-Community-Update-/raw/master/%5B1.0%5D%20Deus%20Ex%20-%20Windows-Linux-macOS-Android/DXCU%20Installer%20Source/Mods/Community%20Update/System/D3D9Drv.dll"
shell: bash
- run: >-
curl -Lo installer/3rdParty/D3D9Drv.hut
"https://github.com/Defaultplayer001/Deus-Ex-Universe-Community-Update-/raw/master/%5B1.0%5D%20Deus%20Ex%20-%20Windows-Linux-macOS-Android/DXCU%20Installer%20Source/Mods/Community%20Update/System/D3D9Drv.hut"
shell: bash
- run: >-
curl -Lo installer/3rdParty/D3D9Drv.int
"https://github.com/Defaultplayer001/Deus-Ex-Universe-Community-Update-/raw/master/%5B1.0%5D%20Deus%20Ex%20-%20Windows-Linux-macOS-Android/DXCU%20Installer%20Source/Mods/Community%20Update/System/D3D9Drv.int"
shell: bash

# download and extract OpenGL 2.0 https://github.com/Defaultplayer001/Deus-Ex-Universe-Community-Update-/tree/master/%5B1.0%5D%20Deus%20Ex%20-%20Windows-Linux-macOS-Android/CommunityUpdateFileArchiveDXPC/OpenGL
- run: >-
curl -Lo dxglr21.zip
"https://github.com/Defaultplayer001/Deus-Ex-Universe-Community-Update-/raw/master/%5B1.0%5D%20Deus%20Ex%20-%20Windows-Linux-macOS-Android/CommunityUpdateFileArchiveDXPC/OpenGL/dxglr21.zip"
shell: bash
- run: unzip dxglr21.zip
shell: bash
- run: cp OpenGLDrv.dll installer/3rdParty/OpenGLDrv.dll
shell: bash

# download D3D10 stuff
- run: mkdir installer/3rdParty/d3d10drv
shell: bash

- run: >-
curl -Lo installer/3rdParty/D3D10Drv.int
"https://github.com/Defaultplayer001/Deus-Ex-Universe-Community-Update-/raw/master/%5B1.0%5D%20Deus%20Ex%20-%20Windows-Linux-macOS-Android/DXCU%20Installer%20Source/Mods/Community%20Update/System/D3D10Drv.int"
Expand Down Expand Up @@ -97,6 +122,19 @@ runs:
"https://github.com/LayDDentonProject/Lay-D-Denton-Project/releases/download/v1.1/FemJC.u"
shell: bash

# download DXVK 32bit, the extracted folder has the version number in it like dxvk-2.3
- run: >-
curl -Lo dxvk.tar.gz
"https://github.com/doitsujin/dxvk/releases/download/v2.3/dxvk-2.3.tar.gz"
shell: bash
- run: tar -xf dxvk.tar.gz
shell: bash
- run: mkdir installer/3rdParty/dxvk/
shell: bash
- run: cp dxvk-*/x32/* installer/3rdParty/dxvk/
shell: bash

# check syntax and run tests
- run: python3 -m compileall -q . 2>&1
shell: bash
- run: python3 installer/tests.py 2>&1
Expand All @@ -112,7 +150,7 @@ runs:
shell: bash

# small test, use timeouts because on windows the GUI can catch errors and a dialog box will freeze the program
- run: timeout 30 ./dist/DXRandoInstaller --version 2>&1
- run: timeout 30 ./dist/DXRandoInstaller --version --verbose 2>&1
shell: bash
- run: timeout 30 ./dist/BingoViewer --version 2>&1
shell: bash
Expand All @@ -135,5 +173,10 @@ runs:
# working-directory: ./dist/BingoViewer
# shell: bash

# make sure we got everything
- run: find installer/3rdParty/
shell: bash
- run: find dist/
shell: bash
- run: ls -lah dist/
shell: bash
5 changes: 3 additions & 2 deletions .github/workflows/commit.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: commit
'on':
- push
on:
push:
paths: ['*', 'installer/**', '.github/**']

jobs:
windows:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/DXRandoInstaller.exe
asset_name: DXRandoInstaller.exe
tag: ${{ github.ref }}

- name: Upload Release Asset BingoViewer
id: upload-release-asset-bingoviewer
Expand All @@ -28,6 +29,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/BingoViewer.exe
asset_name: BingoViewer.exe
tag: ${{ github.ref }}

linux:
runs-on: ubuntu-latest
Expand All @@ -50,6 +52,7 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/DXRandoInstaller
asset_name: DXRandoInstaller-Linux
tag: ${{ github.ref }}

- name: Upload Release Asset BingoViewer
id: upload-release-asset-bingoviewer
Expand All @@ -58,3 +61,4 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/BingoViewer
asset_name: BingoViewer-Linux
tag: ${{ github.ref }}
25 changes: 13 additions & 12 deletions BingoDisplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import os.path
import urllib.request
import urllib.parse
import re
from tkinter import filedialog as fd
from tkinter import font
from tkinter import messagebox
Expand Down Expand Up @@ -40,6 +41,7 @@ def __init__(self,targetFile):
self.height=500
self.selectedMod=""
self.prevLines=None
self.bingoLineMatch = re.compile(r'bingoexport\[(?P<key>\d+)\]=\(Event="(?P<event>.*)",Desc="(?P<desc>.*)",Progress=(?P<progress>\d+),Max=(?P<max>\d+),Active=(?P<active>\d+)\)')
self.initDrawnBoard()

def closeWindow(self):
Expand Down Expand Up @@ -139,20 +141,19 @@ def bingoNumberToCoord(self,bingoNumber):
return (x,y)

def parseBingoLine(self,bingoLine):
bingoNumber = int(bingoLine.split("[")[1].split("]")[0])
bingoMatches=self.bingoLineMatch.match(bingoLine)
if (bingoMatches==None):
return

bingoNumber=int(bingoMatches.group('key'))
bingoCoord = self.bingoNumberToCoord(bingoNumber)
state = "=".join(bingoLine.split("=")[1:])[1:-1]
fields = state.split(",")

bingoItem = dict()
for field in fields:
split = field.split("=")
fieldName = split[0].lower()
fieldVal = split[1].replace('"',"")
try:
fieldVal = int(fieldVal)
except:
pass
bingoItem[fieldName]=fieldVal
bingoItem["event"]=bingoMatches.group('event')
bingoItem["desc"]=bingoMatches.group('desc')
bingoItem["progress"]=int(bingoMatches.group('progress'))
bingoItem["max"]=int(bingoMatches.group('max'))
bingoItem["active"]=int(bingoMatches.group('active'))

self.board[bingoCoord[0]][bingoCoord[1]] = bingoItem

Expand Down
50 changes: 44 additions & 6 deletions DXRCore/DeusEx/Classes/DXRActorsBase.uc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ struct FMinMax {
};

struct safe_rule {
var string map;
var name item_name;
var vector min_pos;
var vector max_pos;
Expand Down Expand Up @@ -1269,13 +1268,36 @@ function Vector GetCenter(Actor test)
return (MinVect+MaxVect)/2;
}

function int GetSafeRule(safe_rule rules[64], name item_name, vector newpos)
function safe_rule FixSafeRule(safe_rule r)
{
local float a, b;
r.min_pos *= coords_mult;
r.max_pos *= coords_mult;

a = FMin(r.min_pos.X, r.max_pos.X);
b = FMax(r.min_pos.X, r.max_pos.X);
r.min_pos.X = a;
r.max_pos.X = b;

a = FMin(r.min_pos.Y, r.max_pos.Y);
b = FMax(r.min_pos.Y, r.max_pos.Y);
r.min_pos.Y = a;
r.max_pos.Y = b;

a = FMin(r.min_pos.Z, r.max_pos.Z);
b = FMax(r.min_pos.Z, r.max_pos.Z);
r.min_pos.Z = a;
r.max_pos.Z = b;

return r;
}

function int GetSafeRule(safe_rule rules[16], name item_name, vector newpos)
{
local int i;

for(i=0; i<ArrayCount(rules); i++) {
if( item_name != rules[i].item_name ) continue;
if( dxr.localURL != rules[i].map ) continue;
if( AnyGreater( rules[i].min_pos, newpos ) ) continue;
if( AnyGreater( newpos, rules[i].max_pos ) ) continue;
return i;
Expand Down Expand Up @@ -1322,24 +1344,40 @@ static function GlowUp(Actor a, optional byte hue)
a.LightRadius=6;
}

function DebugMarkKeyPosition(Actor a, coerce string id)
function DebugMarkKeyActor(Actor a, coerce string id)
{
local ActorDisplayWindow actorDisplay;
if( ! #defined(debug)) {
err("Don't call DebugMarkKeyPosition without debug mode! Add debug to the compiler_settings.default.json file");
err("Don't call DebugMarkKeyActor without debug mode! Add debug to the compiler_settings.default.json file");
return;
}

if(DeusExDecoration(a) != None) {
DeusExDecoration(a).ItemName = id @ DeusExDecoration(a).ItemName;
} else if(Inventory(a) != None) {
Inventory(a).ItemName = id @ Inventory(a).ItemName;
} else if(DXRGoalMarker(a) != None) {
a.BindName = id;
a.bHidden = False;
}
GlowUp(a);
debug("DebugMarkKeyPosition "$a$ " ("$a.Location$") " $ id);
debug("DebugMarkKeyActor "$a$ " ("$a.Location$") " $ id);

actorDisplay = DeusExRootWindow(player().rootWindow).actorDisplay;
actorDisplay.SetViewClass(a.class);
actorDisplay.ShowLOS(false);
actorDisplay.ShowPos(true);
}

function DebugMarkKeyPosition(vector pos, coerce string id)
{
local ActorDisplayWindow actorDisplay;
local Actor a;
if( ! #defined(debug)) {
err("Don't call DebugMarkKeyActor without debug mode! Add debug to the compiler_settings.default.json file");
return;
}

a = Spawn(class'DXRGoalMarker',,,pos);
DebugMarkKeyActor(a, id);
}
28 changes: 28 additions & 0 deletions DXRCore/DeusEx/Classes/DXRBase.uc
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,34 @@ simulated function MessageBoxClicked(int button, int callbackId) {
//OK = 2
}

//Returns true when you aren't in a menu, or in the intro, etc.
function bool InGame() {
#ifdef hx
return true;
#endif

if( player() == None )
return false;

if (player().InConversation()) {
return True;
}

if (None == DeusExRootWindow(player().rootWindow)) {
return False;
}

if (None == DeusExRootWindow(player().rootWindow).hud) {
return False;
}

if (!DeusExRootWindow(player().rootWindow).hud.isVisible()){
return False;
}

return True;
}

simulated function AddDXRCredits(CreditsWindow cw)
{
}
11 changes: 5 additions & 6 deletions DXRCore/DeusEx/Classes/DXRMenuSelectDifficulty.uc
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,7 @@ function BindControls(optional string action)
for( i=i; i < ArrayCount(f.difficulty_names); i++ ) {
if( f.difficulty_names[i] == "" ) continue;
EnumOption(f.difficulty_names[i], i, f.difficulty);
}
#ifndef hx
// TODO: menus for HX?
if(writing)
difficulty = f.SetDifficulty(f.difficulty).CombatDifficulty;
#endif
}// we write the difficulty and gamemode after setting the seed...

#ifdef injections
foreach f.AllActors(class'DXRAutosave', autosave) { break; }// need an object to access consts
Expand Down Expand Up @@ -125,6 +120,10 @@ function BindControls(optional string action)
}

if(writing) {
#ifndef hx
// we write the difficulty and gamemode after setting the seed, TODO: menus for HX?
difficulty = f.SetDifficulty(f.difficulty).CombatDifficulty;
#endif
if( action == "ADVANCED" ) NewGameSetup(difficulty);
else if( action == "MAXRANDO" ) {
f.ExecMaxRando();
Expand Down
2 changes: 1 addition & 1 deletion DXRCore/DeusEx/Classes/DXRMenuSetupRando.uc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function BindControls(optional string action)
NewMenuItem("Bingo Win", "How many completed lines to instantly win");
Slider(f.settings.bingo_win, 0, 12);

NewMenuItem("Bingo Scale", "How difficult should bingo goals be?");
NewMenuItem("Bingo Scale %", "How difficult should bingo goals be?");
Slider(f.bingo_scale, 0, 100);

NewMenuItem("Bingo Freespace", "Should the center be a Free Space, or even more Free Spaces");
Expand Down
6 changes: 3 additions & 3 deletions DXRCore/DeusEx/Classes/DXRVersion.uc
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ simulated static function CurrentVersion(optional out int major, optional out in
{
major=2;
minor=5;
patch=2;
build=11;//build can't be higher than 99
patch=3;
build=5;//build can't be higher than 99
}

simulated static function string VersionString(optional bool full)
{
local int major,minor,patch,build;
local string status;

status = "";
status = "Alpha";

if(status!="") {
status = " " $ status;
Expand Down
15 changes: 15 additions & 0 deletions DXRMapFixups/DeusEx/Classes/DXRFixupM02.uc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ function PreFirstEntryMapFixes()
local #var(prefix)NanoKey k;
local CrateExplosiveSmall c;
local Terrorist nsf;
local #var(prefix)BoxSmall bs;
local #var(prefix)Keypad2 kp;
#ifdef injections
local #var(prefix)Newspaper np;
local class<#var(prefix)Newspaper> npClass;
Expand Down Expand Up @@ -51,6 +53,19 @@ function PreFirstEntryMapFixes()
npClass.static.SpawnInfoDevice(self,class'#var(prefix)NewspaperOpen',vectm(1700.929810,-519.988037,57.729870),rotm(0,0,0),'02_Newspaper06'); //Joe Greene article, table in room next to break room (near bathrooms)
npClass.static.SpawnInfoDevice(self,class'#var(prefix)NewspaperOpen',vectm(-1727.644775,2479.614990,1745.724976),rotm(0,0,0),'02_Newspaper06'); //Next to apartment(?) door on rooftops, near elevator

//Remove the small boxes in the sewers near the ladder so that bigger boxes don't shuffle into those spots
foreach AllActors(class'DeusExMover',d,'DrainGrate'){break;}
foreach d.RadiusActors(class'#var(prefix)BoxSmall',bs,800){bs.Destroy();}

//A switch in the sewer swimming path to allow backtracking
AddSwitch( vect(-1518.989136,278.541260,-439.973816), rot(0, 2768, 0), 'DrainGrate');

//A keypad in the sewer walking path to allow backtracking
kp = Spawn(class'Keypad2',,,vectm(-622.685,497.4295,-60.437), rotm(0,-49192,0));
kp.validCode="2577";
kp.bToggleLock=False;
kp.Event='DoorToWarehouse';

class'PlaceholderEnemy'.static.Create(self,vectm(782,-1452,48));
class'PlaceholderEnemy'.static.Create(self,vectm(1508,-1373,256));
class'PlaceholderEnemy'.static.Create(self,vectm(1814,-1842,48));
Expand Down
Loading