Misc
Top uploaders
Top uploader
Smart15

The best uploader of the last month
Follow us!

Download Useful functions and constants for developers of mods on CLEO for for modmakers

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: 87
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

Alien Gris HD (UFO) 1.0 - HD Alien

13 December 2018 Files for GTA 5
Alien skin for GTA 5. Replaces the standard aliens in the game, which were on the plot. Features: - Good quality textures; - Customized materials; - Present skeleton animation; - In the hands of the right weapon.

Paramedic Zombies [Addon] 1.0 - Zombie Paramedics

13 December 2018 Files for GTA 5
Zombie paramedics for GTA 5. Features: - Bloody / dirty clothes; - Pale skin; - Yellow dead eyes; - Present skeleton animation; - In the hands of the right weapon.

Neymar Brazil | World Cup 2018 [Add-on Ped] Beta - Neymar Brazilian striker

13 December 2018 Files for GTA 5
Neymar da Silva Santos Jounior - Brazilian football player, striker of the French club Paris Saint-Germain. Captain of the national team of Brazil. Features: - Good quality textures; - Customized materials; - Present skeleton animation;...

Norwegian police uniform 2.0 - Norwegian police uniform

13 December 2018 Files for GTA 5
Skin Norwegian police officer for GTA 5. Features: - Good quality textures; - Customized materials; - Present skeleton animation; - In the hands of the right weapon.

Lee Sin Pool Party [Add-on] | League Of Legends 1.0 - Character From League Of Legends

13 December 2018 Files for GTA 5
Lee Sin Pool Party [Add-on] | League Of Legends 1.0 for GTA 5. Features: - Texture quality is average; - Customized materials; - In the hands of the right weapon.

Pointing a finger in a single player

13 December 2018 Files for GTA 5
Point Finger in SP 1.1.1 This mod will allow you to use the finger pointing, just like online! To work the mod will need: - Latest ScriptHookV - Latest Community Script Hook V .NET - Visual C ++ Redistributable Packages x64 - Micros...

Toyota Corolla Custom 1977

1977 Toyota Corolla Custom for GTA San Andreas! Features: - Beautiful body; - Detailed salon; - Supports all major game functions; - No mistakes; - The car goes well with the atmosphere of the game.

Cell Segunda from Dragon Ball Z

DBZ Cell Segunda forma Features: - Complete skeletal animation. - HD quality textures - The correct position of the weapon in the hands

Akituki Airi

Skin girls named Akituki Airi from anime! Features: - Complete skeletal animation. - HD quality textures - The correct position of the weapon in the hands

Pagani Huayra Performance

Pagani Huayra Performance for mobile GTA SA! Features: - Beautiful body; - Detailed salon; - Supports all major game functions; - The car goes well with the atmosphere of the game.

[!] 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
#
andre500
Administrator
Status:
Comments:1666
Friends:535
Respect: 477
Money: -666$
Awards:: 19
GForums: andre500
#
+1
Цитата: GTA_Masters19
Хорошо, про баг Бадману напиши что-ли

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

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

Information
To post comments, you have to log in on the site.

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


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

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


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

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

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

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

6
comment written on, 30 September 2014, 21:17
#
andre500
Administrator
Status:
Comments:1666
Friends:535
Respect: 477
Money: -666$
Awards:: 19
GForums: andre500

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

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

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

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

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

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

4
comment written on, 30 September 2014, 20:30
#
andre500
Administrator
Status:
Comments:1666
Friends:535
Respect: 477
Money: -666$
Awards:: 19
GForums: andre500

Karma: 15316
#
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
#
Desiz la peste
User
Status:
Comments:1195
Friends:71
Respect: 28
Money: 0$
Awards:: 9
GForums: Desiz la peste

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

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

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

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

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

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

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

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

Ad
GTA players counting

Рейтинг@Mail.ru





Change language


Help us to translate LibertyCity into another language!