Power Window Controls
Изображение 1 из 2. Материалы автора из Steam Workshop.
О материале
«Power Window Controls» — материал мастерской Project Zomboid. Карты, транспорт, оружие и моды для выживания. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
Version 1.2.1 - the b42 version has had its localization files converted to the new .json format. This should fix missing strings in the UI on 42.20.
This is a simple lua script that enables the player in the first (driver) seat of a vehicle to control all openable windows with additional buttons on the vehicle radial menu, much like in any modern car.
I'm told power window controls were commonspread enough in the early nineties, so hopefully seeing them on every car won't feel too anachronistic, but regardless of that, this was made primarily as a workaround for a technical limitation in vanilla Zomboid. By default, to see if you should be given control over a window, the game checks what seat you're in, then checks if that seat has a door on the same spot and, if it does, checks if that door has an openable (and unbroken) window on the same spot. So let's say you're Filibuster Rhymes, placing whole 4 openable windows into your RV that... only has one door. What you end up with is 3 factually unusable windows.
The method this mod employs eliminates the middleman in the door and, when you are in the driver seat, directly scans for window parts with the following IDs: WindowFrontLeft WindowFrontRight WindowMiddleLeft WindowMiddleRight WindowRearLeft WindowRearRight and adds the options to open/close them to the radial menu if they are present, not broken and can be opened/closed. (if you make a vehicle with openable windows with different IDs, hit me up)
The front left (driver's) window will show up with the normal "Open/Close Window" segment, while others will display a custom prompt and a modified icon to indicate which window it is. The text prompts are currently provided for the EN, DE, RU, CN and PTBR languages.
The mod is entirely client side on b41. The b42 version now has some code shared between client and server (since the base game has moved some functions the mod duplicates there). For this reason, I'm not sure if it will work properly in multiplayer - as I can't test it myself, I'll wait for reports: if you're planning on trying this in b42 MP, please let me know how it goes.
Do note that you don't get "power windows" without power - a flat or missing battery will prevent the options to control distant windows from being given to you. This is only a check though - operating windows does not consume any battery power.
With the 1.1 update the UI icons have been updated to be more dynamic - the square grid will try to match the layout of your car, showing a 2x2 for four door sedans, a single row of two for coupes and the original 2x3 grid for six door cars. Although I use "door" loosely here - the mod still looks only for windows with open/close functionality. Oh, and the "close" icons will now highlight the square in red instead of green.
The mod now supports cars with exceptional treatment: currently AutoTsar's Jeep Wranglers have been added, such that their tent windows are ignored. But further entries can be added easily - see the special thread for suggestions.
With the 1.2 update the driver now has an option to open all closed or close all open windows simultaneously with one button. The buttons will only appear when more than one window would be affected.
Credit goes to: Aiteron and their Better Towing, where I spied a method to inject my code into the radial menu. Filibuster Rhymes and their Used Cars, or more specifically, their Fleetwood Bounder RV which basically inspired this mod. My friend Peach for helping with the localization. Steam user Bazooka for the Simplified Chinese translation. Steam user Não é o Gui for the previously separately uploaded PTBR localization.
Tags:B41,B42,Cars,Vehicles,Interface,Tweak,QoL
Workshop ID: 2511087277 Mod ID: WolfWindowControls
Workshop ID: 2511087277 Mod ID: WolfWindowControls
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.