PDA

View Full Version : Change sounds of custom vehicles



Solistx001
17-06-2010, 17:46
Yesterday I was testing my Warrior IFV vehicle and I noticed it has this bad genric sound that I wish to get rid of. I looked throughout the forums and nobody had a tutorial.

So I went into the Tank.inc file and found what I was looking for to change the sounds. So I entered my tank as this


(define "ifv_sound"
{on "add_movement_sound" overload
{link_sound "move" "vehicle/tracks/m4a2" }
{link_sound "engine" "vehicle/engine/m4" }
{link_sound "engine_end" "vehicle/engine/m7_end" }
{link_sound "rotate_turret" "vehicle/turret/sherman" }
{link_sound "exhaust" "vehicle/engine/m4a2_up" }
}
)
{"mcv_warrior"
("ifv_sound")
("burn_by_engine" args 0.3)
}
{"mcv_warrior"
{on "add_movement_sound" overload
{link_sound "move" "vehicle/tracks/m4a2" }
{link_sound "engine" "vehicle/engine/m4" }
{link_sound "engine_end" "vehicle/engine/m7_end" }
{link_sound "rotate_turret" "vehicle/turret/sherman" }
{link_sound "exhaust" "vehicle/engine/m4a2_up" }
}
("burn_by_engine" args 0.3)
}

I not only tried this, but other numurous ways and it did not work. So to see if it was jusst my code that was not correct, I chnaged the t34_0 from t34 sounds to another is_sound and nothing happened. What do I need to change in order to get my tank sound to change as well?

By the way : I took away tank after the mcv_warrior and it still didn't work. The mdl extension of my tank is mcv_warrior.mdl, so why doesn't it work?

Blub0r2k
17-06-2010, 17:59
yre you testing in mp or sp ? ( editor = sp )

there are 2 Tank.inc files in vanilla called : tank_sp.inc and tank.inc , the last one is for mp , the first one for sp so choose right which one to edit ;)

Solistx001
17-06-2010, 19:56
Oh, okay, I thought there was only one, because in the extracted resource folder I only saw one tank.inc. I didn't see a tank_sp. Let me try that and see which works.
.....

YES!!!!!!!! It works okay, thanks.