Garry's Mod

Garry's Mod

Not enough ratings
DarkRP Zombie Infection
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
9.199 KB
2 Apr, 2020 @ 1:46am
2 Apr, 2020 @ 4:31am
6 Change Notes ( view )

Subscribe to download
DarkRP Zombie Infection

Description
Since everyone else is putting out infection scripts, I figured I'd release my own. I made this back during the halloween season for a ZombieRP server I did, and have found it useful in many other DarkRP-derived projects and plan to use in many more. Some minor adjustments to the config and you can have a Flood or Rakghoul event job too!

===========================================================

There's a heavily modifiable config included, but this is how it works stock:

- If a zombie or zombie-related npc kills you, you will respawn as the Zombie job where you died.

- If a zombie or zombie-related npc damages you, and you don't find a cure before you die, you will respawn as the Zombie job where you died.

- Any default weapons you have are stripped, and you're given NoTarget and fists.

- You can't damage the zombie npcs or other zombified players, but damage done to other players with said fists are multiplied by 10.

- If HungerMod is installed, you lose all of your hunger every hungerUpdate and gain hunger when you feed on players.

- If HungerMod is not installed, killing players only gives HP, however it intentionally does not cap at MaxHealth but rather a configured amount to make things more interesting.

- If you die as a zombie, you get switched back to TEAM_CITIZEN, but you can also just switch jobs. You can restrict both of these in the config as well.

===========================================================

Everything I just listed is configurable in drpzi_config.lua down to a microscopic level for your game developing pleasure, and I'm sure at some point I'll expand on this further in the future.

DarkRP and the NoTarget toolgun are obviously both requirements lol
8 Comments
Dank  [author] 27 Oct, 2024 @ 10:54pm 
It's recommended to upload and configure the lua files to your addons folder
Cure can be enabled for spawn menu in the entity file.
Lotton the Wizard 26 Oct, 2024 @ 10:48am 
It wont work in singleplayer or on my dedicated server. I get killed by zombies and still respawn as a citizen. Also, I can't get the cure entity to show up in the spawn menu, even though its enabled.
weran the whammer 19 Nov, 2023 @ 3:52pm 
dis an gammod
Dank  [author] 3 Jul, 2020 @ 6:11am 
I don't believe you :V
Walter White 2 Jul, 2020 @ 6:54pm 
i exist:steamhappy:
Walter White 2 Jul, 2020 @ 6:53pm 
hi:steamhappy:
Dank  [author] 22 Apr, 2020 @ 11:44pm 
It works just fine for me :P
$ерж 13 Apr, 2020 @ 1:43am 
Dont work