About
Pyro Knockback gives Pyros the ability to knockback from air/compression blasts, which not only could save them from a tall fall but also gives them a double jump effect.
The Pyro can only blast off of objects/entities, it can not just blast off of air, preventing flying.
Video
http://www.youtube.com/watch?v=PTLeaJK8s8Y
Cvars
sm_pk_enable -
(def "1") <0/1> Enable PK.
sm_pk_d -
(def "-250") <-10/-20/-30/etc> Amount of Push Distance, Negative is pushed, Positive is Pulled.
sm_pk_dr -
(def "150")<60/120/180/etc> Required distance of entity to push off of.
Chat Command
!pyro - Toggles the knockback for the client who entered the command.
Custom Airblast Cost Cvars
If your server has custom airblast costs instead of the default Flamethower 20, backburner 50, then these cvars need to be set. -1 means they are not in use.
This does not set the airblast cost, it is meant for an exception to see if the player has enough ammo to airblast.
sm_pk_backburner -
-1
sm_pk_flamethrower -
-1
sm_pk_degreaser -
-1
sm_pk_d
This ConVar changes the actual push distance, if you want to get pushed further you will make the number lower, i.e -1000 would push you to the skyboxes roof on most maps, while -250 seams about right for a compression blast.
sm_pk_dr
You can't just shoot the air and assume your going to get pushed, or shoot the water in 2fort and assume you can glide over it. There is a distance between you and the entity/object you are looking at. The normal distance between you airblasting a person is 150, so thats what I set it to, and it looks good to me.