[TF2] Respawn System API!
3 Attachment(s)
[TF2] Respawn System API
Introduction: Oh no, an other respawn time plugin, wait it's not a new respawn time plugin. :) It's an API, that allows you to control the respawn time! And you don't have to print an ugly message like in other respawn plugins! You can override the client's hud directly! And I made a ton of natives to make your life easier. Description:
Spoiler
Installation:
Bugs:
List of plugins working with this API:
Total downloads:
Git-Hub Link |
Re: [TF2] Respawn System API!
I like what this offers, thank you.
|
Re: [TF2] Respawn System API!
[TF2] Respawn System API Update! v0.2 Changelog:
|
Re: [TF2] Respawn System API!
I like these types of plugins. They are incredibly useful and a great learning tool.
|
Re: [TF2] Respawn System API!
But what are the cvars? How do I exactly control/set the respawn time of each team? (e.g: I want to make BLU team respawn after 3 seconds and make RED team respawn after 10?) Help will be appreciated.
|
Re: [TF2] Respawn System API!
Quote:
|
Re: [TF2] Respawn System API!
There are two issues with this plugin, the second one being more severe:
1) The SharedPlugin name in the include file (line 104) refers to TF2 Respawn System API, and the RegPluginLibrary line in the core source file (line 70) refers to tf2_respawn_time. This prevents anyone from using the tf2_respawn.inc file in their plugins. Pretty simple fix, just rename one or the other so they both match. 2) This plugin causes the server to crash when a player is about to respawn if they changed classes during their respawn time. For example: Spawn as Sniper, killbind, press comma and change class to Soldier before the respawn timer is up. When the timer reaches 0, the server dies. Code:
Host_Error: SV_CreatePacketEntities: GetEntServerClass failed for ent 82.?? |
Re: [TF2] Respawn System API!
3 Attachment(s)
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. |
Re: [TF2] Respawn System API!
sorry for necroposting, did anyone actually make a plugin utilizing this api ?
|
Re: [TF2] Respawn System API!
Quickly wrote this one for my server.
I use UMC to set the cvars per map. If you want to update the cvars mid-map, you'll have to use mp_restartgame 1 or wait until the game changes the respawn times itself (on round end or capturing a checkpoint, not sure) PHP Code:
|
All times are GMT -4. The time now is 19:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.