Depends on
Required for this file to work correctly.
About RNPCs Vehicles Addon
This addon for RoamingNPCs lets bots travel on vehicles. A bot heading to a monument does not walk the whole way: it takes a free vehicle nearby or spawns its own, drives there, dismounts and carries on with its usual roaming life.
Travel
- At set intervals a bot heading to a monument rolls the chance of each vehicle type.
- It takes the nearest free vehicle, otherwise spawns its own.
- If the drivable way ends far from the monument, the bot drives to its end and walks on.
Vehicles
- Modular cars, motorbikes and bicycles, snowmobiles, horses and helicopters.
- Snowmobiles stay on snow and keep off roads.
Fuel and Engine
- Fuel can be required, or the addon adds it for the trip and takes the rest back.
- Cars without engine parts can be used - the parts are installed for the trip and removed after.
Customization
- Chance per vehicle type, own vehicle prefabs, search radius, minimum trip distance, cooldowns after a trip.
- Speed limit, headlights at night or always, damage to players run over.
Commands (permission npcscontroller.admin)
- /rnpc veh status - bots, trips, own vehicles, counters
- /rnpc veh cancel <bot> - cancel the trip
- /rnpc veh targets <bot> - the bot monument, the distance and whether a trip there is possible
- /rnpc veh why <bot> - why the bot does not travel
Requirements
- Newest version of RoamingNPCs plugin
Video Demo:
Configuration:
{ "Vehicle bot settings (key = preset name from RoamingNPCs config)": { "bob_resources_farmer": { "Can these bots travel by vehicle?": true, "Vehicle types": { "Modular cars": { "Use this type of vehicle?": true, "Chance to travel on this vehicle at each decision": 30.0, "Prefabs of own vehicles (empty - do not spawn own)": [ "assets/content/vehicles/modularcar/2module_car_spawned.entity.prefab", "assets/content/vehicles/modularcar/3module_car_spawned.entity.prefab" ] }, "Motorbikes and bicycles": { "Use this type of vehicle?": true, "Chance to travel on this vehicle at each decision": 30.0, "Prefabs of own vehicles (empty - do not spawn own)": [ "assets/content/vehicles/bikes/motorbike.prefab" ] }, "Snowmobiles": { "Use this type of vehicle?": true, "Chance to travel on this vehicle at each decision": 30.0, "Prefabs of own vehicles (empty - do not spawn own)": [], "Drive only on snow, avoiding roads?": true }, "Horses": { "Use this type of vehicle?": true, "Chance to travel on this vehicle at each decision": 30.0, "Prefabs of own vehicles (empty - do not spawn own)": [ "assets/content/vehicles/horse/ridablehorse.prefab" ] }, "Helicopters": { "Use this type of vehicle?": false, "Chance to travel on this vehicle at each decision": 30.0, "Prefabs of own vehicles (empty - do not spawn own)": [ "assets/content/vehicles/minicopter/minicopter.entity.prefab" ] } }, "Vehicles": { "Vehicle search radius around the bot": 100.0, "Use free vehicles found nearby?": true, "Spawn own vehicle when none is found nearby?": true, "Road search radius for own vehicles (the bot walks to it)": 300.0, "Do vehicles need fuel? (no - the addon adds fuel for the trip and takes the rest back after)": false, "Use cars without engine parts? (parts are installed for the trip)": true, "How many fuel put into vehicle": 100, "After how many seconds despawn own vehicle": 300.0, "Allow damage when bot running over players?": true, "Turn on headlights during trips?": true, "Headlights only at night?": true }, "Trips": { "How often the bot decides to drive": 60.0, "Minimum trip distance": 300.0, "Maximum trip duration": 600.0, "Cooldown after a trip": 300.0, "Cooldown after a failed trip": 120.0, "Speed limit (0 - no limit)": 0.0 } }, "john_looter": { "Can these bots travel by vehicle?": true, "Vehicle types": { "Modular cars": { "Use this type of vehicle?": true, "Chance to travel on this vehicle at each decision": 30.0, "Prefabs of own vehicles (empty - do not spawn own)": [ "assets/content/vehicles/modularcar/2module_car_spawned.entity.prefab", "assets/content/vehicles/modularcar/3module_car_spawned.entity.prefab" ] }, "Motorbikes and bicycles": { "Use this type of vehicle?": true, "Chance to travel on this vehicle at each decision": 30.0, "Prefabs of own vehicles (empty - do not spawn own)": [ "assets/content/vehicles/bikes/motorbike.prefab" ] }, "Snowmobiles": { "Use this type of vehicle?": true, "Chance to travel on this vehicle at each decision": 30.0, "Prefabs of own vehicles (empty - do not spawn own)": [], "Drive only on snow, avoiding roads?": true }, "Horses": { "Use this type of vehicle?": true, "Chance to travel on this vehicle at each decision": 30.0, "Prefabs of own vehicles (empty - do not spawn own)": [ "assets/content/vehicles/horse/ridablehorse.prefab" ] }, "Helicopters": { "Use this type of vehicle?": false, "Chance to travel on this vehicle at each decision": 30.0, "Prefabs of own vehicles (empty - do not spawn own)": [ "assets/content/vehicles/minicopter/minicopter.entity.prefab" ] } }, "Vehicles": { "Vehicle search radius around the bot": 100.0, "Use free vehicles found nearby?": true, "Spawn own vehicle when none is found nearby?": true, "Road search radius for own vehicles (the bot walks to it)": 300.0, "Do vehicles need fuel? (no - the addon adds fuel for the trip and takes the rest back after)": false, "Use cars without engine parts? (parts are installed for the trip)": true, "How many fuel put into vehicle": 100, "After how many seconds despawn own vehicle": 300.0, "Allow damage when bot running over players?": true, "Turn on headlights during trips?": true, "Headlights only at night?": true }, "Trips": { "How often the bot decides to drive": 60.0, "Minimum trip distance": 300.0, "Maximum trip duration": 600.0, "Cooldown after a trip": 300.0, "Cooldown after a failed trip": 120.0, "Speed limit (0 - no limit)": 0.0 } }, "alfred_hunter": { "Can these bots travel by vehicle?": true, "Vehicle types": { "Modular cars": { "Use this type of vehicle?": true, "Chance to travel on this vehicle at each decision": 30.0, "Prefabs of own vehicles (empty - do not spawn own)": [ "assets/content/vehicles/modularcar/2module_car_spawned.entity.prefab", "assets/content/vehicles/modularcar/3module_car_spawned.entity.prefab" ] }, "Motorbikes and bicycles": { "Use this type of vehicle?": true, "Chance to travel on this vehicle at each decision": 30.0, "Prefabs of own vehicles (empty - do not spawn own)": [ "assets/content/vehicles/bikes/motorbike.prefab" ] }, "Snowmobiles": { "Use this type of vehicle?": true, "Chance to travel on this vehicle at each decision": 30.0, "Prefabs of own vehicles (empty - do not spawn own)": [], "Drive only on snow, avoiding roads?": true }, "Horses": { "Use this type of vehicle?": true, "Chance to travel on this vehicle at each decision": 30.0, "Prefabs of own vehicles (empty - do not spawn own)": [ "assets/content/vehicles/horse/ridablehorse.prefab" ] }, "Helicopters": { "Use this type of vehicle?": false, "Chance to travel on this vehicle at each decision": 30.0, "Prefabs of own vehicles (empty - do not spawn own)": [ "assets/content/vehicles/minicopter/minicopter.entity.prefab" ] } }, "Vehicles": { "Vehicle search radius around the bot": 100.0, "Use free vehicles found nearby?": true, "Spawn own vehicle when none is found nearby?": true, "Road search radius for own vehicles (the bot walks to it)": 300.0, "Do vehicles need fuel? (no - the addon adds fuel for the trip and takes the rest back after)": false, "Use cars without engine parts? (parts are installed for the trip)": true, "How many fuel put into vehicle": 100, "After how many seconds despawn own vehicle": 300.0, "Allow damage when bot running over players?": true, "Turn on headlights during trips?": true, "Headlights only at night?": true }, "Trips": { "How often the bot decides to drive": 60.0, "Minimum trip distance": 300.0, "Maximum trip duration": 600.0, "Cooldown after a trip": 300.0, "Cooldown after a failed trip": 120.0, "Speed limit (0 - no limit)": 0.0 } }, "austin_fighter": { "Can these bots travel by vehicle?": true, "Vehicle types": { "Modular cars": { "Use this type of vehicle?": true, "Chance to travel on this vehicle at each decision": 30.0, "Prefabs of own vehicles (empty - do not spawn own)": [ "assets/content/vehicles/modularcar/2module_car_spawned.entity.prefab", "assets/content/vehicles/modularcar/3module_car_spawned.entity.prefab" ] }, "Motorbikes and bicycles": { "Use this type of vehicle?": true, "Chance to travel on this vehicle at each decision": 30.0, "Prefabs of own vehicles (empty - do not spawn own)": [ "assets/content/vehicles/bikes/motorbike.prefab" ] }, "Snowmobiles": { "Use this type of vehicle?": true, "Chance to travel on this vehicle at each decision": 30.0, "Prefabs of own vehicles (empty - do not spawn own)": [], "Drive only on snow, avoiding roads?": true }, "Horses": { "Use this type of vehicle?": true, "Chance to travel on this vehicle at each decision": 30.0, "Prefabs of own vehicles (empty - do not spawn own)": [ "assets/content/vehicles/horse/ridablehorse.prefab" ] }, "Helicopters": { "Use this type of vehicle?": false, "Chance to travel on this vehicle at each decision": 30.0, "Prefabs of own vehicles (empty - do not spawn own)": [ "assets/content/vehicles/minicopter/minicopter.entity.prefab" ] } }, "Vehicles": { "Vehicle search radius around the bot": 100.0, "Use free vehicles found nearby?": true, "Spawn own vehicle when none is found nearby?": true, "Road search radius for own vehicles (the bot walks to it)": 300.0, "Do vehicles need fuel? (no - the addon adds fuel for the trip and takes the rest back after)": false, "Use cars without engine parts? (parts are installed for the trip)": true, "How many fuel put into vehicle": 100, "After how many seconds despawn own vehicle": 300.0, "Allow damage when bot running over players?": true, "Turn on headlights during trips?": true, "Headlights only at night?": true }, "Trips": { "How often the bot decides to drive": 60.0, "Minimum trip distance": 300.0, "Maximum trip duration": 600.0, "Cooldown after a trip": 300.0, "Cooldown after a failed trip": 120.0, "Speed limit (0 - no limit)": 0.0 } } }, "How many own vehicles the addon keeps on the map at once": 10, "How many trips can run at once on the server": 5 }