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

BO3 styled headshot sound?

broken avatar :(
Created 7 years ago
by ibreakteam
0 Members and 1 Guest are viewing this topic.
1,930 views
broken avatar :(
×
broken avatar :(
Location: cn
Date Registered: 29 June 2016
Last active: 2 years ago
Posts
6
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
ibreakteam's Groups
ibreakteam's Contact & Social Links
How do you make it so that if the zombie dies from a headshot it plays a headshot sound?
I tried editing the zombie_death_event but it didn't work.

Heres the code I tried to add(i got the line from the hitmarkers script)
Code Snippet
Plaintext
zombie_death_event( zombie )
{
zombie waittill( "death" );
zombie thread zombie_eye_glow_stop();
if ( animscripts\utility::damageLocationIsAny( "head", "helmet", "neck" ) )
{
                // Sound here
self playsound( "bullet_impact_headshot_helmet_nodie" );
}
Marked as best answer by ibreakteam 7 years ago
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
in _zombiemode_score look for this:

Code Snippet
Plaintext
		case "head":
case "helmet":
score = level.zombie_vars["zombie_score_bonus_head"];
break;

and add the sound there:
Code Snippet
Plaintext
		case "head":
case "helmet":
score = level.zombie_vars["zombie_score_bonus_head"];
self playsound( "bullet_impact_headshot_helmet_nodie" );
break;
         
broken avatar :(
×
broken avatar :(
Location: cn
Date Registered: 29 June 2016
Last active: 2 years ago
Posts
6
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
ibreakteam's Groups
ibreakteam's Contact & Social Links
in _zombiemode_score look for this:

Code Snippet
Plaintext
		case "head":
case "helmet":
score = level.zombie_vars["zombie_score_bonus_head"];
break;

and add the sound there:
Code Snippet
Plaintext
		case "head":
case "helmet":
score = level.zombie_vars["zombie_score_bonus_head"];
self playsound( "bullet_impact_headshot_helmet_nodie" );
break;
Works like a charm, thanks a million.  :)

 
Loading ...