Latest topics

» Video from SF
by KurtTank Today at 8:14 pm

» Armor That Never Made the Battlefield
by woofiedog Today at 5:24 pm

» Ukraine fights against enemy.
by lockie Today at 4:43 pm

» STA v2.3 - Still No GMP 1, 2, and 3 Scenarios
by Drac_PC-Gamer Today at 12:52 pm

» The Sun Comes Up, the Sun Goes Down
by woofiedog Yesterday at 11:13 pm

» Computer Overhaul
by woofiedog Yesterday at 8:09 pm

» New & Updated Models(Нові Моделі)
by Glushak Yesterday at 7:25 pm

» 2017 Please Help : Major Mods, Patches + More
by frinik Yesterday at 2:48 pm

» T-62 in action
by lockie Mon Jul 24, 2017 10:10 pm

July 2017

MonTueWedThuFriSatSun
     12
3456789
10111213141516
17181920212223
24252627282930
31      

Calendar Calendar


    How to voice the phrases?

    Share
    avatar
    slavic99

    Posts : 9
    Join date : 2016-04-21

    How to voice the phrases?

    Post by slavic99 on Thu May 05, 2016 11:28 am

    Hello SF Community,

    i want to know how to put your own voice over or other sounds into the game?

    Could you help me, please?
    avatar
    lockie
    TSF Member
    TSF Member

    Posts : 3561
    Join date : 2014-07-24
    Age : 50
    Location : Ukraine, Kyiv

    Re: How to voice the phrases?

    Post by lockie on Fri May 06, 2016 9:15 am

    It's not easy, but possible.
    Let's take mission GMP1.x, T-38 tank-scout
    1. add the next entries to the file:
    data\k42\loc_rus\levels\LEVELS\SCRIPTS\cm_pack_mission10\T-38_general_scripts.engscr

    block triggers() {}
    01_chest2_kld, 0x2000f, sov_tnk_01:BA, 3.000;
    01_chest2_kld, 0x2000d, msg_chest2_kld, 0xffffffff, 8.000;
    01_chest2_kld, 0x2000b, wing2_kld, 0.000, 0;

    01_chest3_kld, 0x2000f, sov_tnk_01:CA, 3.000;
    01_chest3_kld, 0x2000d,  wing3_kld, 0xffffffff, 8.000;
    01_chest3_kld, 0x2000b, wing3_kld, 0.000, 0;

    where
    01_chest2_kld - trigger name

    0x2000f - trigger code (unit efficiency decreased)
    sov_tnk_01:BA - code wingman No2
    AA - user tank, first group
    BA - wingman No2, first group
    CA - wingman No3, first group

    3.000 - unit efficiency decreased 3x times

    0x2000d - trigger code (text message)
    msg_chest2_kld - message text
    0xffffffff - text color (always 0xffffffff)
    8.000 - time of the message displaying

    0x2000d - trigger code (music/speech)
    wing2_kld - name music/speech fragment in format ogg, 128kBit, mono
    0.000 - time of fade out (usually for music)
    0 - cycle (1/0)

    2. add the next entries to the file:
    data\k42\loc_rus\levels\LEVELS\SCRIPTS\cm_pack_mission10\T-38_general_loc_data.text

    block loc_rus() {}
    msg_chest2_kld() {= Radiomessage =\nThis is CHESTNUT TWO. I got hit! Bail out!\n;}//wingman2
    msg_chest3_kld() {= Radiomessage =\nThis is CHESTNUT THREE. My vehicle destroyed! Get outta here!\n;}//wingman3

    4. Save and play


    Last edited by lockie on Fri May 06, 2016 10:51 am; edited 2 times in total
    avatar
    slavic99

    Posts : 9
    Join date : 2016-04-21

    Re: How to voice the phrases?

    Post by slavic99 on Fri May 06, 2016 10:39 am

    All right, thank you, i´ll try it out

    Sponsored content

    Re: How to voice the phrases?

    Post by Sponsored content


      Current date/time is Wed Jul 26, 2017 9:34 pm