0 of 0

File information

Last updated

Original upload

Created by

CautiousPancake

Uploaded by

CautiousPancake

Virus scan

Safe to use

Tags for this mod

About this mod

This mod aims to provide an alternative play mode / challenge where Horde Nights are more difficult, as they do not stop until the required number of zombies are killed. The number required increases each horde night, and on the last horde - will never end!

Permissions and credits
Changelogs
Overview

This mod aims to provide an alternative play mode / challenge where Horde Nights are more difficult, as they do not stop until the required number of zombies are killed.

The core mod is designed around a 50 day challenge, with Hordes every 5 days.  The 5 day horde setting is something that you will have to set in your game, it is NOT set by the mod.

I've also uploaded a 70 day challenge with Hordes every 7 days, in case you prefer a slightly slower pace, and a Horde every Night version, where there's no infinite horde at the end, because there's no end - it's just night after night of horde, too see how long you can survive.

Lastly there's a "Horde Every Night" version that doesn't have the final infinite horde, but it does have a horde that comes every night, and just keeps getting bigger!

You must start a new game with this mod, it will not work on existing games.

It is designed for SINGLEPLAYER games only.

Installation
Unzip and add to Mods folder.
Start a new game with this mod - as it needs to count days starting from day 1.
ENSURE you match your horde night setting to the version you downloaded - set Horde to 5 Days for the 50and5 version and 7 Days for the 70and7.
Works with EAC turned on or off.

Warning
This is NOT designed for multiplayer (although it can be used as long as one player is always on for all days/nights to ensure day counter matches world day).


Terms of Use
In short, if you use the mod as is, or with minor changes, please provide some attribution, but otherwise go for it - adapt, use, learn, change, build new things, make it better whatever you like!

As I have learned from all the awesome modders that have previously figured things out, I'll be thrilled if someone takes this and turns it into something better!
Oh, and if you're making any content for YouTube or Twitch where you're playing with this mod on, please let me know so I can watch!

Donations
If you like what I do, please come support me on YouTube by subscribing and watching my content.

Known Issues
None yet...

Mod Mechanics (possibly spoilers)
When a horde night is about to start - a buff will appear at 9pm showing the number of zombies to be killed.  The progression for the base mod is as follows:
50and570and7  Num Zombies 
5750
1014175
1521325
2028500
2535700
3042950
35491250
40561600
45632100
50 70Infinite*

Horde every night calculates the number of zombies as (5*Day + 5)*Day which looks like this:

DayNum Zombies
1 10
2 30
3 60
4 100
5 150
6 210
7 280
8 360
9 450
10550

Note that for the final horde, the buff counts the number of zombies killed, so will increase over time - so you can show off how many you did for the infinite horde, before finally providing zombies with the inevitable intestinal bolognaise. 

*It's also not technically infinite - I set the number of zombies to 1 million, so if you feel like you can do more than 1 million, feel free to bump this number up higher. 

Also I don't know how high a cvar can get, so this may or may not break depending. 

To put things into perspective - normal 7 Days horde night is 20 mins, and my best bases do around 700 zombies, so at 2100 zombies an hour, getting to 10,000 zombies is going to take about 5 hours of continuous play. 

Maybe someone can do a 24 hour charity stream can see how high this can go one day!

Also, the counts above are set for 64 zombies horde nights, so if you're playing with less zombies on horde night, you may want to consider reducing the number of zombies so that the horde nights don't take too long (or leave them - its entirely up to you!).

To count a zombie death as against the required number, the zombie must die (from any means) within 70 blocks of the player.  Outside this range and the death will not count.

The horde night is controlled through a single "wave" that lasts from 10pm to midnight.  To keep it going until the required number of zombies have been killed, time is checked every 10 seconds, and if the buff is still active, and the time is after 11pm, it is pushed back to 10:55pm.  Once the buff is gone, the time is set to 23:59 which will end horde night as soon as the time ticks over to midnight a minute later, which will stop the wave from spawning.

To ensure that cops and demos are included, the horde waves have been modified to ensure that once cops and demos start to get included (based on gamestage) in the normal game setup, they will always appear in the modded waves, with an appropriate chance of spawn to match what the based game would expect.

Additionally, behind the scenes, the mod will count each day/night cycle to ensure that it knows when a horde night is coming - which is why this mod is NOT recommended for multiplayer (unless you ensure you (or someone) is always on for all days and nights.  Otherwise there will be no buff to remove on the horde night and it will literally never end :)

Because the horde night waves have been customised, I do not expect this to work out of the box for any of the overhaul mods, but it depends how the entitygroups.xml has been configured in the overhauls (or if they have replaced the horde night setup completely).  I will update the list below with details as I can (and if you try it with an overhaul - please let me know how you go!)

Darkness Falls- Unknown compatability
Rebirth- Unknown compatability
Undead Legacy- Unknown compatability

How to modify this mod
If you want to modify the required number of zombies for each horde night, open gameevents.xml from the mod folder, the find the following xml tag: <action_sequence name="IH_setHordeKillsRemaining">
Then for each of the actions, modify the value attribute value to be the number of zombies required.  For example, to change the below 1st Horde, on Day 5, which has a value of 50, to be 150, it would change from:
<!-- 1st Horde, Day 5, 50 Zombies -->
<action class="ModifyCVar">
<property name="phase" value="1"/>
<property name="cvar" value="IH_hordeKillsRemaining"/>
<property name="operation" value="Set"/>
<property name="value" value="50"/>
<requirement class="CVar">
<property name="cvar" value="IH_DayNumberCvar"/>
<property name="operation" value="Equals" />
<property name="value" value="5" />
</requirement>
</action>


To this: 
<!-- 1st Horde, Day 5, 50 Zombies -->
<action class="ModifyCVar">
<property name="phase" value="1"/>
<property name="cvar" value="IH_hordeKillsRemaining"/>
<property name="operation" value="Set"/>
<property name="value" value="150"/>
<requirement class="CVar">
<property name="cvar" value="IH_DayNumberCvar"/>
<property name="operation" value="Equals" />
<property name="value" value="5" />
</requirement>
</action>



If you want to change the frequency of horde night - note that I have provided a 50 day challenge with hordes every 5 days, and a 70 day challenge with hordes every 7 - but if you want a different one you will need to make two changes, but in gameevents.xml:
Firstly, change all of the AddBuff Actions in <action_sequence name="IH_addHordeNightBuff">
Set the value of the "value" to be the days on which horde occurs (this has to match the game setting):
<action class="AddBuff">
<property name="phase" value="1"/>
<property name="buff_name" value="IH_HordeNightBuff"/>
<requirement class="CVar">
<property name="cvar" value="IH_DayNumberCvar"/>
<property name="operation" value="Equals" />
<property name="value" value="5" />  <!-- this value of 5, change to 6 if you want hordes every 6 days - but also change the next on to 12, then 18 etc -->
</requirement>
</action>

Then also change all of the ModifyCVar actions in <action_sequence name="IH_setHordeKillsRemaining">
<!-- 1st Horde, Day 5, 50 Zombies -->
<action class="ModifyCVar">
<property name="phase" value="1"/>
<property name="cvar" value="IH_hordeKillsRemaining"/>
<property name="operation" value="Set"/>
<property name="value" value="50"/>
<requirement class="CVar">
<property name="cvar" value="IH_DayNumberCvar"/>
<property name="operation" value="Equals" />
<property name="value" value="5" />  <!-- this value of 5, change to 6 if you want hordes every 6 days - but also change the next on to 12, then 18 etc -->
</requirement>
</action>


Lastly, if you want to change the number of hordes before the infinite horde ( to support say a 100 day challenge) you'll need to add in new actions in both the "IH_setHordeKillsRemaining" and "IH_addHordeNightBuff" action_sequence's.
Add the additional actions prior the the final one, taking care to adjust the phase value's to ensure they are sequential, and adjusting the requirement cvar values so that they trigger on the correct day.