0 of 0

File information

Last updated

Original upload

Created by

adverserath

Uploaded by

adverserath

Virus scan

Safe to use

About this mod

In Multiplayer mobs will not target, attack or hurt you while you have a menu open. Giving you the same experience as single player.

Permissions and credits
Donations
What problem am I solving?
In Single player when a player is trying to climb a ladder, tries to eat food, moves items in the inventory or checks a quest the entire games goes into a pause mode, so nothing moves and the player is protected.

In coop this only happens when all players have 'requestingTimePause' flagged, which creates a horrible imbalance when trying to move through mines. You need to move some food, a bomb, reload catapult, try to climb a ladder and get prompted if you want to climb...you are always vulnerable to being attacked. I've even died when trying to climb the ladder which meant I died at level 0.

What is this mod going to do?
This mod is doing 2 things:
1. When calling withinPlayerThreshold, players with requestingTimePause flagged are ignored to monsters. So they will not confront you while you are paused. But they will still move around the screen, because the clock isnt stopped.

2. Sets CanBeDamaged to false when requestingTimePause is flagged. So if you go into a menu while a mob is touching you, or if they cross through you then you dont get hurt.


I have also isolated the piece of code which would let a monster target your friend when you pause. BUT, I am not going to do anything with this yet. I think its more exploitable if I made the monsters move away from a player when they pause as a way of ditching agro on another player. Therefor, as long as the player is the closest to the mob, they will remain the main target.