Raised This Month: $ Target: $400
 0% 

Reproduce sound every third murder.


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-23-2012 , 11:17   Re: Reproduce sound every third murder.
Reply With Quote #11

Quote:
Originally Posted by Liverwiz View Post
Aren't we lucky to have such a smart guy like Exolent around to correct me when i'm being a dumbass?
I try to let you be when helping people since I know you're trying.
However, I will correct improper statements if I come across them.

As for the -3 fix, I hadn't noticed it either, so it's not like you were dumb about it.
Neither of us realized its purpose.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 08-23-2012 , 11:33   Re: Reproduce sound every third murder.
Reply With Quote #12

Quote:
Originally Posted by Exolent[jNr] View Post
I try to let you be when helping people since I know you're trying.
However, I will correct improper statements if I come across them.

As for the -3 fix, I hadn't noticed it either, so it's not like you were dumb about it.
Neither of us realized its purpose.
And i appreciate that. I think i should test things before i tell them to people (most of my mistakes would be avoided that way) but i also want to give people answers as quickly as possible. Wish it was easier to test these kinds of code without having to compile, upload, load game, load server, and completely test. But....that's the environment we're in.

But the -3....he noticed it. So props to him. GROUP EFFORT! 8-)
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
Sutar
Senior Member
Join Date: Sep 2010
Old 08-23-2012 , 12:35   Re: Reproduce sound every third murder.
Reply With Quote #13

How about this? how to fix it?

Quote:
the killed in head += 2
Just killed += 1

But the problem is that if a player kills 2 times in the head, no sound.

For example:
g_streakKills[killer] += 2 //one killed in head
g_streakKills[killer] += 2 //two killed in head (g_streakKills[killer] = 4)

new a = g_streakKills[killer] - 3;

if(a > 0 && !(a % 3)) //a = 1 and the function does not work on...
{
...
Sutar is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 08-23-2012 , 13:23   Re: Reproduce sound every third murder.
Reply With Quote #14

You'll have to figure out a different way of doing it. [math lecture] 2 + 2 = 4 | 2 + 1 = 3
I'd just make a headshot equal 3, rather than 2. Or just not bother with headshots at all.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
Sutar
Senior Member
Join Date: Sep 2010
Old 08-23-2012 , 13:58   Re: Reproduce sound every third murder.
Reply With Quote #15

if 1 + 1 = 2 and 1 + 2 = 3
the code will be: if(a > 0 && (!(a % 2) || !(a % 3)))??

Last edited by Sutar; 08-23-2012 at 14:05.
Sutar is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 08-23-2012 , 14:33   Re: Reproduce sound every third murder.
Reply With Quote #16

I think you missed the point of my comment.

If someone gets a lot of headshots....it'll be rare when they actually get proper to fulfill what you need to play the sound. Either make headshots not matter, or make them worth 3. Or you can turn it to a float, make a headshot 1.5, and round down when you must.

I still suggest ignoring headshots completely if it doesn't do much for the plugin.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
Sutar
Senior Member
Join Date: Sep 2010
Old 08-23-2012 , 14:47   Re: Reproduce sound every third murder.
Reply With Quote #17

Well, I'll take your advice too.
Sutar is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-23-2012 , 14:51   Re: Reproduce sound every third murder.
Reply With Quote #18

Are streak kills only used to determine the sound to play and nothing else?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Sutar
Senior Member
Join Date: Sep 2010
Old 08-23-2012 , 15:09   Re: Reproduce sound every third murder.
Reply With Quote #19

I do not understand your question.
Sounds only for murder? - do you ask?
Yes, the plugin I use only the sounds of murder and not anything else.
Sutar is offline
Reply



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 05:52.


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