Re: [EXTENSION] TF2 Team Balance Immunity
1 Attachment(s)
Quote:
EDIT: Found a better sig i think. Just downloaded the windows server and the new sig loads fine for me (the old one, as you said, crashed). I attached the new gamedata file to this post, and pushed it to the repo |
Re: [EXTENSION] TF2 Team Balance Immunity
That was quick :)
Can confirm server doesn't crash now |
Re: [EXTENSION] TF2 Team Balance Immunity
This is near identical to the one I made a while ago.
The only difference is, since in some situations this still balances, I prevent it from even seeing the player. To do this, replace your IsAlive detour with one for CBasePlayer *CTeam::GetPlayer(int iIndex) These sigs are what I got a long time ago, and haven't broken since... so maybe they would work good for you: Code:
"Games" So, you may expect, if that's false, then IsAlive method just doesn't work. |
Re: [EXTENSION] TF2 Team Balance Immunity
Quote:
|
Re: [EXTENSION] TF2 Team Balance Immunity
Quote:
I guess if everyone on the team just happens to be dead it ignores that? I can't remember, it's been a while since I looked at the code. Not sure, but if you do end up having trouble, you now have another method ;-) |
Re: [EXTENSION] TF2 Team Balance Immunity
Quote:
|
Re: [EXTENSION] TF2 Team Balance Immunity
Nice work. There are some private extensions similar to this that have existed for a long time that handle all aspects of valves auto-balancing and immunities. Ive always wanted to get my hands on it but havnt been able to.
There are some features from these extensions id like to request maybe... 1) Cvar for specifying class immunities. Some way to give immunity for lets say, medics and engineers. Very important and one thing some plugins and valves auto-balance fail to account for. 2) Some of the private extensions prevent players from switching back for X cvar specified amount of seconds. This would also be a awesome feature. (I realize this may not be relative to this extensions function though) If you could implement class immunities to go with admin immunities, that would be amazing.... |
Re: [EXTENSION] TF2 Team Balance Immunity
4 Attachment(s)
Quote:
EDIT: Class immunity attached to this post. EDIT EDIT: fixed for newer version of extension Code:
// This file was auto-generated by SourceMod (v1.3.2) |
Re: [EXTENSION] TF2 Team Balance Immunity
Cool thx. I was thinking you would have to edit the extension for that, but I guess you got it set up so you can use the forwards with the plugin. I guess I should read the OP better. I could have easily done that myself, sorry. Anyways thx.
Ill probably recode that a bit to use some bools for checking admin flag ahead of time. Also may make some globals for the cvars. Also, minor error, you forgot to change the cvar handles in pluginstart. You have most of the class ones as soldier. :) |
Re: [EXTENSION] TF2 Team Balance Immunity
Been working great since I started using it.
Quote:
|
All times are GMT -4. The time now is 11:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.