这段代码是一个游戏“Project Zomboid”中的一个mod,增加了车内室内场景的功能。以下是详细的中文注释:

-- Do nothing in multiplayer on the server (isServer always returns false in single player) -- 在服务器的多人游戏中不执行任何操作(在单人游戏中,isServer始终返回false) if isServer() then return end

-- The speed returned for a parked vehicle can sometimes end up non-zero, so set a threshold for "stationary" -- 停放的车辆返回的速度有时可能不为零,因此设置“静止”的阈值。 local stationaryThreshold = 0.1


-- Entering vehicles

--- Test if its unsafe for a player to enter their vehicle interior, based on the sandbox settings. This can only be --- tested client-side because IsoCell:getNearestVisibleZombie() appears to be client only. -- 根据沙盒设置测试是否不安全让玩家进入车辆内部。这只能在客户端测试,因为IsoCell:getNearestVisibleZombie()似乎只在

-- Do nothing in multiplayer on the server isServer always returns false in single playerif isServer then return end-- The speed returned for a parked vehicle can sometimes end up non-zero so set a th

原文地址: https://www.cveoy.top/t/topic/b4BX 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录