Latest topics

» The Raging Bull
by woofiedog Today at 2:51 pm

» Errors 98% during mission download
by Kozak76 Today at 11:03 am

» Video from SF
by plug_nickel Yesterday at 12:06 pm

» Українська локалізація/Ukrainian local
by will73 Yesterday at 6:40 am

» black tanks
by eagle64 Tue Sep 19, 2017 10:32 am

» Video Achtung Panzer
by plug_nickel Mon Sep 18, 2017 1:45 pm

» 2.3 sta troubleshooting
by cftaurus Mon Sep 18, 2017 1:27 pm

» Ukraine fights against enemy.
by lockie Sun Sep 17, 2017 5:45 pm

» STA2.3 version
by mechanic Sun Sep 17, 2017 7:26 am

September 2017

MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
252627282930 

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 : 3642
    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 Thu Sep 21, 2017 6:43 pm