Skip to content

Commit 5ea8f7d

Browse files
committed
dbd5 tank spawn
1 parent 87e9030 commit 5ea8f7d

File tree

6 files changed

+62
-5
lines changed

6 files changed

+62
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
* Players will move 40% faster when being forced to crouch through the vent chokepoint
4040
* Fixed the spit block area extending outside of the vents
4141
* Added visual indication of where the spit block area starts and ends
42+
* Map 5
43+
* No major changes
4244
* All Maps
4345
* Improved prop fixes for compatibility with custom campaigns
4446
* Made a physics prop couch unmovable instead of non-solid
@@ -85,6 +87,9 @@
8587
* Added an infected ladder to climb onto the hedges on the right of the park near the start
8688
* Map 3
8789
* Added a pipe to stand on at the ladder in the sewer
90+
* Map 5
91+
* Reduced map distance to 500 (from 600)
92+
* Removed additional tank spawn at the end of the map
8893
* The Passing
8994
* Map 2
9095
* Prevented players from being able to block the gates in the sewer from opening

CUSTOM CAMPAIGNS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ All download mirrors provided will for the supported version of the maps.
4545
4. l4d_dbd2dc_undead_center
4646
5. l4d_dbd2dc_new_dawn
4747
### Notes
48-
* Steam Workshop collection is currently unavailable, use the individual part links or another mirror
48+
* Steam Workshop collection is currently unavailable, use the individual part links or another mirror (recommended)
4949

5050

5151
## The Dark Parish (WIP)

cfg/cfgogl/mapinfo.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,9 +1322,6 @@
13221322
"start_extra_dist" "306.183685"
13231323
"end_point" "-463.786469 876.165771 -243.441345"
13241324
"end_dist" "1558.433960"
1325-
"tank_z_fix" "1"
1326-
"max_tank_z" "-1.000000"
1327-
"tank_warpto" "-1079 2161 -416"
13281325
"max_distance" "500"
13291326
"tank_ban_flow"
13301327
{

cfg/stripper/maps/l4d_dbd2dc_clean_up.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ modify:
374374
insert:
375375
{
376376
; --- New timings
377-
"OnPressed" "director,BeginScript,c1_gunshop_onslaught,0,-1"
377+
"OnPressed" "director,BeginScript,l4d_dbd2dc_clean_up_north_gate_rework,0,-1"
378378
"OnPressed" "Customer_Door04,StartForward,,5,-1"
379379
"OnPressed" "Customer_Door03,StartForward,,5,-1"
380380
"OnPressed" "Customer_Door02,StartForward,,5,-1"

cfg/stripper/maps/l4d_dbd2dc_new_dawn.cfg

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,27 @@ filter:
2929
{
3030
"targetname" "advancementtrigger_1"
3131
}
32+
; --- Teleport the tank to a better location when it spawns - credit: ProMod
33+
modify:
34+
{
35+
match:
36+
{
37+
"targetname" "advancementtrigger_2"
38+
}
39+
insert:
40+
{
41+
"OnTrigger" "tank_spawned_timer,Enable,,0,-1"
42+
}
43+
}
44+
add:
45+
{
46+
"classname" "logic_timer"
47+
"targetname" "tank_spawned_timer"
48+
"StartDisabled" "1"
49+
"RefireTime" "1"
50+
"spawnflags" "0"
51+
"OnTimer" "director,BeginScript,l4d_dbd2dc_new_dawn_tank_helper_promod,0,-1"
52+
}
3253
; --- Remove the tank spawns on the roof
3354
filter:
3455
{
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Used to convert Dead Before Dawn: DC's finale to a gauntlet.
2+
// Refer to the corresponding stripper file.
3+
4+
tanks <-{
5+
tank1 = "models/infected/hulk.mdl",
6+
tank2 = "models/infected/hulk_dlc3.mdl"
7+
}
8+
9+
function TeleTank()
10+
{
11+
foreach (t, m in tanks)
12+
{
13+
tank <- Entities.FindByModel(null, m);
14+
if (tank)
15+
{
16+
pos <- tank.GetOrigin();
17+
18+
// Coordinates to where we want to teleport the tank
19+
// "-1014.411316 2127.294922 -416.949554"
20+
pos.x = -1014.411316;
21+
pos.y = 2127.294922;
22+
pos.z = -416.949554;
23+
tank.SetOrigin(pos);
24+
25+
// Kill the timer that keeps running this script
26+
EntFire( "tank_spawned_timer", "Disable", 0 );
27+
28+
// Start the timer that monitors the tank music
29+
EntFire( "tank_music_timer", "Enable", 0 );
30+
}
31+
}
32+
}
33+
34+
TeleTank();

0 commit comments

Comments
 (0)