TheOriginalGolem / Hbm-s-Nuclear-Tech-GIT

My fork of the HBM's nuclear tech mod.
GNU General Public License v3.0
32 stars 17 forks source link

[Multiplayer] Crucible can hit spectators, spectators get radiation poisoning #55

Open Vetpetmon opened 1 year ago

Vetpetmon commented 1 year ago

The crucible hits players that are spectating through other players. Was a hilarious moment in my server, but still a logic error (meaning no log output). image Radiation is also applied to players in spectator mode.

Fix: Add a check to not apply a hit/damage to players in spectator. Also do the same with radiation system, have it treat spectators as creative players.

Other: Crucible attacks on players in creative not tested yet.

TheOriginalGolem commented 1 year ago

To add to this, schrabium revolvers also kill spectators

DNIWE041 commented 1 year ago

Crucible also can kill player in creative mode. But it's looks not bad because how we know crucible a weapon what can kill a God (Doom lore?).