| avril-lavigne |
07-27-2011 12:44 |
Deagle nail Launcher 2 questions
In this plugin http://forums.alliedmods.net/showthread.php?p=717029
I want to remove explosion sound.
Code:
what this func do
stock nail_take_damage(victim,damage,origin[3],bit)
{
message_begin(MSG_ONE_UNRELIABLE, gMsgID,{0,0,0}, victim);
write_byte(21);
write_byte(20);
write_long(bit);
write_coord(origin[0]);
write_coord(origin[1]);
write_coord(origin[2]);
message_end();
message_begin(MSG_BROADCAST, SVC_TEMPENTITY);
write_byte(TE_LAVASPLASH);
write_coord(origin[0]);
write_coord(origin[1]);
write_coord(origin[2]);
message_end();
fm_set_user_health(victim, get_user_health(victim) - damage);
}
and here
Code:
nail_radius_damage(ptr);
message_begin(MSG_BROADCAST,SVC_TEMPENTITY,iOrigin);
write_byte(TE_EXPLOSION);
write_coord(iOrigin[0]);
write_coord(iOrigin[1]);
write_coord(iOrigin[2]);
write_short(explode2);
write_byte(30);
write_byte(15);
write_byte(0);
message_end();
message_begin(MSG_BROADCAST, SVC_TEMPENTITY);
write_byte(TE_SMOKE);
write_coord(iOrigin[0]);
write_coord(iOrigin[1]);
write_coord(iOrigin[2]);
write_short(smokesZ2);
write_byte(40);
write_byte(5);
message_end();
engfunc(EngFunc_RemoveEntity, ptr);
I need to remove explosion sound. not a sprite effect.....I have my own sound
|