English
Useful functions and constants for developers of mods on CLEO  
Useful functions and constants for developers of mods on CLEO for for modmakers
Download file
Rating of the file
+23
Rating of the file: +23
Total votes: 25
View ratings

Category: Files for modmakers
Section: ResourcesVarious files
Author*:
E-mail / website: Go to the website
File size: 6.40 Kb
File replaces: Ничего
File uploaded by: GTA_Masters19
Upload date:
Downloads: 89
You can create your own file review or capture your gameplay with mods, upload it to YouTube and add it to the description
Add a video
Also, you can add your own screenshots
The description was translated automatically. Show original
Developer tools for CLEO
This pack slightly simplifies the development of mods on CLEO functions and constants.

Functions:


In the pack of 6 functions:
* Spawn of the actor
* Spawn of the actor abbreviated
* Spawn machines
* Spawn machine abbreviated
* Spawn pickup
* Train sleeping

You connect the function through the directive {$ I} At the beginning of the file, and right there you specify the path to the function, for example, like this: {$ I actor_spawn.func} . The directive should be at the very beginning of the file (where it is usually written {$ CLEO} ).
Then you only need to register one line (function call).
The opcode call function:

0AB1:

  Creating a car

  Creating a car (short version)

  Create an actor

  Creating an actor (short version)

  Creating a train

  Create a pick-up

What do these functions give us? First of all, it's saving space in the code - improving its readability, routine operations are performed in one line. For example, the full version of the machine (in the function file) takes 18 lines! And you can write only one in your code, but you can do the same. The function itself will load the specified model, and, completing its work, will unload it from memory. In the case of a spa train, the function will also determine its type (which you specify by the first parameter in this function) and create the corresponding train. Just do not forget the directive to connect the function file. After completing the function, it will return control of the game and your script.

But, despite all the apparent advantages of this method, he has a minus. When calling scm-functions in large numbers, short-term lags may occur. Functions from my set even with the simultaneous call of all of them on a fast computer will not cause strong brakes, but if you call a function in a loop, there may be small jams. In order to not see the brakes, you can place the function call in a container of the form:

Fade 0 1000
Wait 1000
/ * Calling functions * /
Fade 1 1000


In this case, there will be no jerking. This is not a significant minus, it does not interfere in any way, nothing terrible happens (I called the same function for another ten times, it worked very quickly), especially for those who save code, but just keep it in mind.

Tags that should be used when calling functions:

@car_spawn - spawn machine
@actor_spawn - spawn of the actor
@train_spawn - train spawn
@pickup_spawn - spawn pickup
@car_spawn_short - spawn machine abbreviated
@actor_spawn_short - the spawn of the actor abbreviated


  Example code with the function of creating a car


Constants:

In my pack you will also find a file Const Which contains a large list of various constants that can help in the development. I divided all the constants into groups:
* Constants for the designation of buttons (opcode 0AB0: ). Keep in mind that Sanny Builder does not support Russian constant names, English names are used. The names of keys that consist of more than one word are written through the underscore sign (otherwise the compiler starts to get confused), for example: PAGE_DOWN . In the constant file, the synonymous names of the keys are written one after another. Example: in the file there are constants for the escape button! ESC And ESCAPE . Use what you like more. Because of the limitations of the compiler, the keys with numbers are written like this: 0_KEY , 5_KEY . For num-pad, like this: 0_NUM , 7_NUM . Right and left windows, respectively, like this: WINDOWS_L , WINDOWS_R . COMMA And DOT (Synonymous POINT Is also allowed).
* Common global variables allowed in CLEO.
* Radio stations.
* Components of the car (doors, hood, trunk).
* Base colors of cars.
* Styles of gait actors.
Types of explosions. Many are duplicated, the most basic ones are recorded in constants, without repeats.
* Radar icons.
* Weather codes.
* Gangs.
* Weapon numbers.
* Types of trains.
* Types of pickups.
Also there are three additional constants - three zeros ( ZEROES ), A smooth and sharp transition for the game camera ( JUMP_INSTANT , JUMP_SMOOTH ).
The file with constants is connected via the directive {$ I} .
Most of these constants are very applicable, and relieve you of climbing on Sanny Builder's help, however, if you want to use them in your mods, I advise you to scroll through their list by opening the file.

You can use these functions and constants in your mods, the author of the file and the site need not be specified.
NOTE : {$ I} Works on the principle of connecting the function code inside the file, that is, the function will be inside your script. The same applies to constants. (Replaced by the string {$ I} ).
NOTE : You can use the full form of the directive record - {$ INCLUDE} .
Screenshots
Useful functions and constants for developers of mods on CLEO for for modmakers
Like this file?
Players screenshtos
Add screenshots
You can take some screenshots of your gameplay using modifications and upload them
You can create your own file review or capture your gameplay with mods, upload it to YouTube and add it to the description
Add a video

Дин Эмброус

Dean Ambrose Skin.Джонатан Дэвид Гуд — американский рестлер и актёр. Наиболее известен по выступлениям в WWE под именем Дин Эмброус с 2011 по 2019 год. В мае 2019 года подписал длительный контракт и в данный момент выступает в AEW под именем Джон Мок...

Винс и Стефани Макмэхон

WWE Stephanie and Vince McMahon.Винсент Кеннеди Макмэн — промоутер в рестлинге, топ-менеджер в американском футболе. Бывший комментатор и профессиональный рестлер. В настоящее время Макмэн является генеральным директором и главой правления WWE.Стефан...

2020 Porsche 911 Cabriolet Carrera 4S [Add-On] 1.0

22 July 2019 Files for GTA 5
2020 Porsche 911 Cabriolet Carrera 4S. The model is taken from CSR 2. Features of the model: - The model supports the basic functions of the game; - High-quality 3D model; - Worked salon; - Tuned optics; - Developed engine model; ...

Сборник скинов Человека-паука из игры на PS4 (Металлическое обновление)

22 July 2019 Files for GTA 5
PS4 Spiderman Pack[Add-on Ped] 1.3 для GTA 5!В версии 1.3 добавлен металлический эффект с тенямиОсобенности: - Полная скелетная анимация. - Текстуры HD качества- Правильное положение оружия в рукахУстановка при помощи AddonPeds....

Mercedes-Benz W210 7.3S Brabus 1995

Mercedes-Benz W210 7.3S Brabus 1995 для GTA San Andreas.Особенности:- Высокая детализация кузова и деталей;- Высококачественные текстуры модели;- Рабочая оптика;- Отличная адаптация к ENB.Приятной игры!...

Mercedes-Benz GLE AMG

Mercedes-Benz GLE AMG для GTA San Andreas.Особенности:- Высокая детализация кузова и деталей;- Высококачественные текстуры модели;- Рабочая оптика;- Отличная адаптация к ENB.Приятной игры!...

Mercedes-Benz GLE 300d 4matic 2019

Mercedes-Benz GLE 300d 4matic 2019 для GTA San Andreas.Особенности:- Высокая детализация кузова и деталей;- Высококачественные текстуры модели;- Рабочая оптика;- Отличная адаптация к ENB.Приятной игры!...

Porsche 911 GT2

Porsche 911 GT2 из Need For Speed - Undercover и Shift для GTA San Andreas.Особенности:* -> Модель высокого качества;* -> Своя коллизия и тень;* -> Маппинг грязи и бьющиеся стекла;* -> Поддерживает покрасочные работы (шаблон включен);* -> Реалистичны...

2019 Aston Martin Vantage AMR v1.0

22 July 2019 Files for GTA 4
2019 Aston Martin Vantage AMR v1.0 из Real Racing 3 для GTA 4.Особенности:- Качественная модель;- Качественный конверт;- Рабочая оптика;- Свои настройки;- Поддерживает основные игровые функции.Инструкция по установке внутри архива.Приятной игры!...

B737-800 Delta Airlines

B737-800 Delta Airlines (Android) для GTA San Andreas Mobile.Особенности:- Модель среднего качества;- Поддерживает основные игровые функции;- Работает на ПК (не рекомендуется).Приятной игры!...

[!] If you have any problems installing the file, please ask at the forum.

[!] If you think that this file has already been added to the archive, please let administrator know about this with links to this file and the file that you previously added.



Best comment written on, 30 September 2014, 21:17
Quote selected #
andre500
Administrator
Status:
Comments:1712
Friends:540
Respect: 583
Money: -666$
Awards:: 24
GForums: andre500
Quote #
+1
Цитата: GTA_Masters19
Хорошо, про баг Бадману напиши что-ли

Написал. Спойлеры исправил. :)
The comment was translated automatically Show translation

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


Add a comment
(Guest)

Dear visitors, please, in messages that you left, don't use any profanity, advertisement information or links to other resources. Otherwise, the administration of the website have the right to block access to some features of the website, or delete your account without explaining reasons.

8
comment written on, 7 April 2015, 16:39
Quote selected #
kirill_mod
User
Status:
Comments:214
Friends:9
Respect: 2
Money: 0$
Awards:: 1


Karma: 213
Quote #
-1
Всё больше сходства с паскалем... +
The comment was translated automatically Show translation

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


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

7
comment written on, 30 September 2014, 21:22
Quote selected #
GTA_Masters19
User
Status:
Comments:924
Friends:42
Respect: 20
Money: 3$
Awards:: 9
GForums: GTA_Masters19

Karma: 1188
Quote #
0
Цитата: andre500
Написал. Спойлеры исправил. smile
Спасибо wink.
The comment was translated automatically Show translation

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

6
comment written on, 30 September 2014, 21:17
Quote selected #
andre500
Administrator
Status:
Comments:1712
Friends:540
Respect: 583
Money: -666$
Awards:: 24
GForums: andre500

Karma: 15497
Quote #
+1
Цитата: GTA_Masters19
Хорошо, про баг Бадману напиши что-ли

Написал. Спойлеры исправил. :)
The comment was translated automatically Show translation

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

5
comment written on, 30 September 2014, 20:55
Quote selected #
GTA_Masters19
User
Status:
Comments:924
Friends:42
Respect: 20
Money: 3$
Awards:: 9
GForums: GTA_Masters19

Karma: 1188
Quote #
0
Цитата: andre500
Слетевшие названия у спойлеров будут исправлены. Копия описания у меня есть. Автор, будь добр в лс кинь названия спойлеров. У меня копия описания тоже с некорректными спойлерами. Очередной баг сайта.
Хорошо, про баг Бадману напиши что-ли :)
The comment was translated automatically Show translation

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

4
comment written on, 30 September 2014, 20:30
Quote selected #
andre500
Administrator
Status:
Comments:1712
Friends:540
Respect: 583
Money: -666$
Awards:: 24
GForums: andre500

Karma: 15497
Quote #
0
Слетевшие названия у спойлеров будут исправлены. Копия описания у меня есть. Автор, будь добр в лс кинь названия спойлеров. У меня копия описания тоже с некорректными спойлерами. Очередной баг сайта. :)

car_spawn.func исправил.

Сообщение отредактировал andre500 30.09.2014 в 20:32:17
The comment was translated automatically Show translation

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

3
comment written on, 30 September 2014, 19:58
Quote selected #
Desiz la peste
User
Status:
Comments:1195
Friends:71
Respect: 28
Money: 0$
Awards:: 9
GForums: Desiz la peste

Karma: 1245
Quote #
0
Спасибо, полезная вещь, как раз поучусь языку
The comment was translated automatically Show translation

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

2
comment written on, 30 September 2014, 19:45
Quote selected #
GTA_Masters19
User
Status:
Comments:924
Friends:42
Respect: 20
Money: 3$
Awards:: 9
GForums: GTA_Masters19

Karma: 1188
Quote #
0
Кстати, в описании, конкретно в примере кода есть небольшая неточность: там я подключал через директиву {$I} файл actor_spawn.func, надо подключать car_spawn.func
The comment was translated automatically Show translation

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

1
comment written on, 30 September 2014, 19:42
Quote selected #
Jason Newsted
User
Status:
Comments:2759
Friends:32
Respect: 34
Money: 14$
Awards:: 4
GForums: Laniglro

Karma: 812
Quote #
0
Спасибо. Надо будет почитать.
The comment was translated automatically Show translation

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