此插件需要 Chaos 扩展 ->
https://chaoscode.io/resources/chaos.321/
创建由 NPC 驾驶的出租车,玩家可以调用该 NPC 在地图上驾驶出租车

内容

沿着相连的道路

行驶 沿着不相连的道路/越野

行驶 简单的避

障 运作方式
当玩家呼叫出租车时,它会在附近生成并开车到他们身边。
然后玩家进入出租车,并在地图上放置一个标记来设置他们的目的地。
然后生成路线并计算票价。车费成本基于路线的长度和配置选项 “Scrap cost per 1km travelled”
然后玩家可以下车,更改目的地,或键入 /payfare 开始前往地图标记。

关于出租车
出租车总是喜欢在公路或小径上旅行。
您只能在靠近道路或小径时召唤出租车。
目的地只能设置在道路或小径附近。
如果目的地设定的道路与他们出发的道路没有连接,出租车将驶离道路,寻找成本最低的路径(最小的斜坡、避开纪念碑等)
出租车配备了碰撞传感器和避障功能,但这并不完美。
如果出租车驶离道路并驶入树上,它无法避免它会将他们撞倒

权限

NPCTaxi 使用 Oxides 权限系统
要分配用户权限,请在控制台中使用 oxide.grant user “username|steam id” “permission”。
要分配组权限,请在控制台中使用 oxide.grant group “groupname” “permission”。
您可以在此处阅读有关如何使用权限系统的更多信息:uMod – 权限

npctaxi.use – 需要叫出租车
npctaxi.nocost – 拥有此权限的玩家不会被收取行程
费用 npctaxi.nocooldown – 拥有此权限的玩家在使用出租车

后不会受到冷却时间的限制 配置中还有其他可自定义的权限,可以为 VIP

设置自定义票价成本 命令
/taxi – 呼叫出租车到您的位置
/payfare – 设置目的地后,使用此命令支付票价并开始前往目的地

Config

配置文件可以在您的服务器目录中找到,网址为 …/oxide/config/NPCTaxi.json
建议使用编辑器和验证器以避免格式问题
C#:
{
  "Scrap cost per 1km travelled (permission -> cost)": [
    {
      "Permission": "npctaxi.use",
      "Cost": 50
    },
    {
      "Permission": "npctaxi.vip1",
      "Cost": 25
    },
    {
      "Permission": "npctaxi.vip2",
      "Cost": 10
    }
  ],
  "Cost type (Scrap, ServerRewards, Economics)": "Scrap",
  "Are taxi vehicles invincible?": true,
  "Maximum allowed taxi's at any given time": 2,
  "Maximum time the taxi will wait for the player to enter before leaving": 45,
  "Amount of time from when the player leaves a taxi until they can call another one (seconds)": 60,
  "Taxi Vehicle Settings": {
    "Chassis Type (0 = TwoModule, 1 = ThreeModule, 2 = FourModule)": 1,
    "Modules (item shortname)": [
      "vehicle.1mod.cockpit.with.engine",
      "vehicle.1mod.taxi",
      "vehicle.1mod.taxi"
    ],
    "Engine component tier (1 - 3)": 3,
    "Driver clothing items": [
      {
        "Shortname": "pants",
        "SkinID": 0
      },
      {
        "Shortname": "boots",
        "SkinID": 0
      },
      {
        "Shortname": "shirt.collared",
        "SkinID": 0
      },
      {
        "Shortname": "movembermoustache",
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。