[L4D] Achievement Notifier
6 Attachment(s)
Left 4 Dead Achievement Notifier
by Fexii Description Achievements can be frustrating to complete because many of them require you to finish the entire campaign before finding out whether or not you've succeeded. This plugin patches this by providing messages as soon as an infraction against achievement completion occurs. Current Achievements Tracked SAFETY FIRSTInstall Place "achievementnotifier.smx" in your left4dead/addons/sourcemod/plugins folder. Place "achievementnotifier.phrases.txt" in your left4dead/addons/sourcemod/translations folder. Usage The plugin is automatically enabled when the server starts a campaign mode map. Whenever an achievement is prevented, a message with details will appear to all players. Saying "!achievements" during the game will show which achievements have been prevented and which are still attainable. This is disabled during versus mode. sm_achievement_notify <0/1> - Toggles the plugin. Requires a map restart when changed. sm_achievement_notify_connect_message <0/1> - Display a message when the user connects that tells them about the "!achievements" command. Changelog Version 1.0 - Initial Release with Safety First, Stomach Upset, Untouchables - Fixed repeated hooks when the round starts - Now registers the command sm_achievements - Fixed leftover debug code that caused chat to appear whenever a player is hurt Notes Please let me know about bugs in this thread. The achievements system is somewhat buggy to begin with, but I'll do my best to model this plugin after the actual achievement requirements based on feedback. I plan to add more achievements over time, starting with the more frustrating ones first. |
Re: [L4D] Achievement Notifier
This is very helpful. Good job.
One thing to note after a quick look. It looks like you hook events in round start and unhook when map ends... If round start occurs more than once in a map you will stack event hooks. Not a good thing. |
Re: [L4D] Achievement Notifier
Quote:
Edit: I added a one-liner since I already had the boolean sitting around whenever I hook. Hopefully that fixes it. |
Re: [L4D] Achievement Notifier
Further suggestions. I always wonder why people hook the say command when all they want is the chat trigger. Sourcemod does all this for you. Creating your own console command is the way to go.
Replace: PHP Code:
PHP Code:
|
Re: [L4D] Achievement Notifier
Quote:
Posting update with the new console command hook. |
Re: [L4D] Achievement Notifier
One last suggestion. As an author I always like to track how many servers use my plugins. You can do this with a public cvar.
PHP Code:
A public cvar is not required, thou i think it should be :), to be approved. Just a suggestion. I will wait a bit to approve this in case you decide to do it, as if you do it later it has to go thru the approval process again. |
Re: [L4D] Achievement Notifier
Quote:
Now that "public cvar" field makes much more sense! |
Re: [L4D] Achievement Notifier
This is a brilliant idea! I am deffinatly going to use this on my server, thank you Fexii :D
+1 |
Re: [L4D] Achievement Notifier
Any work going on to get this to monitor the "Nothing Special" achievement?
|
Re: [L4D] Achievement Notifier
Quote:
I'm having trouble detecting players getting hurt by boomers by the boomer sliming the player then having other zombies attack her. It counts against the Nothing Special achievement, but I don't see a straightforward way to detect it using Game Events. If any other SourceMod coders have advice I'd appreciate it :mrgreen: |
All times are GMT -4. The time now is 22:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.