Forum

"Stored" sound glitch?

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

"Stored" sound glitch?

Postby Ghost_Fang » Wed Jun 30, 2010 5:30 am

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.
Ghost_Fang
 
Posts: 336
Joined: Thu Nov 12, 2009 4:37 am

Postby leileilol » Wed Jun 30, 2010 5:46 am

other.axhitme = 0; // you'd better set that
i should not be here
leileilol
 
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Postby Ghost_Fang » Wed Jun 30, 2010 6:06 am

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.
Ghost_Fang
 
Posts: 336
Joined: Thu Nov 12, 2009 4:37 am


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest