View Single Post
Sappykun
Member
Join Date: Nov 2019
Old 09-18-2022 , 22:15   Re: [TF2] Respawn System API!
Reply With Quote #8

Two months later, but an update:

The crash was caused by calling TF2_RespawnPlayer inside a SetTransmit hook. Changing that to use RequestFrame instead fixed the issue for me.
I've attached an updated version of the plugin to address the issues I mentioned above, plus some compiler warnings I was getting when building the plugin myself (warning 242: function "Timer_AverageUpdateRespawnTime" should return an explicit value, etc.)

Special thanks to bakugo for finding the fix.
Attached Files
File Type: sp Get Plugin or Get Source (tf2_respawn_system_core.sp - 119 views - 12.2 KB)
File Type: inc tf2_respawn.inc (3.7 KB, 81 views)
File Type: smx tf2_respawn_system_core.smx (7.4 KB, 149 views)

Last edited by Sappykun; 09-18-2022 at 22:16.
Sappykun is offline