|
Senior Member
Join Date: Nov 2015
Location: Peaceful place of the internet
|
12-26-2016
, 01:08
Re: [L4D2] ABM: A L4D2 5+ Player Enhancement for Campaign
|
#20
|
Quote:
Originally Posted by NgBUCKWANGS
Spirit 12, thank you very much for your wisdom, it is very appreciated. I think this plugin blew up in "features" because in my pursuit of it I felt responsible for the bugs I began to expose. I just turned the bug fixes that I could implement into "features" which is why it handles models, teleportation, respawning etc. My readme does point out the use of some extensions in which I cannot address yet. I will not only take into consideration your idea of boosting the SI and CI but I'll put it on the drawing board because it makes great sense. Thank you very much
Thank you cravenge. I've actually been told by a good friend "cravenge is a great guy, he'll help, you'll find him on the forums" well haha, you found me I have already implemented a complete solution somewhat similiar to yours but your version helped me cut down on the verbosity and I'm liking the end result.
PHP Code:
char g_GameMode[16];
bool g_IsVs = false;
... OnPluginStart
FindConVar("mp_gamemode").GetString(g_GameMode, sizeof(g_GameMode));
g_IsVs = (StrEqual(g_GameMode, "versus") || StrEqual(g_GameMode, "scavenge"));
... OnClientPostAdminCheck
int onteam = 2;
if (g_IsVs && CountTeamMates(3) < CountTeamMates(2)) {
onteam = 3;
}
... ChangeClientTeam(client, onteam) ...
Thank you cravenge!
I accepted and look forward to breaking things when time permits
|
Heh, it's actually so simple to check the gamemode.
__________________
EdisonGar
|
|
|
|