Φορτώνει...

Simple Character Swap point creator 1.3

Λήψη
schio84dude

855

With this mod it is possible to define character swap points (charswap points) in strategic locations. This script is light, simple, and fully editable. I did it with the intention of being able to change characters without having to access menus, maintaining immersion, and adding protagonists from other series to their mod maps. Currently this script.cs has the following features:

version 1.3:

_added fade out/in effect for smooth transition between char changes.

_added possibility of vehicle coming with random tuning when setting a vehicle to the char spawn inside.

_fixed swap bug, now it is only possible to swap the character if it is not in a vehicle

_when swapping, the vehicle of the mod character will no longer be deleted

_now the markers of the swap points on the ground have the same color that you define for the blip icons on the map (use colors: Yellow, Red, Green, Blue, Orange, Purple, Pink, White)

_added to the config file a list of some blip icons to be used for each swap point created

_now in addition to the random colors (primary and secondary) of the vehicles via r.g.b or a single value such as 255.0.0 (red), the 'default' value was added so that the vehicle is spawned with the random default colors of each model

_Now the points saved with Ctrl+K are saved like this in the charswap.ini file:

[markerName:Character Swap] (set name of the swappoint that will be shown on the map)
pedmodel:s_m_y_cop_01, (ped model name, suports ped addon mods)
posX:-1932.397, (position X of char swap point)
posY:-573.9827, (position Y of char swap point)
posZ:11.60923, (position Z of char swap point)
rotation:35.43558, (Direction in which the char will be spawned when swapped)
blipColor:Yellow, (color of the marker and blip icon on the map)
blipSprite:LastTeamStanding, (model of the blip icon to show on the map)
destX:-1942.397, (destination position X where the char will be teleported at spawn)
destY:-583.9827, (destination position Y where the char will be teleported at spawn)
destZ:51.60923, (destination position Z where the char will be teleported at spawn)
destRotation:35.43558, (Direction in which the char will be spawned)
vehicleModel:zentorno, (vehicle name model, suports mod, car, boats, bike, plane etc)
primaryColor: default, (vehicle main color, use: default, r.g.b or 255.0.0 for red etc)
secondaryColor: r.g.b, (veh secundary color, use: default, r.g.b or 0.0.255 for blue etc)
vehicleRandomCustomization:false (set true for enable, auto support vehicle mod tuning)

Don't forget: after editing the above values ​​in the charswap.ini file, you must press Ctrl+C to reload the settings in the game.

Note: there is no support for reading ini files from previous versions, you must create again or manually edit the file filling in the new format

version 1.2:

_fixed rare freezing bug

_added customization of vehicle colors 1 and 2 via rgb in the ini file

_reduced minimum time to change from 10 to 3 seconds

_support for reading ini files from previous versions

Tutorial for changing car colors:
when creating a new point with CTRL+K, 2 rgb values ​​are created at the end of the ini file line, one for the primary color and the other secundary color: 'r.g.b','r.g.b', simply change these values ​​from 0 to 250. If you leave it as r.g.b then the car will bring the default colors. For all black color leave 0.0.0 or white leave 250.250.250.

version 1.1:

_added possibility of teleportation at the swap point

_added possibility of spawning in any vehicle at the swap point

_fixed bug of duplicate blips on the map when reloading the settings

_the script reads the ini file of the old version

Tutorial to configure teleportation and be spawned inside a vehicle:
When saving a new swappoint with ctrl+K, as default, the following line is created in the charswap.ini file:
'29.00,-15.94,29.34,17.25,s_m_y_cop_01,Character Swap,Yellow,LastTeamStanding,29.00,-15.94,29.34,17.25,null'
where:
'origin position x, y, z, direction, ped model, marker name, icon color, blip icon name on the map, destination x, z, y, direction, vehicle name '
The destination coordinates x y z and direction are saved as default, equal to the origin coordinates. Change them here to the desired destination coordinates so that during the change your ped is spawned in another location, and change the vehicle name from null to adder (supports any type of vehicle) so that the ped appears spawned in the direction inside a vehicle.
ex:
'29.00,-15.94,29.34,17.25,s_m_y_cop_01,Character Swap,Yellow,LastTeamStanding,65.00,88.94,54.34,90.25,adder'

_when switching the character to the main character, the teleport does not occur again

_when switching the character to the main character, the PED car (if configured in the ini) is unloaded from memory

Version 1.0:

_self-initializing script

_saves new character swap points (chaswap points) with the Ctrl+K keys in the chaswap.ini file

_new chaswap points are saved according to the default settings set in chaswap.config, being: defaultPedModel, defaultBlipColor and defaultBlipSprite.

_it is possible to edit the points saved in charswap.ini, being x,y,z position, ped model, name of the map point, name of the blip icon to be used on the map.

_use the Ctrl+C keys to reload the charswap.ini and charswap.config files if you edited them manually during the game

_to return to the main character, simply enter any character change point again.

_with an interval of approximately 7 seconds between swaps

Known bugs:

_Whenever you reload the settings with Ctrl+C, the number of blips on the map are doubled, but return to normal whenever you restart the game.

__________put the charswap files in script folder
Show Full Description

Πρωτοανέβηκε: 4 Μάρτιος 2025
Πιο πρόσφατη ενημέρωση: πριν 5 μέρες
Last Downloaded: 2 hours ago

All Versions

 1.3 (current)

110 λήψεις , 7 KB
πριν 5 μέρες

 1.2

210 λήψεις , 6 KB
3 Απρίλιος 2025

 1.1

24 λήψεις , 5 KB
2 Απρίλιος 2025

 1.0

511 λήψεις , 4 KB
4 Μάρτιος 2025

5 σχόλια