Raised This Month: $ Target: $400
 0% 

[TF2] Mushroom Health


Post New Thread Reply   
 
Thread Tools Display Modes
Teamkiller324
Senior Member
Join Date: Feb 2014
Location: Earth
Old 08-22-2020 , 06:22   Re: [TF2] Mushroom Health
Reply With Quote #121

Quote:
Originally Posted by Chaosxk View Post
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 playingprecache issue
Removed the maximum time limit (60on 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 sizeyou 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.
Updated to new syntax and declarations
Attached Files
File Type: sp Get Plugin or Get Source (mushroomhealth.sp - 107 views - 4.7 KB)
__________________

Last edited by Teamkiller324; 08-22-2020 at 06:23.
Teamkiller324 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode