Written for Hidden:Source Beta 4b
Code:
/*
* Hidden:SourceMod - Beta 5 Pigshove
*
* Description:
* Converts hidden's pigstick into a shove until hidden's health drops below 20.
*
* Cvars:
* sv_pigstick 0/1: globally enabled or disable hidden's alternate knife attack (pigstick AND shove)
* hsm_pigstick 0/1: enable or disable pigsticking when hidden is enraged
*
* Installation:
* Please make sure to put the *.phrases.txt file in the .../addons/sourcemod/translations folder otherwise the plugin wont operate properly.
*
* Changelog:
* v1.1.5
* Removed hidden.inc include dependency.
* v1.1.4
* Added language translation file
* Increased vertical boost to 20º
* Added hidden include
* Added support for multiple hiddens in Overrun maps.
* Log outputs correctly is Shove is always active but the hidden's health is below the threshold
* v1.1.3
* Attempted to fix Shove not registering for some reason? Well it seems to work now at least.
* v1.1.2
* Added punt specific log output.
* Fixed deathnotice bug caused by Log fix plugin.
* v1.1.1
* Fixed server console error when the hidden has disconnected.
* Fixed log output for compatibility with Phaedrus' Log fix.
* v1.1.0
* Renamed plugin from hsm_b5shove to hsm_pigshove.
* Added a variations to the initial shove/punt/push action.
* Fixed version cvar to report correct information. It was copied from B5 Physics plugin. :/
* Removed log output for shove actions since no damage is done.
* Fixed multiple feedbacks for when Hidden drops below 20hp.
* v1.0.2
* Added feedback for Pigstick/Shove modes on hit and when the hidden's health and hsm_pigstick allow for normal Pigstick function.
* v1.0.1
* Added a 15º boost the the angle so that head-on shoves give a bit of altitude and crouch-up shoves give a higher angle
* Increased the vertical shove scaling slightly so up-shoving a player from and to flat ground will do minor fall damage.
* v1.0.0
* Initial release.
*
*/