Garry's Mod

Garry's Mod

148 ratings
Z-City NPC Integration [BETA]
4
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Realism
File Size
Posted
Updated
102.171 KB
Jun 5 @ 12:35pm
Jun 7 @ 7:55am
6 Change Notes ( view )

Subscribe to download
Z-City NPC Integration [BETA]

Description
This addon entirely reworks the NPC integration of Z-City, making it more responsive, interactive, and enjoyable.

NPCs can now be ragdolled like players can, and will flail around on the ground. They can get back up, too!


It takes all elements of Z-City's health system into account, such as unconsciousness and pain.


NPCs are generally more vulnerable to damage to make them closer to players. No longer will Combine take rifle shots like champs.


Also, everything is configurable, so you can modify and disable features as you like to create your preferred experience. This addon also fixes bugs involving ai_ignoreplayers not working.

This plugin is open-source on my website.

Known Issues and Future Plans

I am unable to guarantee that I will continue working on this mod. However, I will put in a best-faith effort in supporting it. Some future features I'd like to include are:

  • Better player-NPC organism parity. Right now melees are a weak spot, which should be fixed. Also medical items.
  • Facial expressions
  • Better stumbling (more like Artagdoll)
  • ReaSFX integration
  • Localization would be nice, too

Some known issues:

  • Bandage and tourniquet models on ragdolls are not preserved if they get back up. I'm pretty sure this is a Z-City issue as the models don't even appear if you apply them to a standing NPC. I may try to fix this in the future.
  • The NPC unragdoll animation can bug out on occasion. I will probably fix this, just takes time is all.

This addon is still experimental, you should expect some bugs. Report issues in discussions.

Addon Compatibility

Known incompatible mods:
  • Better Keep Corpses is incompatible if you have the auto corpse remover enabled.
  • Lynch's NPC Essentials breaks the NPC health system entirely.

Other notes:
  • Don't use this mod in a singleplayer server. You must create a local multiplayer server (select 2 Players or more in the green dropdown). Z-City does not support singleplayer servers, so you shouldn't be doing this anyways.
  • Clamp-A-Force is highly recommended with this mod. Not a requirement (despite how I have it set on the Required items) but it makes things feel much nicer.
  • Most NPC mods that use the default ValveBiped skeleton should work fine with this mod. NPCs that are not vanilla HL2 NPC reskins must be manually whitelisted, however.
  • Euphoria ragdoll engine mods are entirely incompatible [Reagdoll, Artagdoll, Fedhoria]
  • Ragdoll/corpse cleanup mods are incompatible as they tend to remove NPCs that are still alive and just downed. This mod includes one for you to use in the Performance settings section.
  • I suspect some AI mods will be incompatible due to the nature of how downed NPC targeting works. I'll be confirming these issues as they come up.

REPORT BUGS: CLICK HERE[github.com]
Popular Discussions View All (2)
44
11 hours ago
PINNED: Report bugs here [READ POST]
creature
8
6 hours ago
combines and some other npcs don't have the ragdoll
Big Daddy Alfred
99 Comments
creature  [author]
2 hours ago 
@waffles, I based this addon off of an old euphoria ragdoll physics mod, and it simply just uses the ragdoll movement from that.
3 hours ago 
I have one question: why is it that when you ragdoll an NPC, they move like that?
creature  [author]
5 hours ago 
@BeeVee, the item dropping issue is definitely something I need to fix. I meant to before this was released and I just forgot.

The ZBase issue sounds like it might be a Z-City issue? I have other projects I plan on working on for the next little bit but once I'm able I'll definitely check that out.
6 hours ago 
That's what Z-City needed, much respect brah.
6 hours ago 
NPC's that drop items on death (Such as the combine police or rebel medics who drop bandages on death) will always drop an item each time they are knocked down. Combine also never pick their weapons back up but there's probably a mod out there to give them that functionality anyways.
Mod also completely ceases functionality whenever ZBase is enabled and causes all NPCs to instantly die whenever they would be knocked down or whenever they are just kicked. Which I believe ZBase is needed for the wave defense mode to work correctly (Atleast. It only ever seems to work whenever ZBase is enabled for me so)
Is there a way to make npcs not drop there own weapon on ragdoll?
8 hours ago 
oh @creature nvm i fixed it
creature  [author]
10 hours ago 
@maplecap like they aren't moving? They just die instantly? That shouldn't be happening if such and you should create a bug report.
11 hours ago 
uh @creature yeah sure sorry i was gone for a bit but i can make a collection