Jump to content


Photo

100% Skilled Airshot


  • Please log in to reply
14 replies to this topic

#1 Hurricaaane

Hurricaaane

    Member

  • Administrators
  • 22 posts

Posted March 27 2012 - 10:18 PM

Hi,

I've coded a little SourceMod plugin by curiosity, to detect airshots and play a music akin to totally uncontested skill


http://www.youtube.com/watch?v=DL7wat2oFNU


HatTheTurtle suggested me to post here, see if you want to try it out. The full source code is released, so you can review the plugin contents and recompile it yourself if you want.
Recompilation instructions: On a Windows platform version of SourceMod, install the library SDKHooks. Drop skilledairshot.sp to \tf\addons\sourcemod\scripting\spcomp.exe (it will generate skilledairshot.smx, the plugin).

Some parts of the code are inspired form other airshot detectors designed for gamemodes where weapons are restricted, so I've redesigned it to suit normal gameplay and reduce false positives.


Airshots can be valid only if the shot is lethal, and every single valid weapon is written in cvars (sm_skilledairshot_hitscan and sm_skilledairshot_projectiles). Currently it registers airshots by sniper rifle, arrows, rockets, healing arrows, grenades, flares. A hit is considered airshot if there is a minimum height under the feet of the victim. An airshot does not require an expulsion into the air by explosive means nor by airblast means.

The default sound that plays mimics this, first 4 seconds are at full volume, the rest is at low volume. The sounds are emitted both from the victim position and from the attacker position.


I already tested the mod to see if the sound download works, even after a changelevel, and tweaked the variables to lessen most of the false positives found when run on a server filled with bots.


I've put it up for download here, plugin .smx + source .sp + sound file: http://hurricaaanes....dairshot_r0.zip


If you want to give it a go, feel free to do so!

#2 Cedarbox

Cedarbox

    Married to a skeleton. Platonically.

  • Members
  • 3955 posts

Posted March 27 2012 - 10:43 PM

Nice job! I'd want a geekier sound effect but it would certainly be a fun little detail to have on the server.

There once was a kitty named Tomo
As famous on the Internet as Domo
But his face got all shitty
Because he's a bad kitty
And now he's washed up like Rivers Cuomo


#3 kingddd

kingddd

    Dorky Avatar

  • Members
  • 9355 posts

Posted March 27 2012 - 10:53 PM

While I do appreciate the effort put into the coding the script to play the sounds, I would not want to listen to more random sounds. The it burns, the pistol/revolver kills and the machina's penetration kill is already annoying enough.

yVRxnqJ.png

-------------------------------------------------

Youtube Channel

Steam Community


#4 nosoop

nosoop

    in ur vps, wreckin' ur stuf

  • Members
  • 2740 posts

Posted March 27 2012 - 10:59 PM

I'd go with having this play only on the client that pulls off the kill, just because random Pendulum halfway across the map isn't too exciting (Would that be the right word for it? I dunno.).

Also needs an optional cvar where host_timescale can be set to .25 or something for a short period, sort of like Mecha's Bullet Time plugin. (Though using host_timescale without sv_cheats has been broken for forever, so lol to that.)

Edited by nosoop, March 27 2012 - 11:06 PM.


#5 Cedarbox

Cedarbox

    Married to a skeleton. Platonically.

  • Members
  • 3955 posts

Posted March 28 2012 - 01:10 AM

The it burns, the pistol/revolver kills and the machina's penetration kill is already annoying enough.

Yeah, I'm not a big fan of the 'it burns!' either.

There once was a kitty named Tomo
As famous on the Internet as Domo
But his face got all shitty
Because he's a bad kitty
And now he's washed up like Rivers Cuomo


#6 Zetsubou

Zetsubou

    kind of impossible to talk to

  • TF2 Admins
  • 2940 posts

Posted March 28 2012 - 01:17 AM

is there a client side version? Cause theres someone in particular that would really want this, i think
Nothing

#7 Fat Cat

Fat Cat

    YOOP

  • TF2 Admins
  • 6999 posts

Posted March 28 2012 - 04:39 AM

is there a client side version? Cause theres someone in particular that would really want this, i think

I think we're thinking the same think.

sig-1.png
Pyros hate you back.

 

M31: *remains a dancing obama* nope
 
M31: SPACE DICK

#8 FlamingDonut141

FlamingDonut141

    si

  • TF2 Admins
  • 2220 posts

Posted March 28 2012 - 02:36 PM

is there a client side version? Cause theres someone in particular that would really want this, i think

OH NOW WHO COULD THAT BE

WE ALL KNOW THIS IS MADE FOR ME

10:49 PM - danwook: tbh if i was a girl
10:49 PM - danwook: id fuck you


#9 Kelsonar

Kelsonar

    Your Inner Viking!

  • Scrimmer
  • 1659 posts

Posted March 28 2012 - 04:34 PM

We might have to change the sound clip, but I think it's awesome personally.

Zuul: Fish Queen: A pimp named Kelsoback

Soviet Russia: You got kelso.
Soviet Russia: Sentries are invalid

Heartlesskev: HOLY CRAP KELSON, WHEN DID YOU GET SO CUTE?

 

Cocaine.exe :  kelsonar is a gay ass name


#10 Sylver?

Sylver?

    Why you ackin' so cray cray?

  • Scrimmer
  • 549 posts
  • Location: :[]
  • Scout, Soldier, Demoman, Sniper, Spy

Posted March 29 2012 - 02:17 PM

I'm definitely supporting this, although I think the sound clip should be the more typical part of Propane Nightmares. Y'know what I'm talking about.

Posted Image

Backpack Youtube


Chali Dredle ✡: YEAH IM FUCKING
Sylver Bells: it was 9 minutes

#11 Soviet

Soviet

    I post a lot!

  • Scrim Admins
  • 2100 posts
  • Soldier, Pyro, Demoman

Posted March 29 2012 - 02:32 PM

I'm definitely supporting this, although I think the sound clip should be the more typical part of Propane Nightmares. Y'know what I'm talking about.

I'm pretty sure this is the part with the original tf2worms "X% skilled airshot" videos.

#12 Neh

Neh

    Hiya!

  • Administrators
  • 3257 posts

Posted May 01 2012 - 06:14 PM

This is going up when the new sound clips are finalized. Head to the killsounds sticky to give sound clip suggestions.

#13 Fat Cat

Fat Cat

    YOOP

  • TF2 Admins
  • 6999 posts

Posted September 22 2012 - 01:55 PM

Just gonna put this here: http://www.mediafire...hvy38f4aul855zu

Thank Zetsu.

Spoiler:
And Game Grumps.

Put it in your /tf/sounds/misc folder


Edit: Feel free to say whether you prefer this one or not.

sig-1.png
Pyros hate you back.

 

M31: *remains a dancing obama* nope
 
M31: SPACE DICK

#14 Dan The Man

Dan The Man

    ლ( ◕ ‿ ◕ ლ)

  • Scrimmer
  • 1268 posts

Posted September 22 2012 - 03:45 PM

Edit: Feel free to say whether you prefer this one or not.

I like the "FUCK YEAAAAH" one better. It can accidentally create some hilarious moments.

eg. "I'm pregnant."
>airshot
>"FUCK YEAAH -guitar rift-"
Baker: "What the fuck am I doing?"
FlamingDonut: "Oh no, not the Mexican!"

N/A Madness

#15 kingddd

kingddd

    Dorky Avatar

  • Members
  • 9355 posts

Posted September 22 2012 - 03:58 PM

I like the "FUCK YEAAAAH" one better. It can accidentally create some hilarious moments.

eg. "I'm pregnant."
>airshot
>"FUCK YEAAH -guitar rift-"

this even if I don't like the airshot plugin

yVRxnqJ.png

-------------------------------------------------

Youtube Channel

Steam Community



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users