With this script, skins will now be able to flash without the need or dependency on an IFP animation file, but how is this possible? Quite simply, there are a couple of requirements that must be met and they are as follows:
The skin must have rigged eyes, as follows:
R Brow bone ->>> the lower eyelid of both eyes.
L Brow bone ->>> the upper lid of both eyes.
I show you an example of a skin:
Upper eyelid ->>> L Brow
Lower eyelid ->>> R Brow
2. For this mod to work, you must have the script installed: CScriptEngine_process_call.cs by Wesser
you probably need to know about some problems:
The "CScriptEngine_process_call" makes the red marks of the mission objectives no longer appear.
But you also have some advantages:
the bug of lagging particles and objects when creating them or grabbing them to some entity is fixed (no more lagging attached objects)
Now you know, don't be surprised if you encounter any other problems.
Installation: Just copy the file inside CLEO folder.
Copy
ped_blink_bsp.cs
📂 folder named: ped_blink_bsp
into CLEO folder in GTA SA root folder.
and that's it, now just place the INI files inside the folder and the script will automatically make it work, and remember this only works with PLAYER.
To configure the INI, follow the instructions below
In the folder📂 examples, you will find three files, they are examples of three skins, that contain the configuration of each skin, so you have to create the specific file for your skins.
This means that for each skin you add, you must add a new INI file, and each file must be named the same as the added model.
Example1:
Name of your skins: evaas.dff/txd
INI name: evaas.ini
Example2:
Name of your skins: bmost.dff/.txd
INI name: bmost.ini
Lets take a look at the INI file:
[SETUP] -> settings for user
cheatUpdate: cheat to update script data in case any strange behavior (15 char long as max)
delay: time between each blink in ms (default: 4000)
if delay = -1 -->>> random time between 2500 - 4000
timeCloseEyes: time it takes to close the eyes in seconds (float)
timeOpenEyes: time it takes to open the eyes in seconds (float)
skinName: you must write here the name of your skin, for example, if you add a skin called "a74rh", then this name must be copied here and it has to be the same as the INI file.
another example, if you replaced a skin called "bmost", then it will be skinName = bmost and the ini must be: bmost.ini
I have been clear, right?
[DATA] -> contain the information about the rotation values of the bones (L&R Brow), these values will be different depending on how the skins were rigged and the rotation of the L&R Brow bones.
LBrowRotMin ->> in game Z bone axis Rotation (minimum value means open eyelid)
LBrowRotMax ->> in game Z bone axis Rotation (maximum value means closed eyelid)
LBrowRotY ->> in game Y bone axis Rotation
LBrowRotX ->> in game X bone axis Rotation
Remember, L Brow is the upper eyelid and R Brow the lower eyelid.
RBrowRotMin ->> in game Z bone axis Rotation (minimum value means open eyelid)
RBrowRotMax ->> in game Z bone axis Rotation (maximum value means closed eyelid)
RBrowRotY ->> in game Y bone axis Rotation
RBrowRotX ->> in game X bone axis Rotation
<-- For Rotation Z, we can think of it, as if LBrow (upper eyelid), goes in a downward direction, (up the minimum part, down the maximum displacement)
<-- same for RBrow (lower eyelid), goes in upward direction, (up the maximum displacement, down the minimum value)
****** the minimum values are: eyelids open
****** the maximum values are: closed eyelids
And that's it, if you did it right, you will be able to see your skins flashing in the game 👍
if you have any problem configuring the INI file, and your skin doesn't flicker as expected, deforms and so on, then I recommend you to use my Dev Tool, a script I made to get that information directly from the game.
I made this tool to make your life easier, it will give you the information that you must put inside the [DATA] section of the INI files (see above).
First of all, to use this tool, you must temporarily remove the ped_blink_bsp.cs file from the cleo folder, this to avoid any conflict between the scripts (which there is none), but still, I recommend it to avoid strange behaviors
Now, to install it, copy these files:
helper_blink_bsp.cs
helper_blink_bsp.ini
into CLEO folder in GTA SA root folder.
and it's done, open the game, and follow the instructions:
Change your skin, with any skin selector
Press the keys: 9 8 7 together to open the menu
Follow the instructions on the screen
When you finish configuring your skin, it is time to prepare the INI file that will be used for the ped_blink_bsp.cs script.
Press ENTER to save the configuration to a new file, you will see a message appear at the bottom left of the screen indicating the name of the new file, remember it.
Now you can close the menu and close the game, it is time to prepare the INI to work with the ped-blinking script.
In the CLEO folder, you will find the files created with this tool, the created files will have the name:
nameSkin0, nameSkin1, nameSkinN....... and so on
The files are NOT rewritten, every time you press the enter key, it will create a new file, remember that.
When you open the INI file, you will find the following information:
Oh, very familiar, isn't it?
Now we must take any of the INI files from the examples folder 📂, which come in the mod ped_blink_bsp.cs (se above)
For this example I am going to take the file named: evaas.ini and name it: testSK.ini
Note: Don't forget what you read above, the name of the INI file is the same as the name of the Model (.dff/.txd) and the same as the name that is placed inside the INI (recommendation, use short names).
Add the name of the file inside the INI
Skin Name:
testSK.dff
testSK.txd
Reopen the nameSkin1.INI file created with the tool, and copy its contents into the new INI file named testSK.ini
The File would look like this:
I recommend rounding the values to the nearest higher or lower, leaving the values in multiplies of 5 and adding decimals to the numbers that do not have decimals.
Save your file, and you're done.
Final steps:
Delete or save the files:
helper_blink_bsp.cs
helper_blink_bsp.ini
nameSkin0.ini
nameSkin1.ini
nameSkinN.ini
....
whatever you have created with this tool, you must remove it from the CLEO folder.
Copy the ped_blink_bsp.cs file back into the cleo folder, and copy the testSK.ini file into the ped_blink_bps folder 📂 and you are done.
when in the game you change your skin to the new skin called "testSK", the eye blinking will take effect 👍