Jump to content

NPC not triggering broken legs or concussion?

Not a Bug 1.3.1

Beaverthelieber

Posted

The NPCs on our server are not giving players broken legs or concussions. How do I enable that?

Mr01sam

Posted (edited)

In order to give a player a concussion the NPC needs to target the player's head, and the AI in rust naturally doesn't do that. Similarly with the broken leg, the NPCs don't target legs, they aim for center mass.

The best I could do to fix this is make it so there is just a random chance they inflict these things when they damage you, but it wont be because they actually hit those areas. The issue with that is that a player could have their head completely behind cover and could still end up with a concussion, same thing with the legs. I could add this, but it might confuse/frustrate players.

EDIT: I think you can actually configure it to do this if you want. Try adding the entity shortname of the NPC to the infliction entities list in the config for brokenleg and concussion and give it a high value (just for testing) like 1.0. You can further set the Infliction Damage Action to "ranged" so that only guns will cause the effects.
 

"Infliction Entities": {
  "shortname of the npc here": 1.0,
},
"Infliction Damage Action": "ranged",

The short name of the NPC depends on what plugin added it.

Edited by Mr01sam
Mr01sam

Posted

Changed Status from Pending to Not a Bug

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.