San Andreas / Mod / Mod CLEO

Engine Volume


  • vladvo | di-upload oleh vladvo
  • 10/09/2024
  • 4936 Jumlah download

Rating:

Login dulu, ya.


Favorit:

Download
3.27Kb

Videos


Kamu harus login untuk menambahkan video ke mod ini.

Deskripsi

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

Sudah ada 5 komentar.

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



Kutip | Balas | (0)
vladvoBadge modder
Los Santos Veteran
27
Profil
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.

Kutip | Balas | (1)
MinhKhoi21Badge modder
Criminal Mastermind
1658
Profil
10/10/2024 06:58



Kutip | Balas | (0)
King008500Badge modder
Criminal Mastermind
1765
Profil
10/09/2024 21:20



Kutip | Balas | (1)
DavidstrsBadge modder
Los Santos Veteran
898
Profil
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

Kutip | Balas | (2)