jacob404 / promod-future

GNU General Public License v3.0
7 stars 1 forks source link

Remove ability to can trick to break smoker tongue #1

Open mikehabibi opened 9 years ago

mikehabibi commented 9 years ago

Especially useful for scavogl 3v3 and 4v4, a smoker tongue can be easily broken with the gas can. I think this kind of exploit is fine for normal play, but should be limited in competitive play. Competitive players should utilize the game play and not exploits to get better (i.e. tongue cutting) in these modes.

jacob404 commented 9 years ago
jacob404 commented 9 years ago

https://github.com/jacob404/myplugins/blob/master/stretchy_tongues.sp

^^ possible fix

SirPlease commented 9 years ago

returning Plugin_Handled on an event doesn't actually prevent it from happening, I wish it was that easy. xD

jacob404 commented 9 years ago

Have you tried it? Because based on this documentation you can if you use a pre hook. https://wiki.alliedmods.net/Events_(SourceMod_Scripting)

(skip to the portion on blocking events) I was always told that blocking events doesn't work, but I've never tried myself so yea.

mikehabibi commented 9 years ago

I tried this very thing to block can trick. No success. Tried all the actions, including stop.

On Tue, Jun 9, 2015 at 2:32 PM, Jacob notifications@github.com wrote:

Have you tried it? Because based on this documentation you can if you use a pre hook. https://wiki.alliedmods.net/Events_(SourceMod_Scripting) (skip to the portion on blocking events)

I was always told that blocking events doesn't work, but I've never tried myself so yea.

Reply to this email directly or view it on GitHub: https://github.com/jacob404/promod-future/issues/1#issuecomment-110452260

SirPlease commented 9 years ago

Events are simple messages containing event Data. returning Plugin_Handled on an event only prevents the event notifications (which plugins can hook onto) from firing, not the actual event itself.

jacob404 commented 9 years ago

m_isHangingFromTongue m_isProneTongueDrag m_initialTonguePullDir m_reachedTongueOwner

should try printing those netprops and seeing what values they give under different conditions. it might be able to hijack one or two of them and change the value so that tongues dont break under the conditions we dont want them to

mikehabibi commented 9 years ago

I tried that too - for the tongue break bent event, I tried changing the victim and smoker ID to zero to keep it from latching, but that didn't seem to work. Perhaps I'm not doing it right.

On Tue, Jun 9, 2015 at 3:01 PM, Jacob notifications@github.com wrote:

m_isHangingFromTongue m_isProneTongueDrag m_initialTonguePullDir m_reachedTongueOwner

should try printing those netprops and seeing what values they give under different conditions. it might be able to hijack one or two of them and change the value so that tongues dont break under the conditions we dont want them to

— Reply to this email directly or view it on GitHub https://github.com/jacob404/promod-future/issues/1#issuecomment-110502941 .

jacob404 commented 9 years ago

im talking about using something like:

SetEntProp(client, Prop_Send, "m_isHangingFromTongue", 0);

I assume you were using SetEventInt

jacob404 commented 9 years ago

im gunna delay this one since it's a bigger issue than we can tackle for this update i think.

jbzdarkid commented 8 years ago

Just so it's clear what's being worked on, and what isn't.