NPC 出租车 0.1.23

NPC 出租车 0.1.23

NPC 出租车 0.1.23-PCI1
NPC 出租车 0.1.23
此内容为付费资源,请付费后查看
10积分
付费资源
已售 1

原创地址NPC 出租车 |混沌

 

必需的依赖项

此插件需要 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
建议使用编辑器和验证器以避免格式问题
{
  "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",
        "SkinID": 0
      }
    ]
  },
  "Pathfinder Debug": false,
  "Version": {
    "Major": 0,
    "Minor": 1,
    "Patch": 4
  }
}
 
© 版权声明
THE END
喜欢就支持一下吧
点赞7 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容