CoDJumper.com YouTube Channel logo CoDJumper.com Facebook group logo CoDJumper.com Xfire group CoDJumper.com Twitter logo CoDJumper.com Steam group logo

 



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Help me with script dialogs, please
PostPosted: January 5th, 2017, 9:11 am 
CJ Wannabe
User avatar
Joined: January 5th, 2017, 8:10 am
Posts: 7
Hi.

Advise me please.
as i think that i have problem with soundaliases. I many see forums and other sites about this topic but it's no helped me, and I do not understand.

How I want to do is shown in the picture, which I attached in the post.

such moment.
I want to make a dialogue for my allies actors. the like code examples working in all standart maps in named_anim.gsc into CoDWaW (SP):

---------------------------------------------

load.scr_anim[nameactor_from_radiant_named][animname] ="%ch_named_actor_animation_(form_xanim_folder)";
//chatting
load.scr_sound[nameactor_from_radiant_named][animname] = "name_sound_from_soundaliases";

--------------------------------------------


and i write so code for dialogue (animation + sound) with use 2 triggers:


//////////// in main gsc i insort:

#include maps\_anim;
#include maps\_utility;
#include common_scripts\utility;

main()
{


flag_init( "player_spawns_soldier" );
flag_init( "sgt_reaches_trigger" );
flag_init( "soldier_reaches_trigger" );

thread heroes();

//wait for soldier to reach his trigger after spawn
flag_wait( "soldier_reaches_trigger" );

maps\mymap_anim::main();

}




heroes() {

flag_wait( "player_spawns_solider" );

//we have to wait a small instance so game recognizes ai existance
wait 0.15;

level.chernov = getent( "pvt. Chernov", "targetname" );
level.chernov.animname = "intro_cher";

flag_wait( "soldier_reaches_trigger" );

//wait a bit for seargant to be alive in game
wait 0.15;

level.Reznov = getent( "sgt. Reznov", "targetname" );
level.Reznov.animname = "intro_rez";

}



//////////// and this code insert to my mymap_anim.gsc :


#include maps\_anim;
#include maps\_utility;
#include common_scripts\utility;

#using_animtree("generic_human");
main() {

setup_level_anims();
audio_loader();
}

////////////////////////////////////////////// this code /////////////////////////////////////////////////////////////////////
setup_level_anims()
{

//lets wait for sargeant to reach his trigger
flag_wait( "sgt_reaches_trigger" );

wait 0.75;

level.scr_anim["Reznov"]["intro_rez"] = %ch_seelow1_reznov_runandcaugh;
addNotetrack_dialogue( "reznov", "Ber3_INT_000A_REZN", "intro_rez_01", "Ber3_INT_000A_REZN" );
level.scr_anim["chernov"]["intro_cher"] = %ch_seelow1_intro_chernov;
addNotetrack_dialogue( "chernov", "Ber3_IGD_028A_CHER_A", "intro_chern_01", "Ber3_IGD_028A_CHER_A" );

wait 0.15; //pause2

}

audio_loader()
{

level.scr_sound["Reznov"]["intro_rez_01"] = "See1_INT_011A_REZN01";
level.scr_sound["Reznov"]["intro_rez_02"] = "See1_INT_013A_REZN02";

wait 0.2; //pause

level.scr_sound["chernov"]["intro_chern_01"] = "Ber3_IGD_028A_CHER_A";

wait 0.2; //pause

level.scr_sound["Reznov"]["intro_rez_03"] = "See1_IGD_148A_REZN03";
level.scr_sound["Reznov"]["intro_rez_04"] = "See1_IGD_149A_REZN04";
level.scr_sound["Reznov"]["intro_rez_05"] = "See1_IGD_300A_REZN05";
level.scr_sound["Reznov"]["intro_rez_06"] = "See1_IGD_058A_REZN06";
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


but still this code don't working. :((
CoDWaW doesn't show any errors when loading this map even if i load map from ~devmap - no errors.

This map load is complite and i walking in the map and Chernov and Reznov spawning - ok
but both they don't talk ((

Help, what could be the problem, at least understanding of the causes.
code like as a "self playsound (....);" - no interest because then actor speech without animation lips.
May be i need add more #include maps\< more files is _files >; on top?

Anybody can help me, very much

I'm really looking forward to help. Thank you very much in advance


You do not have the required permissions to view the files attached to this post.


Profile  Offline
Reply with quote  
 Post subject: Re: Help me with script dialogs, please
PostPosted: January 9th, 2017, 11:45 pm 
PC Team
User avatar
Joined: May 13th, 2008, 8:17 am
Posts: 1619
Location: Estonia
Bump

_________________
I'll take care of checking whether the music is royalty-free or not

Let's save this post.

Image

Uploaded with ImageShack.us


Profile  Offline
Reply with quote  
 Post subject: Re: Help me with script dialogs, please
PostPosted: January 10th, 2017, 3:41 pm 
CJ Wannabe
User avatar
Joined: January 5th, 2017, 8:10 am
Posts: 7
Xpayne wrote:
Bump

Prosto hochetsia sozdat karty s maksimalnim realizmom) Eto ia uje kak hidijnik govoru ))
I po spesialnosti hidojnik


Profile  Offline
Reply with quote  
 Post subject: Re: Help me with script dialogs, please
PostPosted: January 10th, 2017, 3:46 pm 
CJ Wannabe
User avatar
Joined: January 5th, 2017, 8:10 am
Posts: 7
Want make a good map)

and its should be is a:
with good working AI system.
with spawning / reinforcements,
objective without showing in compass,
+ Environment, atmosphere, weather,
+ Enviromental Audio Systems (around sound system of nature sounds)
+ have been relevant on the effects of (a lot of unnecessary just to shove, it's stupid and unreality, and everything in the map should be in moderation, balance sheet).

and more....


Profile  Offline
Reply with quote  
 Post subject: Re: Help me with script dialogs, please
PostPosted: January 10th, 2017, 4:01 pm 
PC Team
User avatar
Joined: May 13th, 2008, 8:17 am
Posts: 1619
Location: Estonia
Esli bi znal, otvetil =/ Nadejysj kto nibut otvetit

_________________
I'll take care of checking whether the music is royalty-free or not

Let's save this post.

Image

Uploaded with ImageShack.us


Profile  Offline
Reply with quote  

Display posts from previous:  Sort by  

Post new topic Reply to topic  [ 5 posts ]   

Index » Mapping & Jump Maps » CoD:WaW Mapping Help

 

 

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

Panel

Top You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme by Pedsdude and KillerSam, based on
Melankonia by Ercan K.