Jump to content

customize npc

Closed 1.1.2

Tobbey
tofurahie

Posted

Just now, Tobbey said:

how do i customize the npc?

You can change the prefab, weapon and armor for npc in the config file

Tobbey

Posted

Can you send an example?

 

"Prefab of NPC": "assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_full_lr300.prefab",
      "Weapon [shortname]": null,
      "List of armor for NPC": [
        "hazmatsuit"
      ],
      "Prefab of Horse": "assets/rust.ai/nextai/testridablehorse.prefab",
      "Horse armor": "horse.armor.roadsign",
      "Scan radius for Rider(Find player)": 100
    }

tofurahie

Posted

12 hours ago, Tobbey said:

Can you send an example?

 

"Prefab of NPC": "assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_full_lr300.prefab",
      "Weapon [shortname]": null,
      "List of armor for NPC": [
        "hazmatsuit"
      ],
      "Prefab of Horse": "assets/rust.ai/nextai/testridablehorse.prefab",
      "Horse armor": "horse.armor.roadsign",
      "Scan radius for Rider(Find player)": 100
    }

Isn't it already an exmaple?

Tobbey

Posted

can you send another example how i can change it and can i modify loot on them?

tofurahie

Posted

23 hours ago, Tobbey said:

can you send another example how i can change it and can i modify loot on them?


I hope it will help

"Prefab of NPC": "assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_cargo.prefab",
      "Weapon [shortname]": "lmg.m249",
      "List of armor for NPC": [
        "heavy.plate.helmet",
         "heavy.plate.jacket",
           "heavy.plate.pants"
      ],
      "Prefab of Horse": "assets/rust.ai/nextai/testridablehorse.prefab",
      "Horse armor": "horse.armor.roadsign",
      "Scan radius for Rider(Find player)": 100
    }

 

tofurahie

Posted

Changed Status from Pending to Closed

Tobbey

Posted

How do i write in the config for more than one preset of riders?

tofurahie

Posted

7 hours ago, Tobbey said:

How do i write in the config for more than one preset of riders?

{
  "Bonus damage to NPCs on horseback": 6.0,
  "Maximum Riders population": 10,
  "Kill horse after NPC death": true,
  "Rider types": [
    {
      "Prefab of NPC": "assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_full_lr300.prefab",
      "Weapon [shortname]": null,
      "List of armor for NPC": [
        "hazmatsuit"
      ],
      "Prefab of Horse": "assets/rust.ai/nextai/testridablehorse.prefab",
      "Horse armor": "horse.armor.roadsign",
      "Scan radius for Rider(Find player)": 100
    },
     {
      "Prefab of NPC": "assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_full_lr300.prefab",
      "Weapon [shortname]": null,
      "List of armor for NPC": [
        "hazmatsuit"
      ],
      "Prefab of Horse": "assets/rust.ai/nextai/testridablehorse.prefab",
      "Horse armor": "horse.armor.roadsign",
      "Scan radius for Rider(Find player)": 100
    },
  ]
}

it will be look like this, (use json validation to check if you make it correct)  - like this one https://www.online-json.com/json-viewer

Tobbey

Posted

You should add so that you can change skinid on the riders

tofurahie

Posted

1 hour ago, Tobbey said:

You should add so that you can change skinid on the riders

skinID of what?

Tobbey

Posted

Skins to the riders armour, skinid

  • Like 1
tofurahie

Posted

29 minutes ago, Tobbey said:

Skins to the riders armour, skinid

ohh it makes sense, i will add it right now

Tobbey

Posted

How do i type it in config like a coffecan helmet with a skiniid

Tobbey

Posted

{
  "Bonus damage to NPCs on horseback": 12.0,
  "Maximum Riders population": 15,
  "Kill horse after NPC death": true,
  "NPC Rider won't attack player untill he get hit from player": false,
  "Rider types": [
    {
      "Prefab of NPC": "assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_full_pistol.prefab",
      "Weapon [shortname]": null,
      "List of armor for NPC": [
        "coffeecan.helmet",
        "burlap.gloves",
        "hoodie",
        "roadsign.jacket",
        "pants",
        "roadsign.kilt",
        "attire.hide.boots"
      ],
      "Prefab of Horse": "assets/rust.ai/nextai/testridablehorse.prefab",
      "Horse armor": "horse.armor.roadsign",
      "Scan radius for Rider(Find player)": 100
    },
    {
      "Prefab of NPC": "assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_full_mp5.prefab",
      "Weapon [shortname]": null,
      "List of armor for NPC": [
        "hazmatsuit_scientist"
      ],
      "Prefab of Horse": "assets/rust.ai/nextai/testridablehorse.prefab",
      "Horse armor": "horse.armor.roadsign",
      "Scan radius for Rider(Find player)": 100
    },
    {
      "Prefab of NPC": "assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_full_lr300.prefab",
      "Weapon [shortname]": null,
      "List of armor for NPC": [
        "hazmatsuit_scientist"
      ],
      "Prefab of Horse": "assets/rust.ai/nextai/testridablehorse.prefab",
      "Horse armor": "horse.armor.roadsign",
      "Scan radius for Rider(Find player)": 100
    }
  ]
}

Tobbey

Posted

Just now, Tobbey said:

{
  "Bonus damage to NPCs on horseback": 12.0,
  "Maximum Riders population": 15,
  "Kill horse after NPC death": true,
  "NPC Rider won't attack player untill he get hit from player": false,
  "Rider types": [
    {
      "Prefab of NPC": "assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_full_pistol.prefab",
      "Weapon [shortname]": null,
      "List of armor for NPC": [
        "coffeecan.helmet",
        "burlap.gloves",
        "hoodie",
        "roadsign.jacket",
        "pants",
        "roadsign.kilt",
        "attire.hide.boots"
      ],
      "Prefab of Horse": "assets/rust.ai/nextai/testridablehorse.prefab",
      "Horse armor": "horse.armor.roadsign",
      "Scan radius for Rider(Find player)": 100
    },
    {
      "Prefab of NPC": "assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_full_mp5.prefab",
      "Weapon [shortname]": null,
      "List of armor for NPC": [
        "hazmatsuit_scientist"
      ],
      "Prefab of Horse": "assets/rust.ai/nextai/testridablehorse.prefab",
      "Horse armor": "horse.armor.roadsign",
      "Scan radius for Rider(Find player)": 100
    },
    {
      "Prefab of NPC": "assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_full_lr300.prefab",
      "Weapon [shortname]": null,
      "List of armor for NPC": [
        "hazmatsuit_scientist"
      ],
      "Prefab of Horse": "assets/rust.ai/nextai/testridablehorse.prefab",
      "Horse armor": "horse.armor.roadsign",
      "Scan radius for Rider(Find player)": 100
    }
  ]
}

My old config

 

tofurahie

Posted

10 hours ago, Tobbey said:

{
  "Bonus damage to NPCs on horseback": 12.0,
  "Maximum Riders population": 15,
  "Kill horse after NPC death": true,
  "NPC Rider won't attack player untill he get hit from player": false,
  "Rider types": [
    {
      "Prefab of NPC": "assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_full_pistol.prefab",
      "Weapon [shortname]": null,
      "List of armor for NPC": [
        "coffeecan.helmet",
        "burlap.gloves",
        "hoodie",
        "roadsign.jacket",
        "pants",
        "roadsign.kilt",
        "attire.hide.boots"
      ],
      "Prefab of Horse": "assets/rust.ai/nextai/testridablehorse.prefab",
      "Horse armor": "horse.armor.roadsign",
      "Scan radius for Rider(Find player)": 100
    },
    {
      "Prefab of NPC": "assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_full_mp5.prefab",
      "Weapon [shortname]": null,
      "List of armor for NPC": [
        "hazmatsuit_scientist"
      ],
      "Prefab of Horse": "assets/rust.ai/nextai/testridablehorse.prefab",
      "Horse armor": "horse.armor.roadsign",
      "Scan radius for Rider(Find player)": 100
    },
    {
      "Prefab of NPC": "assets/rust.ai/agents/npcplayer/humannpc/scientist/scientistnpc_full_lr300.prefab",
      "Weapon [shortname]": null,
      "List of armor for NPC": [
        "hazmatsuit_scientist"
      ],
      "Prefab of Horse": "assets/rust.ai/nextai/testridablehorse.prefab",
      "Horse armor": "horse.armor.roadsign",
      "Scan radius for Rider(Find player)": 100
    }
  ]
}

["coffeecan.helmet"] = 912399, like this in the new cloth dictionary 

Tobbey

Posted

9 hours ago, tofurahie said:

["coffeecan.helmet"] = 912399, like this in the new cloth dictionary 

If it is divided into lines? Like

"burlap.gloves",
        "hoodie"

tofurahie

Posted

17 minutes ago, Tobbey said:

If it is divided into lines? Like

"burlap.gloves",
        "hoodie"

it  will be like this
      "List of armor for NPC [shortname - skinID]": {
        "hoodie": 120,
        "burlap.gloves": 130,
      },

Tobbey

Posted

120 130 stands for skinID?

tofurahie

Posted

9 minutes ago, Tobbey said:

120 130 stands for skinID?

no, it's just an example 

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

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.