Mindustry

Mindustry

Not enough ratings
logic to control payload of units / логика загрузки юнитов
   
Award
Favorite
Favorited
Unfavorite
Tags: schematic
File Size
Posted
Updated
1.027 KB
8 Oct, 2023 @ 11:17am
10 Oct, 2023 @ 3:56pm
7 Change Notes ( view )

Subscribe to download
logic to control payload of units / логика загрузки юнитов

Description
Если контролируемые юниты под переменной Control могут переносить грузы(блоки, другие юниты), они будут это делать подражая игроку.

Краткое объяснение: ПЕРЕНОСЯТ ДРУГИХ ЮНИТОВ(Основная цель) - повторяя за игроком, юниты под контролем процессора следуют за игроком, стреляют по противникам, стреляют по точке стрельбы игрока, помогают в копании ресурсов. Автоматически стреляют по ближайшим противникам!

Для Изменения типа управляемых юнитов требуется поменять значение переменной Control, например set Control @mono

Работает достаточно быстро на среднем процессоре. Работает Плавно и Эффективно на Гиперпроцессоре.

Для регистрации пользователя в контроле, Требуется находиться в радиусе действия процессора, далее управление не спадёт.

РЕКОМЕНДОВАНО ИСПОЛЬЗОВАТЬ ПРЕИМУЩЕСТВЕННО @MEGA, но работает и с другими типами летающих юнитов, работает со всеми типами юнитов но наземные просто будут застревать в связи с отсутствием в игре алгоритма нахождения путей, за исключением бесполезного к точке появления врагов.

Процессор не забирает контроль у других юнитов помеченных флагами и управляемыми процессорами.

При приближении к ядру, подконтрольные юниты сбрасывают все свои ресурсы.

Есть возможность переключиться на другого юнита, тогда возможны 2 варианта: 1) в дали от процессора, управление подразделением зафиксируется на юните, который был покинут, от чего можно вернуться к его управлению в связи с этим вернуть контроль всего подразделения. 2) В близи процессора управление юнитами перейдёт к новой единице, управляемой игроком.

Рекомендуется устанавливать процессор вблизи с точкой возражения, что бы в случае не предвиденной смерти подразделения покинули зону опасности.

При смерти игрока управление переходит к новому юниту подконтрольному игроку в радиусе определения группы юнитов.

----------------------------------------------

If controlled units under the Control variable can carry loads (blocks, other units), they will do so by mimicking the player.

Short explanation: units under CPU control follow the player, TRANSFER OTHER UNITS (main goal) - repeating the player, shoot at enemies, shoot at the player's firing point, help in digging resources. Automatically shoot at nearby opponents!

Changing the type of controlled units requires changing the value of the Control variable, e.g. set Control @mono

Works fast enough on an average processor. Works smoothly and efficiently on a Hyperprocessor.

To register the user in the control, it is required to be within range of the processor, then the control will not drop.

RECOMMENDED TO USE PREFERREDLY @MEGA, but works with other types of flying units, works with all types of units, but ground units will simply get stuck due to the lack of pathfinding algorithm in the game, except useless to the point of appearance of enemies.

The processor does not take control away from other flagged and processor-controlled units.

When approaching the core, controlled units reset all their resources.

It is possible to switch to another unit, then 2 options are possible: 1) far from the processor, the control of the unit will be fixed on the unit that was abandoned, from which you can return to its control in connection with this return control of the entire unit. 2) In proximity to the processor, control of the units will pass to the new unit controlled by the player.

It is recommended to place the processor close to an objection point, so that in the event of an unforeseen death, the units will leave the danger zone.

When a player dies, control of units is now transferred to a unit under the player's control. Outside the CPU, if the main unit is alive, the control does not change.

Code: in the discussion of this work
Popular Discussions View All (1)
0
10 Oct, 2023 @ 3:16pm
Code! try to analize!
LED