New Epic Opcodes beta2
-
1 August 2023Password: libertycitynew-epic-opcodes-beta2_1690844954_384100.zip
This is one of my previously unpublished (or published in narrow circles) works, many of which you can see in the video below (the video includes Russian subtitles, a small demonstration of NEO beta2 occurs at 3:47):
For experienced scripters.
The plugin adds new opcodes. Despite the name, they are not that epic right now, but they will be!
The current list of opcodes:
hidden text0E10: rotate_actor $PLAYER_ACTOR type 0 boneindex 5 angles 0.0 0.0 0.0 blending_time 500 freeze_time 2000 release_time 1000
- set the rotation of the actor's bone
0E11: store_actor $PLAYER_ACTOR type 0 boneindex 5 world_coords 1 rotation_to 1@ 2@ 3@
0E12: store_actor $PLAYER_ACTOR type 0 boneindex 5 world_coords 1 position_to 4@ 5@ 6@ offset 0.0 0.0 0.0
- get the rotation and position of the actor's bone
type:
0 — InGame Actor
1 — Cutscene Actor
world_coords:
0 — local coordinates
1 — world coordinates
0E20: enable_vehicle 0@ flying_control_type 3
0E21: disable_vehicle 0@ flying_control
- enable/disable flying control for vehicles, such as:
0 — dodo (from gta3, unused in VC)
1 — rcbaron
2 — rcraider, rcgoblin
3 — skimmer
4 — ??? (like 5, but with minor changes, unused in VC)
5 — cheats airship & comeflywithme
6 — Heli
Opcodes 0E22-0E31 do exactly what they state:
0E22: store_object 0@ rotation_to 1@ 2@ 3@
0E23: set_object 0@ rotation 0.0 0.0 0.0
0E24: store_vehicle 0@ rotation_to 1@ 2@ 3@
0E25: set_vehicle 0@ rotation 0.0 0.0 0.0
0E26: store_actor 0@ rotation_to 1@ 2@ 3@
0E27: set_actor 0@ rotation 0.0 0.0 0.0
0E30: camera_on_object $666 mode 15 switchstyle 2
0E31: draw_hud 0
Some planned opcodes:
hidden textopcodes CarRec, ObjRec, ActRec
is_vehicle car
is_vehicle bike
is_vehicle heli
is_vehicle boat
is_vehicle plane
alternative z_ground(processlineofsight)
take screenshots without hud and other inscriptions
detach car components (not sure yet, but it might be possible to do it not only for wheels)
rotate car components (not 100%)
breakable objects (like glass)
attach/detach various entities to others, including — to bones
repair car completely
remove actor bodypart? (not sure)
play mpg video
enable_blur/trails
get camera direction vector
ped_say
Play_1d_Sound
Get Camera position
Get Camera direction
get angle from vector XYZ store to XaYaZa
Одна из ранее не опубликованных(или опубликованных в узких кругах) мной работ, многие из которых вы можете увидеть в представленном ниже видео(в видео добавлены русские субтитры, небольшая демонстрация NEO beta2 происходит на 3:47):
Для опытных скриптеров.
Плагин добавляет новые опкоды. Несмотря на название, прямо сейчас они не настолько эпичные, но они будут таковыми!
Текущий список опкодов:
cкрытый текст0E10: rotate_actor $PLAYER_ACTOR type 0 boneindex 5 angles 0.0 0.0 0.0 blending_time 500 freeze_time 2000 release_time 1000
- задать поворот кости актера
0E11: store_actor $PLAYER_ACTOR type 0 boneindex 5 world_coords 1 rotation_to 1@ 2@ 3@
0E12: store_actor $PLAYER_ACTOR type 0 boneindex 5 world_coords 1 position_to 4@ 5@ 6@ offset 0.0 0.0 0.0
- получить поворот и позицию кости актера
type:
0 — InGame Actor
1 — Cutscene Actor
world_coords:
0 — локальные координаты
1 — мировые координаты
0E20: enable_vehicle 0@ flying_control_type 3
0E21: disable_vehicle 0@ flying_control
- включение/выключение воздушного управления транспортом, как:
0 — dodo(из gta3, неиспользовано в VC)
1 — rcbaron
2 — rcraider, rcgoblin
3 — skimmer
4 — ???(как 5, но с небольшими изменениями, не использовано в VC)
5 — читы airship & comeflywithme
6 — Heli
Опкоды 0E22-0E31 делают ровно то, что в них указано:
0E22: store_object 0@ rotation_to 1@ 2@ 3@
0E23: set_object 0@ rotation 0.0 0.0 0.0
0E24: store_vehicle 0@ rotation_to 1@ 2@ 3@
0E25: set_vehicle 0@ rotation 0.0 0.0 0.0
0E26: store_actor 0@ rotation_to 1@ 2@ 3@
0E27: set_actor 0@ rotation 0.0 0.0 0.0
0E30: camera_on_object $666 mode 15 switchstyle 2
0E31: draw_hud 0
Некоторые планируемые опкоды:
cкрытый текстопкоды CarRec, ObjRec, ActRec
is_vehicle car
is_vehicle bike
is_vehicle heli
is_vehicle boat
is_vehicle plane
альтернатива z_ground(processlineofsight)
съемка скриншотов без hud и прочих надписей
детач компонентов авто(пока не уверен, но возможно выйдет сделать не только для колес)
поворот компонентов авто(не 100%)
разбивание разбиваемых объектов(типа стекла)
атач/детач различных entity к другим, в т.ч. — к костям
repair car completely
remove actor bodypart?(не уверен)
play mpg video
enable_blur/trails
get camera direction vector
ped_say
Play_1d_Sound
Get Camera position
Get Camera direction
get angle from vector XYZ store to XaYaZa