View previous topic :: View next topic |
Author |
Message |
Ghost_Fang
Joined: 12 Nov 2009 Posts: 162
|
Posted: Wed Jun 30, 2010 5:30 am Post subject: "Stored" sound glitch? |
|
|
Ok so i got added melee to my mod(bots can melee too) and if the melee kills a player it wont play the hit sound, it'll play the player death sound which is ok i guess. But the next time i get shot by anything nail, or trace attack the melee punch sound gets carried over. So when i get shot it actually sounds like i got punched. This happens to the one who died from the melee btw. If you die from melee, the next hurt sound after you spawn is the melee hit. |
|
Back to top |
|
 |
leileilol

Joined: 15 Oct 2004 Posts: 1321
|
Posted: Wed Jun 30, 2010 5:46 am Post subject: |
|
|
other.axhitme = 0; // you'd better set that _________________
 |
|
Back to top |
|
 |
Ghost_Fang
Joined: 12 Nov 2009 Posts: 162
|
Posted: Wed Jun 30, 2010 6:06 am Post subject: |
|
|
hmm it was a copied fireaxe code so i know its not that. But since you mentioned it, i took a different approach. i deleted trace_ent.axehitme = 1. and instead if it hits the player it makes the sound. almost like gunfire, but only if trace_ent.takedamage is true. So now i get the melee hit AND the player death sound and it doesnt carry over. Thanks for mentioning that leileilol, even though i ran the other way with it lol. |
|
Back to top |
|
 |
|