Raised This Month: $ Target: $400
 0% 

Sound not precached


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Randomize
BANNED
Join Date: May 2012
Location: in your heart
Old 05-14-2012 , 09:09   Sound not precached
Reply With Quote #1

Quote:
public fw_traceline(Float:TemporarySlot1[3], Float:TemporarySlot2[3], TemporarySlot3, id)
{
if(!is_user_connected(id) || !is_user_alive(id))
return FMRES_IGNORED

new victim = get_tr(TR_pHit)
if(!is_user_connected(victim) || !is_user_alive(victim))
return FMRES_IGNORED

if(get_user_team(id) == get_user_team(victim))
return FMRES_IGNORED

new clip, ammo
get_user_weapon(id, clip, ammo)
if(clip > 0)
{
if(get_user_button(id) & IN_ATTACK)
{
if(g_has_helmet[victim] == true)
{
new hitplace = get_tr(TR_iHitgroup)
if(hitplace == HIT_HEAD)
{
set_tr(TR_iHitgroup, random_num(HIT_LEFTLEG, HIT_RIGHTLEG))
emit_sound(victim, CHAN_BODY, HELMET_SOUND, VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
entity_set_vector(victim, EV_VEC_punchangle, Float:{-HelmetKB, 0.0, HelmetKB})
g_has_helmet[id] = false
DropHelmet(victim)
}
}
if(g_has_helmet[victim] == true)
{
new hitplace = get_tr(TR_iHitgroup)
if(hitplace == HIT_HEAD)
{
set_tr(TR_iHitgroup, random_num(HIT_LEFTLEG, HIT_RIGHTLEG))
emit_sound(victim, CHAN_BODY, HELMET_EFFECT_SOUND, VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
entity_set_vector(victim, EV_VEC_punchangle, Float:{-HelmetKB, 0.0, HelmetKB})
g_has_helmet[id] = false
DropHelmet(victim)
}
}
}
}
return FMRES_IGNORED
}
why HELMET_EFFECT_SOUND not precache when hit?
Randomize is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode