This is a combined effort by me and Peace-Maker (and others) to revive TechKnow's sm_chicken plugin. If I posted this in error or out of place, let me know and I'll remove it. I am in no way trying to step on toes or take credit for other people's work - just wanted to post this plugin after I finalized it to work as it used to.
Admin Command line is:
sm_chicken <name/@all/@t/@ct > <1/0> (1=on/0=off)
sm_chicken_allownades - Allow chickens to use/buy/pickup hegrenades (1/0)? sm_chicken_gravity - Amount of gravity to apply to players when they're a chicken. sm_chicken_health - Amount of health to give players when they're turned into a chicken. sm_chicken_passvote - Percentage of YES votes to pass a Chicken Round vote. sm_chicken_speed - Amount of speed to apply to players when they're a chicken. sm_chicken_sound - - Path to the sound to play when player dies as a chicken (home folder is cstrike/sound) sm_chicken_startvote - Percentage of players needed to type !votechicken before the vote is started. sm_chicken_useupdater - Should this plugin use Updater plugin to auto-update itself? sm_chicken_votedelay - Number of seconds to delay a subsequent vote after a failed/successful Chicken Round vote. sm_ctchicken_model - The path for the CT Chicken Model (.mdl file). sm_tchicken_model - The path for the T Chicken Model (.mdl file).
Taken from TechKnow's site description:
This mod plugin alows admins to turn a single player or a team or everyone into knife fighting chickens on invisible skateboards. They peck with every knife stab, Their legs skamper as you walk or run, They jerk their head while running or walking and look around while idle. The CT Chickens are blue and the T chicken are red.
When a player becomes a chicken their health gets placed at 200, their gravity is set to what you want, their speed is set to what you want, and all weapons but the knife (and optional hegrenade) are removed and you are prevented from geting any other weapon. And every time a chicken gets killed it cries out "BUCK BUCK BUGOCK!!" All models (chickens) are reset to standard at the start of every round, (IE your chicken status is removed).
New in 0.7.5 - you can now set the gravity of the chickens and there's a cvar to allow hegrenades or not.
New in 0.7.6.1 - You can now set the speed of the chickens.
Optional: Updater - if you want to have this plugin auto update when a bug is fixed or features are added
[FIXED] - You can only turn a player (or players) into a chicken and back to a human once. If you turn them into a chicken again, they will remain that way until round end or upon player's death.
No known issues at the moment (as of 0.7.6.1)
Perhaps enhance this plugin to automatically turn a player into a chicken if they camp too long? Just an idea if anyone wants to pick it up from here :) I'll work on that next
Special thanks to the following: Peace-Maker
and DarthNinja (I sampled his code for the @targets part)
They really did all of the hard work, all I did was make the plugin work with @targets. Peace-Maker removed the need for a gamedata by updating the code with newer code - Thanks all. This is a great plugin and I'm glad it's back.
This post describes what Peace-Maker did to make this plugin work again, however, the FindTarget only allows to target one player and not @targets. I used DarthNinja's cash plugin as a guide to alter the Chicken plugin to work with @targets
CHANGE LOG: Old .sp files will be added to "Old Chicken Files.zip" Zip file will contain the model, material, and sound files.
* version updated to 0.6
* fixed the bug where player's guns were turned to knives dropped after they became chickens which caused knives to litter the map.
* Added back #pragma semicolon 1
* Changed the messages sent to players to be more aesthetic
0.7 - started using sdkhooks to block the pickup of weapons while a chicken
- Rewrote a lot of the code to clean it up
0.7.1 - Used some stocks and functions from SMLib - thanks goes to benri for those
0.7.2 - Added config file
0.7.3 - Misc code fixes regarding PrecacheModel
0.7.4 - Added "Updater" capability
0.7.5 - Added translation file. Went through and commented a lot of the code.
0.7.6 - Fixed sm_chicken_version - it now has FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY
0.7.6.1 - Plugin now has 4 digit version number.
- Added CVar for Updater.
- Added FCVAR_DONTRECORD flag to plugin version CVar
- Added speed of chicken CVar
0.7.6.2 - Fixed bug where some clients would not be issued a pistol on the round after being a chicken
- Added Event_RoundEnd and code for when mp_restartround is used
- Added CS_OnBuyCommand so player's cannot buy weapons while a chicken (saving them their money)
- Added two new entries in the sm_chicken.phrases.txt translation file
0.7.6.3 - Added chicken vote (!votechicken) so, if enough players vote for it, the next round will be a chicken round
0.7.6.4 - Enhanced the code to add the model/material/sound files to the download tables.
- Added a couple new entries to the translation files.
Due to the includes the web compiler will fail if you click GET PLUGIN so, you'll have to use the attached SMX file or compile it yourself. SDKHooks, colors, and updater includes were used.
Get chicken models and sound from ZIP file.
Place model files in cstrike/models/player (should look like cstrike/models/player/chicken/ct and cstrike/models/player/chicken/t).
Place material files in cstrike/materials/models/player (should look like cstrike/materials/models/player/chicken/ct and cstrike/materials/models/player/chicken/t)
Place sound file (chicken.wav) in your cstrike/sound/smchicken folder
Put chicken.ini in your sourcemod/configs folder
Put the sm_chicken.phrases.txt in your cstrike/addons/sourcemod/translations folder
White list example
If you use sv_pure 1/2, then you'll need to have entries in the pure_server_whitelist.txt file located in the css/hl2 folder for all of the chicken related sounds/models/materials:
// Three types of file specifications:
// 1. directory\*.* - refers to all files under the directory
// 2. directory\... - refers to all files under the directory and all directories under that (recursively)
// 3. directory\filename - refers to a single file
// By default, when in pure server mode, most content file types are only allowed to come from Steam.
If upgrading, backup your configuration file, delete it, and let the plugin create a new one for you, then edit it how you want. Especially since 0.7.6.3 there are new CVars to control the voting for a Chicken Round.
I just searched and saw that TechKnow has an account here, but his last post here was a about 2 months ago...
Like I said... if I posted this out of place, I'll be happy to remove it. It is NOT my plugin, just a fixed version of a great plugin that died a long time ago. My contribution to this plugin was adding back the functionality of using @targets.
I mean no disrespect and don't want to start any wars.