Jump to content

Torch for the night

Pending 1.0.3

ToliburtiX
ToliburtiX

Posted

Hello,

I know how to attach a weapon-light. But how to give a torch to the NPC it uses while walking at night?

 

Greetings,

Toli

 

walkinrey

Posted

there is supposed to be an attachments section for each item in the config where you add these lights

can i see your config?

ToliburtiX

Posted

Here we go:

 

{
  "Bots settings": {
    "outbreak_street_scientist": {
      "Enable bot?": true,
      "How many of these bots can be spawned?": 5,
      "Bot appearance (used if bot's amount - 1, use the id in the range of the specified number of digits for the bot ID generator or leave 0 for random appearance)": 0,
      "Bot name (leave empty for random)": "",
      "Use random names from data file? (/data/RoamingNPCs/RandomNicknames, or Rust's random names will be used)": true,
      "Allow wounded state?": true,
      "Respawn timer (min 3 seconds)": 30.0,
      "Enable periodic bot reinitialization? (can improve performance)": true,
      "What respawn mode to use (RandomPoint/RoadPoint/SpawnPoint/SpawnsDatabase)": "RandomPoint",
      "What roads use to spawn (DefaultRoads/MainRoads/SideRoads/TrailRoads/Rails)": "DefaultRoads",
      "Spawn points filename (for SpawnsDatabase respawn mode)": "Transylvania_ver17-20261001-01-release-random",
      "Maximum health": 100.0,
      "What spawns on death (PlayerCorpse/NpcCorpse/Backpack)": "NpcCorpse",
      "Keep clothes on NpcCorpse?": true,
      "How many items will be destroyed when Backpack is selected (0 - 100%)": 0.0,
      "List of items that won't drop on death": [],
      "Bot behaviour (Aggressive/Friendly/Defensive)": "Defensive",
      "Enable random bot behaviour?": false,
      "Controller setup": {
        "Find entities radius": 20.0,
        "Movement speed (1 - 4)": 3,
        "Damage rate from water": 0.1,
        "Damage rate to NPC targets": 2.0,
        "Damage rate to animals": 2.0,
        "Damage rate to players": 0.8,
        "Damage rate from NPCs": 1.0,
        "Damage rate from animals": 0.5,
        "Damage rate from players": 1.0,
        "Allow vanilla NPCs and animals to attack the bot?": true,
        "Always avoid safe zones?": false
      },
      "Wear items (on respawn)": {
        "Lock container? (true - after death loot won't drop)": true,
        "Allow bot to wear found clothes?": false,
        "List of items": [
          {
            "Item shortname or ID": "oubreak_scientist",
            "Item name (leave empty for default)": null,
            "Item skin": 0,
            "Enable chance of drop on death?": false,
            "Chance of drop on death (0-100)": 0,
            "Attachments": []
          }
        ]
      },
      "Allow dropping items on belt when dead?": false,
      "Resource collection": {
        "Allow to gather wood?": false,
        "Allow to use fuel for chainsaw?": false,
        "Allow to mine ore?": false,
        "Allow to loot barrels?": true,
        "Allow to loot road signs?": false,
        "Allow to pickup resources?": false,
        "Allow to pickup dropped items?": true,
        "Allow to loot containers?": true,
        "Allow to loot corpses?": true,
        "Allow to harvest corpses?": true,
        "List of prefabs of corpses to harvest": [
          "assets/rust.ai/agents/boar/boar.corpse.prefab",
          "stag.corpse",
          "wolf.corpse",
          "crocodile.corpse",
          "panther.corpse",
          "tiger.corpse",
          "chicken.corpse"
        ],
        "List of prefabs blocked for mining": [
          "assets/bundled/prefabs/autospawn/resource/vine_swinging/vineswingingtree03.prefab",
          "assets/bundled/prefabs/autospawn/resource/vine_swinging/vineswingingtreeprefab.prefab",
          "assets/bundled/prefabs/autospawn/resource/vine_swinging/vineswingingtree02.prefab"
        ],
        "Limits on the amount of gathered items": {
          "wood": 750,
          "stones": 500,
          "metal.ore": 300,
          "sulfur.ore": 200,
          "chainsaw": 0,
          "jackhammer": 0,
          "cctv.camera": 0,
          "sheetmetal": 1,
          "targeting.computer": 0,
          "scrap": 20,
          "fuse": 1,
          "gears": 2,
          "metalblade": 1,
          "metalspring": 1,
          "tarp": 1,
          "fat.animal": 20,
          "bearmeat": 0,
          "lowgradefuel": 20,
          "crude.oil": 7,
          "sewingkit": 3,
          "semibody": 1,
          "advancedblueprintfragment": 0,
          "basicblueprintfragment": 0,
          "cloth": 30,
          "leather": 20,
          "metalpipe": 2
        }
      },
      "Fights with NPCs and players": {
        "After how many seconds forget the target if bot couldn't reach it?": 20.0,
        "How many seconds to ignore a target abandoned by timeout (not less than 1)": 35.0,
        "Chance of crouching during fight to dodge": 50.0,
        "Ignore bots in vehicles? (TrafficDrivers, BikeDrivers, HeliPilots and etc.)": false,
        "Ignore real players?": false,
        "(WarMode plugin) Ignore player if they are in PVE mode?": false,
        "Ignore sleeping players?": true,
        "Ignore other RNPC bots?": true,
        "Ignore other NPCs?": true,
        "Ignore couriers (CourierNPCs)?": false,
        "Maximum distance for attack from weapon (not less than 5)": 30.0,
        "Maximum distance for attack from melee (not less than 2)": 2.0
      },
      "Animal hunting": {
        "Allow to hunt? (true - will attack animals even if they are not attacking)": false,
        "Make melee weapons preferred for hunting?": true,
        "Hunt players' livestock (bought, bred, tamed)?": false,
        "List of prefabs of animals to block hunting them": [
          "bear.prefab",
          "polarbear.prefab"
        ]
      },
      "Inventory overflow": {
        "Stash setup (bot will put items in the stash)": {
          "Enable?": false,
          "Hide stash?": false,
          "Life time (0 - will exist until restart)": 600.0,
          "Maximum amount to use (0 - without limit)": 5
        },
        "Box setup (bot will put items in the box)": {
          "Put lock on box?": false,
          "Enable?": true,
          "Use small box?": true,
          "Box skin": 3388570301,
          "Life time (0 - will exist until restart or until it dies)": 600.0,
          "Maximum amount to use (0 - without limit)": 2,
          "Another container prefab (you can leave it empty)": ""
        }
      },
      "Monuments visit setup": {
        "Amount of random positions to visit on monument": 5,
        "Share of positions on the monument navmesh, including inside buildings (0-1; works when the monument navmesh is built)": 0.5,
        "Suicide timer if the bot gets stuck in this state (0 - disables the timer)": 120.0,
        "List of monument prefabs blocked for visiting": [
          "assets/bundled/prefabs/autospawn/monument/lighthouse/lighthouse.prefab",
          "assets/bundled/prefabs/autospawn/monument/large/airfield_1.prefab"
        ]
      },
      "Loot on spawn": [],
      "Items for ore mining": {
        "Enable random order instead of priority?": false,
        "List of items (in priority order)": []
      },
      "Items for tree gathering": {
        "Enable random order instead of priority?": false,
        "List of items (in priority order)": []
      },
      "Items for fights": {
        "Enable random order instead of priority?": false,
        "Use ammo?": false,
        "List of items (in priority order)": [
          {
            "Allow to give item when respawning?": true,
            "Item": {
              "Item shortname or ID": "pistol.semiauto",
              "Item name (leave empty for default)": null,
              "Item skin": 2897915139,
              "Enable chance of drop on death?": false,
              "Chance of drop on death (0-100)": 0,
              "Attachments": [
                {
                  "Item shortname or ID": "weapon.mod.holosight",
                  "Item skin": 0
                }
              ]
            },
            "Ammo shortname for weapon (leave empty to keep default)": ""
          },
          {
            "Allow to give item when respawning?": true,
            "Item": {
              "Item shortname or ID": "bow.hunting",
              "Item name (leave empty for default)": null,
              "Item skin": 0,
              "Enable chance of drop on death?": false,
              "Chance of drop on death (0-100)": 0,
              "Attachments": []
            },
            "Ammo shortname for weapon (leave empty to keep default)": ""
          }
        ],
        "Amount of ammo to give for weapon if respawning is allowed": 300
      },
      "Items for harvesting animals": {
        "Enable random order instead of priority?": false,
        "List of items (in priority order)": [
          {
            "Allow to give item when respawning?": true,
            "Item": {
              "Item shortname or ID": "knife.bone",
              "Item name (leave empty for default)": null,
              "Item skin": 0,
              "Enable chance of drop on death?": false,
              "Chance of drop on death (0-100)": 0,
              "Attachments": []
            }
          }
        ]
      },
      "Items for healing": {
        "Enable random order instead of priority?": false,
        "List of items (in priority order)": [
          {
            "Allow to give item when respawning?": true,
            "Item": {
              "Item shortname or ID": "syringe.medical",
              "Item name (leave empty for default)": null,
              "Item skin": 0,
              "Enable chance of drop on death?": false,
              "Chance of drop on death (0-100)": 0,
              "Attachments": []
            },
            "Amount of items to give when respawning": 2
          },
          {
            "Allow to give item when respawning?": true,
            "Item": {
              "Item shortname or ID": "bandage",
              "Item name (leave empty for default)": null,
              "Item skin": 0,
              "Enable chance of drop on death?": false,
              "Chance of drop on death (0-100)": 0,
              "Attachments": []
            },
            "Amount of items to give when respawning": 10
          }
        ]
      },
      "Voice phrases for different actions (you can download default voice phraes from plugin page)": {
        "Use voice phrases?": false,
        "Phrases for the Miner state": {
          "Phrases when picking up resources": {
            "Phrases": null,
            "Chance of using phrases (% 0 - 100)": 0.0
          },
          "Phrases when picking up items": {
            "Phrases": null,
            "Chance of using phrases (% 0 - 100)": 0.0
          },
          "Phrases when gathering trees": {
            "Phrases": null,
            "Chance of using phrases (% 0 - 100)": 0.0
          },
          "Phrases when mining ore": {
            "Phrases": null,
            "Chance of using phrases (% 0 - 100)": 0.0
          },
          "Phrases when looting containers": {
            "Phrases": null,
            "Chance of using phrases (% 0 - 100)": 0.0
          },
          "Phrases when breaking containers (barrels, signs and etc.)": {
            "Phrases": null,
            "Chance of using phrases (% 0 - 100)": 0.0
          },
          "Phrases when looting corpses": {
            "Phrases": null,
            "Chance of using phrases (% 0 - 100)": 0.0
          },
          "Phrases when harvesting corpses": {
            "Phrases": null,
            "Chance of using phrases (% 0 - 100)": 0.0
          }
        },
        "Phrases for the Hunter state": {
          "Phrases before starting to attack": {
            "Phrases": null,
            "Chance of using phrases (% 0 - 100)": 0.0
          }
        },
        "Phrases for the Fight state": {
          "Phrases before starting to attack": {
            "Phrases": null,
            "Chance of using phrases (% 0 - 100)": 0.0
          },
          "Phrases when the bot does not see the target": {
            "Phrases": null,
            "Chance of using phrases (% 0 - 100)": 0.0
          },
          "Phrases when the bot runs away from the attacker": {
            "Phrases": null,
            "Chance of using phrases (% 0 - 100)": 0.0
          }
        },
        "Phrases for the Researcher state": {
          "Phrases before starting to move to the monument point": {
            "Phrases": null,
            "Chance of using phrases (% 0 - 100)": 0.0
          },
          "Phrases when reaching the destination": {
            "Phrases": null,
            "Chance of using phrases (% 0 - 100)": 0.0
          }
        },
        "Phrases when creating a container with resources": {
          "Phrases": null,
          "Chance of using phrases (% 0 - 100)": 0.0
        },
        "Phrases when healing": {
          "Phrases": null,
          "Chance of using phrases (% 0 - 100)": 0.0
        }
      }
    }
  }
}

 

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
3.3m
Total downloads
Customers
12.4k
Customers served
Files Sold
175.5k
Total sales
Payments
3.8m
Processed total
×
×
  • 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.