Jump to content
Sign in to follow this  
Hurricaaane

100% Skilled Airshot

Recommended Posts

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

, 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.info/ai2/skilledairshot_r0.zip

 

 

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

Share this post


Link to post

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.

Share this post


Link to post

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

Share this post


Link to post

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.

Share this post


Link to post

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

Share this post


Link to post

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.

Share this post


Link to post

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.

Share this post


Link to post

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.

Share this post


Link to post

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

Share this post


Link to post

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-"

Share this post


Link to post

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

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×