UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Dog sounds for Der Riese style map

broken avatar :(
Created 11 years ago
by Deer2014
0 Members and 1 Guest are viewing this topic.
2,021 views
broken avatar :(
×
broken avatar :(
Location: hu
Date Registered: 20 July 2014
Last active: 6 months ago
Posts
89
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
Deer2014's Groups
Deer2014's Contact & Social Links
Hi guys,

No dog attack sound (Der Riese style map).
When coming the dog's level the start sound "Fetch me their souls" is OK, but no dog attack sound, no dog growl sound, nothing.

What can I do?

my _callbacks.csc file looks like this:

Code Snippet
Plaintext
#include clientscripts\_utility;
#include clientscripts\_vehicle;
#include clientscripts\_lights;
#include clientscripts\_fx;
statechange(clientNum, system, newState)
{
 if(!isdefined(level._systemStates))
  {
     level._systemStates = [];
  }
  if(!isdefined(level._systemStates[system]))
  {
     level._systemStates[system] = spawnstruct();
  }
  //level._systemStates[system].oldState = oldState;
  level._systemStates[system].state = newState;
     if(isdefined(level._systemStates[system].callback))
  {
     [[level._systemStates[system].callback]](clientNum, newState);
  }
  else
  {
     println("*** Unhandled client system state change - " + system + " - has no registered callback function.");
  }
}
maprestart()
{
  println("*** Client script VM map restart.");
     // This really needs to be in a loop over 0 -> num local clients.
  // syncsystemstates(0);
}
init_fx(clientNum)
{
  waitforclient(clientNum);
  clientscripts\_fx::fx_init(clientNum);
}
localclientconnect(clientNum)
{
  println("*** Client script VM : Local client connect " + clientNum);
     level.usetreadfx = 1;
  if(isdefined(level._load_done) && clientNum > 0)
  {
     level notify( "kill_treads_forever" );   // doesn't work in split screen yet.
     level.usetreadfx = 0;   
      }
  if(!isdefined(level._laststand))
  {
     level._laststand = [];
  }
   level._laststand[clientNum] = false;
  level notify("effects_init_"+clientNum);
}
localclientdisconnect(clientNum)
{
  println("*** Client script VM : Local client disconnect " + clientNum);
  player = getlocalplayers()[clientNum];
  player notify("disconnect");
}
entityspawned(localClientNum)
{
  self endon( "entityshutdown" );
    if( self.type == "vehicle"  )
  {
        // if _load.csc hasn't been called (such as in most testmaps), set up vehicle arrays specifically
     if( !isdefined( level.vehicles_inited ) )
     {
        clientscripts\_vehicle::init_vehicles();
     }
     if(isdefined(level._customVehicleCB))
     {
        keys = getarraykeys(level._customVehicleCB);
           for(i = 0; i < keys.size; i ++)
        {
           if(self.vehicletype == keys[i])   // This vehicle type matches an entry in our custom CB array.
           {
              self thread [[level._customVehicleCB[keys[i]]]](localClientNum);
           }
        }
     }
      // aircrafts don't need treadfx/exhaustfx
     if ( !( self is_aircraft() ) && level.usetreadfx == 1 )
     {
        self thread vehicle_treads(localClientNum);
        self thread playTankExhaust(localClientNum);
        self thread vehicle_rumble(localClientNum);
        self thread vehicle_variants(localClientNum);
        self thread vehicle_clientinit(localClientNum);
        self thread vehicle_weapon_fired();
     }
     else if (self is_aircraft())
     {
        //println("*** Client : Aircraft dustkick.");
        self thread aircraft_dustkick();
     }
     }
}   
scriptmodelspawned(local_client_num, ent, destructable_index)
{
  if(destructable_index == 0)
     return;      // Get out of here.
   if(!isdefined(level.createFXent))
     return;
  fixed = false;
      for(i = 0; i < level.createFXent.size; i ++)
  {
     if(level.createFXent[i].v["type"] != "exploder")
        continue;
         exploder = level.createFXent[i];
     if(!isdefined(exploder.needs_fixup))
        continue;
        if(exploder.needs_fixup == destructable_index)
     {
 //structinfo(exploder);
               //exploder.v["origin"] = ent.origin;
        //exploder.v["angles"] = ent.angles;
/*         println("exp org " + exploder.v["origin"]);
        println("ent org " + ent.origin);
        println("ent ang " + ent.angles); */
        exploder.v["angles"] = VectorToAngles( ent.origin - exploder.v["origin"] );   
        exploder clientscripts\_fx::set_forward_and_up_vectors();
/*         keys = getarraykeys(exploder.v);
                 for(i = 0; i < keys.size; i ++)
        {
           println(keys[i] + " : " + exploder.v[keys[i]]);
        }         
        println("** Fixed up exploder " + i);   */
        exploder.needs_fixup = undefined;
        fixed = true;
     }
  }   
}
callback_activate_exploder(exploder_id)
{
  if(!isdefined(level._exploder_ids))
     return;
   keys = getarraykeys(level._exploder_ids);
 exploder = undefined;
    for(i = 0; i < keys.size; i ++)
  {
     if(level._exploder_ids[keys[i]] == exploder_id)
     {
        exploder = keys[i];
        break;
     }
  }
 if(!isdefined(exploder))
  {
     println("*** Client : Exploder id " + exploder_id + " unknown.");
     return;
  }
  println("*** Client callback - activate exploder " + exploder_id + " : " + exploder);
  clientscripts\_fx::activate_exploder(exploder);
}
callback_deactivate_exploder(exploder_id)
{
  if(!isdefined(level._exploder_ids))
     return;
  keys = getarraykeys(level._exploder_ids);
  exploder = undefined;
     for(i = 0; i < keys.size; i ++)
  {
     if(level._exploder_ids[keys[i]] == exploder_id)
     {
        exploder = keys[i];
        break;
     }
  }
 if(!isdefined(exploder))
  {
     println("*** Client : Exploder id " + exploder_id + " unknown.");
     return;
  }
println("*** Client callback - deactivate exploder " + exploder_id + " : " + exploder);
clientscripts\_fx::deactivate_exploder(exploder);
}
level_notify(notify_name, param1, param2)
{
  level notify(notify_name, param1, param2);
}
sound_notify(client_num, entity,  note )
{
  if ( note == "sound_dogstep_run_default" )
  {   
     entity playsound( client_num, "dogstep_run_default" );
     return true;
  }
     prefix = getsubstr( note, 0, 5 );
  if ( prefix != "sound" )
     return false;
     alias = "anml" + getsubstr( note, 5 );
entity play_dog_sound( client_num, alias);
}
dog_sound_print( message )
{
/#
  level.dog_debug_sound = false;
   if (!level.dog_debug_sound)
     return;
       println("CLIENT DOG SOUND: " + message );
#/
}
play_dog_sound( localClientNum, sound, position )
{
  dog_sound_print( "SOUND " + sound);
     if ( isdefined( position ) )
  {
     return self playsound( localClientNum, sound, position );
  }
   return self playsound( localClientNum, sound );
}

and my dlc2_share.csv:

Code Snippet
Plaintext
# Dogs,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
dog_round_start,SFX\Levels\zombie\dog_round\dog_round_start,,1,1,1,50,1500,1,reject,1,reject,full_vol,,curve2,,,,,1,1,,2d,,,,master,,,,,,,music_all,,,,,,0.5,,,,,,10,25,0.25,1,,
zombie_dog_death_vox,SFX\Levels\zombie\hellhound\death_##,,,0.75,1,75,1000,2,priority,1,reject,voice,,,0.8,1200,,curve2,1,1.1,,3d,,,,,,,,,,,,,,75,250,0.75,0.15,,,no,,,70,90,0.25,1,,
dog_trail_fire,SFX\Levels\zombie\hellhound\fire\loop_00.wav,,,0.75,1,75,1000,2,priority,1,reject,voice,,,0.8,1200,,curve2,1,1.1,,3d,,,,,,,,,,,,,,75,250,0.75,0.15,,,no,,,70,90,0.25,1,,
dog_trail_fire_breath,SFX\Levels\zombie\hellhound\fire\zdog_breath_loop.wav,,,0.75,1,75,1000,2,priority,1,reject,voice,,,0.8,1200,,curve2,1,1.1,,3d,,,,,,,,,,,,,,75,250,0.75,0.15,,,no,,,70,90,0.25,1,,
zdog_close,SFX\Levels\zombie\hellhound\close_##,,,0.75,1,75,1000,2,priority,1,reject,voice,,,0.8,1200,,curve2,1,1.1,,3d,,,,,,,,,,,,,,75,250,0.75,0.15,,,no,,,70,90,0.25,1,,
zombie_dog_death,SFX\Levels\zombie\hellhound\death2_##,,,0.75,1,75,1000,2,priority,1,reject,voice,,,0.8,1200,,curve2,1,1.1,,3d,,,,,,,,,,,,,,75,250,0.75,0.15,,,no,,,70,90,0.25,1,,
anml_dog_attack_jump,SFX\Levels\zombie\hellhound\bite_##,,,0.75,1,75,1000,2,priority,1,reject,voice,,,0.8,1200,,curve2,1,1.1,,3d,,,,,,,,,,,,,,75,250,0.75,0.15,,,no,,,70,90,0.25,1,,
dogstep_run_default,SFX\Levels\zombie\hellhound\step_##,,,0.75,1,75,1000,2,priority,1,reject,voice,,,0.8,1200,,curve2,1,1.1,,3d,,,,,,,,,,,,,,75,250,0.75,0.15,,,no,,,70,90,0.25,1,,
anml_dog_bark,SFX\Levels\zombie\hellhound\attack_##,,,0.75,1,75,1000,2,priority,1,reject,voice,,,0.8,1200,,curve2,1,1.1,,3d,,,,,,,,,,,,,,75,250,0.75,0.15,,,no,,,70,90,0.25,1,,

How can I fix it? Please help.
Marked as best answer by Deer2014 11 years ago
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 6 years ago
Posts
6,875
Respect
Forum Rank
Immortal
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social LinksHarryBo000[email protected]HarryBo21
well to begin with, you should be looking in "DLC3_share" rather than DLC2 i believe
broken avatar :(
×
broken avatar :(
Location: hu
Date Registered: 20 July 2014
Last active: 6 months ago
Posts
89
Respect
Forum Rank
Rotting Walker
Primary Group
Member
×
Deer2014's Groups
Deer2014's Contact & Social Links
well to begin with, you should be looking in "DLC3_share" rather than DLC2 i believe

I have no DLC2.csv. But I insert dog soundalias lines to dlc_share.csv and working.
Last Edit: May 09, 2015, 08:33:59 pm by Deer2014
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 6 years ago
Posts
6,875
Respect
Forum Rank
Immortal
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social LinksHarryBo000[email protected]HarryBo21
Quote
and my dlc2_share.csv:
eh? lol

well glad its working anyway lol

 
Loading ...