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

Hurt & Reloading & Melee sounds for the players

broken avatar :(
Created 8 years ago
by Deleted User
0 Members and 1 Guest are viewing this topic.
3,219 views
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
I made these scripts myself about 5 months ago for my map Town of the Dead but because that map is done and I don't think I have a used for them anymore I decided to release the scripts for the community to add to their own maps.  When you add these scripts to your map it will make it so that the players will play a sound each time they reload like "RELOADING!!!!",  When they get hit by a zombie or take damage of any kind they will make a sound similar to "ARR".  And they will also make a grunt sound when they melee. 

Follow each step very carefully or else you will get errors.

First step: Find the line in zombiemode.gsc that's called
Code Snippet
Plaintext
onPlayerSpawned()

Second step: Next go a few lines down till you find this line.
Code Snippet
Plaintext
self thread player_zombie_breadcrumb();

Third step: After you find that line paste in this line:

If you want the reloading quotes add this line:
Code Snippet
Plaintext
self thread player_reload();

If you want the melee quotes add this line:
Code Snippet
Plaintext
self thread player_melee();

Four step: Go all the way to the bottem of your zombiemode.gsc and paste the following code depending on which ones you pasted above.

For player reloads
Code Snippet
Plaintext
player_reload()
{
self endon( "disconnect" );
self endon( "death" );

for(;;)
{
self waittill( "reload_start" );
wpn = self getCurrentWeapon();
if( !isDefined( wpn ) || wpn == "" ) //List the weapons you don't want them to say vox when reloading.
{
continue;
}
if( level.player_is_speaking != 1 )
{
sound = maps\_zombiemode_weapons::get_player_index( self );
level.player_is_speaking = 1;
self playsound( "plr_" + sound + "_vox_gen_reload_0" );
wait 1.5;
level.player_is_speaking = 0;
}
else
{
wait 0.3;
continue;
}
wait 5; //Cool down time (Change this if you want them to say it less)
}
}

For player melee
Code Snippet
Plaintext
player_melee()
{
self endon( "disconnect" );
self endon( "death" );

for(;;)
{
if( self MeleeButtonPressed())
{
if( level.player_is_speaking != 1 )
{
r = randomIntRange( 1, 7 );
sound = maps\_zombiemode_weapons::get_player_index( self );
level.player_is_speaking = 1;
self playsound( "plr_" + sound + "_vox_gen_exert_" + r );
wait 1;
level.player_is_speaking = 0;
}
}
wait 1;
}
}

Now you have fully installed melee & reloading quotes into your map hopefully without any errors.

Next if you want may want the grunt sounds played from the player for that its pretty simple all you need to do is follow the steps below.

First step find the line in zombiemode.gsc:
Code Snippet
Plaintext
eAttacker notify( "hit_player" );
That should be in
Code Snippet
Plaintext
player_damage_override

Second step: below that paste in below that.
Code Snippet
Plaintext
if( level.player_is_speaking != 1 )
{
soundnum = maps\_zombiemode_weapons::get_player_index(self);
ran = randomintrange(0, 5);
self playsound( "plr_" + soundnum + "_vox_gen_pain_" + ran );
}

Then that's it! You have fully followed all steps you need to know to install the player quotes into your map.  If you found this useful be sure & you add it to your map be sure to add the following credits:

-Cowman
-Partisan Executioner
-ClaytonM456

The sounds that play are cut qutoes from Call of Duty: World At War so there are no raw assets.  Thank you for looking at this topic :)
broken avatar :(
×
broken avatar :(
Location: ph
Date Registered: 22 May 2016
Last active: 5 months ago
Posts
225
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
Signature
×
KhelMho's Groups
KhelMho's Contact & Social Links
Cowman, this is perfect +1
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
Cowman, this is perfect +1

Thanks just trying to help out the community :P
broken avatar :(
  • steviewonder87
  • Deleted Member
×
broken avatar :(
steviewonder87
This user is deleted :(
Wins. :nyan:
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(

 
Loading ...