Updating the plugin again for TF2, NOT CSS/CS:GO
Version 3.0.0 (Skipped a lot of numbers b/c someone took 2.0.0)
PHP Code:
Changelog:
- Updated some outdated functions that the plugin used
- Added client checks to prevent invalid client errors
- Changed the hook type from OnPlayerTouchAll to OnPlayerTouch
- Fixed problem where mushroom sounds were not playing, precache issue
- Removed the maximum time limit (60) on sm_mh_time (Going higher is not recommended tho)
- Fixed problems where mushroom would not be removed due to the steampipe update
- Fixed no edict crash
- General code cleanup
New features:
- Added mushroom size, you can change the size of the mushroom with sm_mh_size, default is 1.0
- Added drop chance for mushroom with sm_mh_dropchance, default is 0.65
Convars:
sm_mh_healthsize - Size of mushroom? (0 - Small || 1 - Medium || 2 - Large)
sm_mh_time - Time before mushroom is removed. (Default: 15)
sm_mh_mediconly - Who can drop mushrooms? (1 - Medic only || 0 - All)")
sm_mh_size - How big should mushrooms be? (Default: 1.0)
sm_mh_dropchance - Chance of mushroom dropping. (0.0 - 1.0) (Default: 0.65)
Other notes:
- Configuration file is automatically generated in cfg/sourcemod
- I repacked the materials/models/sounds with the source and compiled files
- I also included just the source/compiled version for people who just want to update
Enjoy.