Newbrict / ObjHunt

A Good Garry's Mod Prop Hunt
Apache License 2.0
17 stars 21 forks source link

Taunt Sound spam #68

Closed Spaenny closed 8 years ago

Spaenny commented 9 years ago

Hey I noticed people can spam taunts with F3 which can be pretty annoying. If you use the taunt menu you can't spam the taunts, so I assume its a bug.

Greetings Spenny and keep up the good work!

Newbrict commented 9 years ago

I just tested this, I cannot recreate it.

Have you added custom taunts?

Spaenny commented 9 years ago

It worked at both times, with costum sounds added and without. You need to push F3 serval times then it should start playing many taunts at once.

Newbrict commented 9 years ago

@Spennyone I spammed F3 and wasn't able to recreate it... It really shouldn't be possible there's code to mitigate spam. Have you modified any of the code?

If not you will have to spin up a server and show me this weekend

Timmy commented 9 years ago

I'm experiencing the same problem on my server (running Ubuntu Linux 14.04LTS 32-bit). Clean install, no addons, didn't modify any code. If you want to, you can take a look at my server any time you please (h.b1t.be:27015). :)

Newbrict commented 9 years ago

I guess I'll take a second look when I get a chance, hopefully this week.

Spaenny commented 9 years ago

That could be the case! I just tested it on a windows server and on a linux server. It worked well on the windows one, but on the linux you could just spam.

Timmy commented 9 years ago

Is it possible that SoundDuration doesn't work on Linux? The function is returning 0 on my server.

> print(SoundDuration("taunts/props/12.wav"))...
0
Newbrict commented 9 years ago

anything is possible with gmod,

but that does sound like the cause indeed. Maybe just adding a mandatory ~5 second cooldown

like max(SoundDuration(file), 5)

will fix it

Newbrict commented 8 years ago

not reproducable, please reopen if happens again