San Andreas / Mods / Mods CLEO

Engine Volume


  • vladvo | subido por vladvo
  • 10/09/2024
  • 5145 Descargas

Calificaciones:

Por favor, inicia sesión primero.


Favoritos:

Descargar
3.27Kb

Vídeos


Necesitas haber iniciado sesión para añadir vídeos a este mod.

Descripción

This mod allows to adjust engine volume for cars
and some planes (Hydra, Shamal, AT400, Adromada).
Now you can better hear passing and idling cars.

Available volume level tweaks:
- player car accelerating (gas pedal pressed)
- player car rolling - moving without pedal pressed
- player car idle - standing idle
- traffic cars driving
- traffic cars idle (like waiting at traffic light)

You can also add custom volume settings for any vehicle, including added vehicles. Cars
and bikes only !
Add strings to ini file using this template:
[XXX]
Flag=1
Acceleration=-3.0
FreeRoll=3.0
Idle=6.0

XXX - is model id. Flag=1 should be always present.
It is used internally by the mod, no effect on the game.

https://youtu.be/gPUtRdEh_L0
https://youtu.be/GyAbl0X-Zd4

Ya se han publicado 5 comentarios.

breant55
Los Santos Veteran
554
Perfil
10/27/2024 17:10



Citar | Responder | (0)
vladvoInsignia de modder
Los Santos Veteran
27
Perfil
10/10/2024 10:42


@Davidstrs
Thanks for pointing out the int-float error.

The "weird" part where there is no info in ini - it is used if a player will add custom volume settings for a vehicle.
The script gets vehicle model ID, converts it to string and checks if a section for that model is present. If not - it uses default values.

Citar | Responder | (1)
MinhKhoi21Insignia de modder
Criminal Mastermind
1658
Perfil
10/10/2024 06:58



Citar | Responder | (0)
King008500Insignia de modder
Criminal Mastermind
1765
Perfil
10/09/2024 21:20



Citar | Responder | (1)
DavidstrsInsignia de modder
Los Santos Veteran
907
Perfil
10/09/2024 17:09

hey man this mod is nice as i see here but why in script i see something weird

03C0: 10@ = actor $PLAYER_ACTOR car
0441: 30@ = car 10@ model
0AD3: 28@s = string_format "%d" 30@
if
0AF0: 29@ = read_int_from_ini_file "cleo\engine_volume.ini" section 28@s key "Flag"
then
0AF2: 21@ = read_float_from_ini_file "cleo\engine_volume.ini" section 28@s key "Acceleration"
0AF2: 22@ = read_float_from_ini_file "cleo\engine_volume.ini" section 28@s key "FreeRoll"
0AF2: 23@ = read_float_from_ini_file "cleo\engine_volume.ini" section 28@s key "Idle"
else
//set default values
0085: 21@ = 18@ // (int)
0085: 22@ = 19@ // (int)
0085: 23@ = 20@ // (int)
end

i am sure there is something wrong

this it should be 0087: you using 85 its a int
0085: 21@ = 18@ // (int)
0085: 22@ = 19@ // (int)
0085: 23@ = 20@ // (int)


this one here

0441: 30@ = car 10@ model
0AD3: 28@s = string_format "%d" 30@
if
0AF0: 29@ = read_int_from_ini_file "cleo\engine_volume.ini" section 28@s key "Flag"
then
0AF2: 21@ = read_float_from_ini_file "cleo\engine_volume.ini" section 28@s key "Acceleration"
0AF2: 22@ = read_float_from_ini_file "cleo\engine_volume.ini" section 28@s key "FreeRoll"
0AF2: 23@ = read_float_from_ini_file "cleo\engine_volume.ini" section 28@s key "Idle"

it is reading but no info in "engine_volume.ini" idk why is that you can check

Citar | Responder | (2)