{"id":19952413,"url":"https://github.com/dosmike/tf2-regenthinkhook","last_synced_at":"2026-03-07T04:03:30.522Z","repository":{"id":62651188,"uuid":"561372301","full_name":"DosMike/TF2-RegenThinkHook","owner":"DosMike","description":"Allows hooks into the clients RegenThink method by reimplementing it in SourcePawn","archived":false,"fork":false,"pushed_at":"2025-05-02T08:10:29.000Z","size":50,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-02T09:25:02.741Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"SourcePawn","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DosMike.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-03T14:48:56.000Z","updated_at":"2025-05-02T08:10:32.000Z","dependencies_parsed_at":"2024-06-14T16:40:18.530Z","dependency_job_id":null,"html_url":"https://github.com/DosMike/TF2-RegenThinkHook","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/DosMike/TF2-RegenThinkHook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DosMike%2FTF2-RegenThinkHook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DosMike%2FTF2-RegenThinkHook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DosMike%2FTF2-RegenThinkHook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DosMike%2FTF2-RegenThinkHook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DosMike","download_url":"https://codeload.github.com/DosMike/TF2-RegenThinkHook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DosMike%2FTF2-RegenThinkHook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30207393,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T03:24:23.086Z","status":"ssl_error","status_checked_at":"2026-03-07T03:23:11.444Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T01:12:58.348Z","updated_at":"2026-03-07T04:03:30.169Z","avatar_url":"https://github.com/DosMike.png","language":"SourcePawn","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TF2 RegenThink Hook\r\n\r\nThe topic of hooking medics health regenration came up recently and I was kinda surprised nobody did a proper hook for this yet.\r\nI think nosoop brought up RegenThink in relation to that on the SM Discord, so thank you nosoop.\r\n\r\nAs I didn't want this to be a \"stupid\" OnRegenThink hook, I dug into the decompile and reversed the function to give the most control possible.\r\nSince this plugin superceds the original function, I'm currently not sure how well this works with other RegenThink hooks, if at all.\r\n\r\n## Forward Summary\r\n\r\nThe forwards are documented in the include.\r\n\r\n```c\r\nAction TF2_OnRegenThinkPre(int client);\r\nAction TF2_OnRegenThinkHealth(int client, float\u0026 regenHealthClass, float\u0026 regenHealthAttribs);\r\nAction TF2_OnRegenThinkAmmo(int client, float\u0026 regenAmmoPercent, int\u0026 regenMetal);\r\nvoid TF2_OnRegenThinkPost(int client, int regenHealth, float regenAmmo, int regenMetal);\r\n```\r\n\r\n## Dependencies\r\n\r\nRequires [TF2 Attributes](https://github.com/FlaminSarge/tf2attributes)\r\n\r\n## Module Plugins\r\n\r\n* [TF2 ClassRegenConfig](ClassRegenConfig.md)   \r\n  Configure health, ammo and metal regeneration for every player class using a config or third party plugins\r\n\r\n## Credits\r\n\r\nI want to thank nosoop for always having some insights or helpful reference code withing TF2 in their plugins.\r\nAlso thanks to who ever asked for this in the SM Discord, I actually needed this for a personal project, but was too lazy to properly do this until now.\r\nPlease open an issue if I forgot anyone :)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdosmike%2Ftf2-regenthinkhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdosmike%2Ftf2-regenthinkhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdosmike%2Ftf2-regenthinkhook/lists"}