Jump to content

headshot weapon list

Closed 2.1.6

suicidemayhem

Posted (edited)

hi, i've curently got my setup like this

      "Instant_Death_From_Headshot_Allowed_Weapons": [
        "bow.hunting.entity",
        "bow.hunting",
        "crossbow",
        "crossbow.entity",
        "rifle.bolt",
        "rifle.bolt.entity",
        "rifle.l96",
        "rifle.l96.entity"
      ]

but bows don't seem to work. they are listed multiple times because it's not super clear how they are supposed to listed, i couldn't find any items with .entity on the end on this page - https://www.corrosionhour.com/rust-item-list/

anyway, my question is how can i set a wildcard? i've tried "*" and "*.entity", but neither seem to work. want it to headshot only will kill them. thanks.

Edited by suicidemayhem
  • Administrator
Steenamaroo

Posted

Hi,

It's the short prefab name so what you're looking for is bow_hunting.entity, bolt_rifle.entity, and l96.entity.

suicidemayhem

Posted (edited)

with underscore instead of period?

the description page says 

["lr300.entity"], for single or [ "lr300.entity", "m92.entity" ], for many.

is there a wildcard or way to add each without typing each weapon out?

thanks.

Edited by suicidemayhem
more info
  • Administrator
Steenamaroo

Posted

If you want it to work for all weapons just leave the list blank.

suicidemayhem

Posted

that didn't seem to work unfortunatley. i tried it these two ways.

      "Die_Instantly_From_Headshot": true,
      "Instant_Death_From_Headshot_Allowed_Weapons": [
          ""
      ],

and

      "Die_Instantly_From_Headshot": true,
      "Instant_Death_From_Headshot_Allowed_Weapons": [],

no bueno.

  • Administrator
Steenamaroo

Posted

Ah, ok. That's meant to work.
There's an update due soon - It'll be fixed in that.

In the meantime, use this.

BotSpawn.cs

  • Administrator
Steenamaroo

Posted

No worries.
Thanks for flagging it.

  • Administrator
Steenamaroo

Posted

Changed Status from Pending to Closed

0

Downloads

Total number of downloads.

0

Customers

Total customers served.

0

Files Sold

Total number of files sold.

0

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.