Поиск по STEAMB

Игры и программы по онлайну, скины по объёму продаж

Ничего не найдено

Попробуйте другое название или переключите категорию.

Меню

Скрипты

CAT Basic Raycast Range Finder

Положительные голоса97%73 голосов игроков
Подписчики2,4 тыс.2 449 в Steam Workshop
Размер файла24,39 КБЗагрузка через Steam
Обновление автора18 янв. 2020 г.Дата обновления материала

Изображение 1 из 2. Материалы автора из Steam Workshop.

Изображение 1 из 2
Установить через Steam

О материале

«CAT Basic Raycast Range Finder» — материал мастерской Space Engineers. Моды, чертежи кораблей, скрипты и миры для Space Engineers. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.

Описание автора

For use in camera turrets or collision avoidance, or even plotting ramming manurers a basic script to fire a single beam straight ahead to an adjustable range in order to find out if that path is clear or obstructed.

DLC Free Demo Drone: https://steamcommunity.com/sharedfiles/filedetails/?id=1971820463

The script returns the

Name: name of the object (may return a vague name if object is not friendly) Type: large or small grid, asteroid, floating object, human, other entity, ect. Relationship: friend, ally, foe, neutral, unowned, ect. Position: the centre of mass for the detected object. (as GPS marker) Speed: magnate value rather than vector. Id: Grid Id unique to each grid.

The script also calculates

Range: from the camera to the object centre Range: from camera to the point of object-ray intersection

If the raycast does not hit an object the script will display that no object was detected on the LCD and follow that with the information of the previous object hit if any under History. The script also retains and displays the data of the last object hit when the display is updated without a new scan being performed.

The script reports the status of the camera and the current change printing that to the output LCD The script will also echo camera and LCD related errors to the programmable block description

The script responds to string commands into the programmable block and can be set to either default to doing a scan or to wait for the specific do scan command Multiple commands can be issued in a single string allowing one button press to set the range, trigger a scan then restore the default range allowing multiple buttons to carry different settings.

Output can be printed to as many LCDs in as many locations as desired.

  • Commands:

  • 'DoScan' - Perform a scan

  • 'DoUpdate' - Update Display without performing scan

  • 'clear_his' - Clears the history

  • 'Set_Rng:' - Set range to int

  • 'Inc_Rng:' - Increase range by int

  • 'Dec_Rng:' - Decrease range by int

  • 'parse_dist:<ON|OFF>' - Enables or disables the parsing of distances to m/km format (default is meters without 'm' indicator)

  • 'show_id:<ON|OFF>' - Enables or disables the showing of detected entity ID

  • 'show_gps:<ON|OFF>' - Enables or disables the showing of GPS of detected entity

  • 'show_his:<ON|OFF>' - Enables or disables the showing of History

  • multiple commands can be separated by ',' eg: Set_Rng:100,DoScan,Set_Rng:10 (which would set range to 100, do a scan and then reset range to 10)

  • Global Variables:

  • 'gb_DistParse' if true parse meters to KM and truncate decimals to the 2 most significant figures

  • 'gb_ShowID' if true show Detected entity Ids

  • 'gb_ShowGPS if true show Detected entity GPS

  • 'gb_ShowHistory if true show history if nothing detected

  • 'gb_DisableRecall if true disables the reading of storage to recover adjusted settings

  • 'gs_Cam_Name' The full name of the camera to be used for raycasting

  • 'gi_Range' Range of scan

  • 'gs_Prefix' defines the Prefix which appears at the start of target LCD names

  • The script will only use LCDs that have the Prefix.

  • For example: With the gs_Prefix '[RC]' an LCD panel with the name '[RC] LCD' will be used but one with the name '[FP] LCD', 'LCD [RC]' or just 'LCD' will not

  • if gs_Prefix is set to null then it is ignored and lcd screens will be used regardless of their Prefix

  • gs_LCD_Tag' defines the Tag which appears anywhere in the name of target LCDs

  • The script will only use LCDs which have the Tag in their name.

  • For example: with the gs_LCD_Tag '[OUT]' an LCD panel with the name '[OUT] LCD', 'LCD [OUT]' or '[OUT]' will be used, but one with the name 'LCD', 'LCD [IN]' or '[IN] LCD' will not.

  • if gs_LCD_Tag is set to null then it is ignored and lcd screens will be used regardless of their name

  • setting both Prefix and Tag will mean that only an LCD that matches both conditions will be used

  • setting both Prefix and Tag to null will result in ALL LCDs being used

  • IMPORTANT:

if "gb_DisableRecall" is true the script recovery feature will not read storage on reset, but it will still write to storage. This means whatever the default values in the script are set to will be written into storage replacing old saved settings. This makes it possible to change settings by editing the script.

If "gb_DisableRecall" is false, on script reset or world load the script recovery feature will read the PBs storage value and parse it to recover it's settings. This will replace the default settings which means editing the script will not be an effective way to change the settings but messages into the PB will cause the stored values to be updated.

The recovery effected settings are "gi_Range", "gb_DistParse", "gb_ShowID", "gb_ShowGPS", "gb_ShowHistory", "gb_Turn_On_Cam" and "gb_Scan_Without_Cmd". All others are unaffected by the recovery feature

Оригинал в Steam Workshop

Как установить и запустить

Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.

Настройки cookies

Вы можете изменить выбор в любой момент. Отказ от аналитики не ограничивает доступ к сайту.

Технологии, провайдеры и сроки хранения