Projects that alter game functions but do not include new maps belong here.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.
A mod where almost every item collected is shared among all players!
What does this mean? If you collect ammo (or pretty much anything else), all online (and live) players will get something from it shared as evenly as possible. For examples check "Calculation Examples".
I haven't seen such a mod yet and I thought it would be interesting to have something like that
Introduction:
Spoiler:
Don't you hate it too: You just wanna play a nice coop-game with your friends and then there's this one dude who isn't a teamplayer and steals all the ammunition and items and never shares?
Then this mod will solve your problems!
With this mod everyone can learn how to share, because Sharing is Caring!
Oh damn, let's face it: You just don't have a choice! If we could we'd even split up your weapons, but running around with a half BFG would only make it Big Fucking Hilarious, so we didn't do it - yet...
Every item collected - let it be ammo, health, armor, the backpack contents or even the real PowerUps or Artifacts - will be divided or shared among all players, if you want it or not! With this everybody gets something and no one leaves the level empty-handed! Finally a way to deal with all these selfish douches!
Or that kind of sharing isn't enough for you? Do you want to give the most to those who have the least?
Then try the Hardcore mode!
In this mode, every item will still be divided among the players, BUT those who have the least amount will be preferred! So, if you don't have any health left and that super-selfish dude wants to steal the Megasphere from you, then you'll get most of it! Ain't that great!
Added Settings:
Options Menu -> Sharing is Caring Options
1. Hardcore Mode: sv_SiC_Hardcore, Enabled by default; Players with lower amounts will be prioritized.
2. Always share Weapons: sv_SiC_AlwaysWeaponShare, Disabled by default; Enforces weapon sharing, even though sv_weaponstay is enabled.
3. Share Keys: sv_SiC_ShareKeys, Disabled by default; If enabled all players will receive the key upon pickup.
4. Share Artifacts/PowerUps: sv_SiC_ShareArtifacts, Enabled by default; Distributes artifacts or PowerUps evenly among all players.
Supported Games: Doom, Heretic & Hexen (partially - see "Limitations")
Requirements:
ZDoom Development versions
GZDoom 2.0.05 / 1.8.10 or later
The current stable ZDoom 2.7.1 does not support it, due to certain ACS commands and the "WEAPONSPAWN" flag which prevents custom actors from spawning in Coop-Mode when "Spawn Multiplayer Weapons in Coop" is disabled.
Mod Compatibility
Due to the way I had to write this Mod it is probably NOT compatible with other mods, unless I add support for it.
Planned Compatibility: Brutal Doom
Changelog
Spoiler:
v1.0 - Initial Release
v1.01 - Fixed a bug that caused dead players to get everything in Hardcore.
Fixed a bug with the small Mace Ammo, which was giving Phoenix Rod ammo instead.
FAQ:
Spoiler:
1. If you collect a weapon, backpack or an artifact, will all players get them as well?
- No, only the one who picks it up will initially get the item, however, if you already own the item, the next player will receive it instead and so on. For weapons this behaviour is disabled by default if sv_weaponstay is active and vice versa, although there is a setting which always enforces weapon sharing, even if sv_weaponstay is enabled.
2. If the amount the item gives is not divisible between the players (e.g. 4 Shotgun shells but 5 players), what will happen?
- The player who picked it up will get 1 shell and the 3 other shells are distributed randomly among the other players.
3. Can you collect an item, even if you cannot carry more of it?
- If all players are full, the item will not be picked up, however if at least 1 player can carry more, it will be picked up and only shared among those players that can actually use it.
4. If an item is collected and it gives more than you need, will other players get more?
- Yes, the other players will get the share that you don't need.
5. What happens if something is collected while I am dead?
- You're dead; You don't need it. But rejoice: Your share will be split up among the other live players.
6. If I use a Quartz Flask or similar, will that be shared as well?
- Yes, healing or mana-giving artifacts have the same rules as any other item. They will be shared.
Calculation Examples
Spoiler:
Without Hardcore
- Player 1 - 95 Health, Player 2 - 60 Health; Player 1 collects a Medikit
{ Player 1 gets 13 health, can only use 5 of it to get to 100, so Player 2 gets 20 health, going to 80 }
- Player 1 - 55 Health, Player 2 - 25 Health; Player 1 collects a Medikit
{ Player 1 gets 13 health, will go to 68, Player 2 gets 12 health, going to 37 }
With Hardcore
- Player 1 - 75 Health, Player 2 - 60 Health; Player 1 collects a Medikit
{ Player 2 will get 20 health, going to 80, Player 1 will get 5 health, going to 80 as well}
- Player 1 - 75 Health, Player 2 - 25 Health; Player 1 collects a Medikit
{ Player 1 will get nothing, Player 2 will get all 25 Health, going to 50 }
Limitations
1. High significance: Hexen weapon pieces currently not sharable due to internal native handling; WiP, even though it will take some time.
2. High significance: Hexen Armor not sharable, due to the internal native handling; fix is very unlikely
3. Medium significance: Auto-Heal for certain difficulties with artifacts not possible; fix is very unlikely
4. No significance: "Medikit that you REALLY needed"-message not working; Will not be fixed
If you want a certain mod compatibility or any other features, feel free to ask. But I cannot promise that I will implement it, but I will definitely consider it. My main priority is to fix any leftover Bugs for now that I may have accidently included
Last edited by XxMiltenXx on Sat Sep 19, 2015 2:05 pm, edited 7 times in total.
Hey, awesome! I've often wondered why ZDoom didn't do something similar natively (i.e. Serious Sam-style instanced pickups), but this might work just as well!
wildweasel wrote:Hey, awesome! I've often wondered why ZDoom didn't do something similar natively (i.e. Serious Sam-style instanced pickups), but this might work just as well!
I don't know, maybe because it is difficult to implement? If you ever give it a try, tell me what you think about it.
Also, v1.01 is out. A small updated, just fixing some bugs:
- Fixed a bug that caused dead players to get everything in Hardcore.
- Fixed a bug with the small Mace Ammo, which was giving Phoenix Rod ammo instead.