Skip to content

Commit

Permalink
Merge pull request #55 from Psykotikism/v8.72
Browse files Browse the repository at this point in the history
v8.72
  • Loading branch information
Psykotikism authored Jun 10, 2020
2 parents e7f2270 + 99f7250 commit 04c57c8
Show file tree
Hide file tree
Showing 78 changed files with 14 additions and 10 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## Version 8.72 (June 10, 2020)

Bug fixes:

1. Fixed human players not turning into Mutant Tanks due to a cache fail. (Thanks to Voevoda for reporting!)

Files:

1. Updated include file.

## Version 8.71 (June 10, 2020)

Bug fixes:
Expand Down
1 change: 0 additions & 1 deletion INFORMATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,6 @@
"Human Support"
{
// Allow players to play as the Mutant Tank.
// Note: This setting can be overridden for specific players.
// --
// 0: OFF
// 1: ON, inform players about activating their abilities manually.
Expand Down
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_absorb.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_acid.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_aimless.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_ammo.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_blind.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_bomb.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_bury.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_car.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_choke.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_clone.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_cloud.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_drop.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_drug.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_drunk.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_electric.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_enforce.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_fast.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_fire.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_fling.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_fragile.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_ghost.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_god.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_gravity.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_heal.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_hit.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_hurt.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_hypno.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_ice.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_idle.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_invert.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_item.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_jump.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_kamikaze.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_lag.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_laser.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_leech.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_medic.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_meteor.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_minion.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_necro.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_nullify.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_omni.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_panic.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_pimp.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_puke.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_pyro.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_quiet.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_recoil.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_regen.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_respawn.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_restart.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_rock.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_rocket.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_shake.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_shield.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_shove.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_slow.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_smash.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_smite.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_spam.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_splash.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_throw.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_track.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_ultimate.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_undead.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_vampire.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_vision.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_warp.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_whirl.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_witch.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_xiphos.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_yell.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mt_zombie.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/mutant_tanks/mutant_tanks.smx
Binary file not shown.
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/include/mutant_tanks.inc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#define REQUIRE_PLUGIN

#define MT_AUTHOR "Psyk0tik (Crasher_3637)"
#define MT_VERSION "8.71"
#define MT_VERSION "8.72"
#define MT_URL "https://forums.alliedmods.net/showthread.php?t=302140"

#define MT_TAG "[MT]"
Expand Down
11 changes: 3 additions & 8 deletions addons/sourcemod/scripting/mutant_tanks/mutant_tanks.sp
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,6 @@ enum struct esPlayer
int g_iGlowMaxRange;
int g_iGlowMinRange;
int g_iGlowType;
int g_iHumanSupport;
int g_iIgnoreLevel;
int g_iImmunityFlags;
int g_iLastButtons;
Expand Down Expand Up @@ -444,7 +443,6 @@ enum struct esCache
int g_iGlowMaxRange;
int g_iGlowMinRange;
int g_iGlowType;
int g_iHumanSupport;
int g_iLightColor[4];
int g_iMeleeImmunity;
int g_iMultiHealth;
Expand Down Expand Up @@ -1625,7 +1623,7 @@ public int iInfoMenuHandler(Menu menu, MenuAction action, int param1, int param2
{
case 0: MT_PrintToChat(param1, "%s %t", MT_TAG3, (!g_esGeneral.g_cvMTPluginEnabled.BoolValue || !g_esGeneral.g_bPluginEnabled) ? "AbilityStatus1" : "AbilityStatus2");
case 1: MT_PrintToChat(param1, "%s %t", MT_TAG3, "GeneralDetails");
case 2: MT_PrintToChat(param1, "%s %t", MT_TAG3, g_esCache[param1].g_iHumanSupport == 0 ? "AbilityHumanSupport1" : "AbilityHumanSupport2");
case 2: MT_PrintToChat(param1, "%s %t", MT_TAG3, g_esTank[g_esPlayer[param1].g_iTankType].g_iHumanSupport == 0 ? "AbilityHumanSupport1" : "AbilityHumanSupport2");
}

char sInfo[33];
Expand Down Expand Up @@ -2529,7 +2527,6 @@ static void vCacheSettings(int tank)
g_esCache[tank].g_iGlowMaxRange = iGetSettingValue(bHasAccess, bHuman, g_esPlayer[tank].g_iGlowMaxRange, g_esTank[iType].g_iGlowMaxRange);
g_esCache[tank].g_iGlowMinRange = iGetSettingValue(bHasAccess, bHuman, g_esPlayer[tank].g_iGlowMinRange, g_esTank[iType].g_iGlowMinRange);
g_esCache[tank].g_iGlowType = iGetSettingValue(bHasAccess, bHuman, g_esPlayer[tank].g_iGlowType, g_esTank[iType].g_iGlowType);
g_esCache[tank].g_iHumanSupport = iGetSettingValue(bHasAccess, bHuman, g_esPlayer[tank].g_iHumanSupport, g_esTank[iType].g_iHumanSupport);
g_esCache[tank].g_iMeleeImmunity = iGetSettingValue(bHasAccess, bHuman, g_esPlayer[tank].g_iMeleeImmunity, g_esTank[iType].g_iMeleeImmunity);
g_esCache[tank].g_iMultiHealth = iGetSettingValue(bHasAccess, true, g_esTank[iType].g_iMultiHealth, g_esGeneral.g_iMultiHealth);
g_esCache[tank].g_iMultiHealth = iGetSettingValue(bHasAccess, bHuman, g_esPlayer[tank].g_iMultiHealth, g_esCache[tank].g_iMultiHealth);
Expand Down Expand Up @@ -2811,7 +2808,6 @@ public void SMCParseStart(SMCParser smc)
g_esPlayer[iPlayer].g_iDisplayHealthType = 0;
g_esPlayer[iPlayer].g_sHealthCharacters[0] = '\0';
g_esPlayer[iPlayer].g_iMultiHealth = 0;
g_esPlayer[iPlayer].g_iHumanSupport = 0;
g_esPlayer[iPlayer].g_iRenamePlayers = 0;
g_esPlayer[iPlayer].g_iGlowEnabled = 0;
g_esPlayer[iPlayer].g_iGlowFlashing = 0;
Expand Down Expand Up @@ -3361,7 +3357,6 @@ public SMCResult SMCKeyValues(SMCParser smc, const char[] key, const char[] valu
g_esPlayer[iPlayer].g_iDisplayHealth = iGetKeyValue(g_esGeneral.g_sCurrentSubSection, "General", "General", "General", "General", key, "DisplayHealth", "Display Health", "Display_Health", "displayhp", g_esPlayer[iPlayer].g_iDisplayHealth, value, 0, 11);
g_esPlayer[iPlayer].g_iDisplayHealthType = iGetKeyValue(g_esGeneral.g_sCurrentSubSection, "General", "General", "General", "General", key, "DisplayHealthType", "Display Health Type", "Display_Health_Type", "displaytype", g_esPlayer[iPlayer].g_iDisplayHealthType, value, 0, 2);
g_esPlayer[iPlayer].g_iMultiHealth = iGetKeyValue(g_esGeneral.g_sCurrentSubSection, "General", "General", "General", "General", key, "MultiplyHealth", "Multiply Health", "Multiply_Health", "multihp", g_esPlayer[iPlayer].g_iMultiHealth, value, 0, 3);
g_esPlayer[iPlayer].g_iHumanSupport = iGetKeyValue(g_esGeneral.g_sCurrentSubSection, "HumanSupport", "Human Support", "Human_Support", "human", key, "HumanSupport", "Human Support", "Human_Support", "human", g_esPlayer[iPlayer].g_iHumanSupport, value, 0, 2);
g_esPlayer[iPlayer].g_iRenamePlayers = iGetKeyValue(g_esGeneral.g_sCurrentSubSection, "HumanSupport", "Human Support", "Human_Support", "human", key, "RenamePlayers", "Rename Players", "Rename_Players", "rename", g_esPlayer[iPlayer].g_iRenamePlayers, value, 0, 1);
g_esPlayer[iPlayer].g_iGlowEnabled = iGetKeyValue(g_esGeneral.g_sCurrentSubSection, "General", "General", "General", "General", key, "GlowEnabled", "Glow Enabled", "Glow_Enabled", "glow", g_esPlayer[iPlayer].g_iGlowEnabled, value, 0, 1);
g_esPlayer[iPlayer].g_iGlowFlashing = iGetKeyValue(g_esGeneral.g_sCurrentSubSection, "General", "General", "General", "General", key, "GlowFlashing", "Glow Flashing", "Glow_Flashing", "glowflashing", g_esPlayer[iPlayer].g_iGlowFlashing, value, 0, 1);
Expand Down Expand Up @@ -5018,7 +5013,7 @@ public void vTankSpawnFrame(DataPack pack)
}
}

if (bIsTankAllowed(iTank, MT_CHECK_FAKECLIENT) && g_esCache[iTank].g_iHumanSupport == 1 && bHasCoreAdminAccess(iTank))
if (bIsTankAllowed(iTank, MT_CHECK_FAKECLIENT) && g_esTank[g_esPlayer[iTank].g_iTankType].g_iHumanSupport == 1 && bHasCoreAdminAccess(iTank))
{
MT_PrintToChat(iTank, "%s %t", MT_TAG3, "SpawnMessage");
MT_PrintToChat(iTank, "%s %t", MT_TAG2, "AbilityButtons");
Expand Down Expand Up @@ -5232,7 +5227,7 @@ static bool bIsPluginEnabled()

static bool bIsTankAllowed(int tank, int flags = MT_CHECK_INDEX|MT_CHECK_INGAME|MT_CHECK_ALIVE|MT_CHECK_INKICKQUEUE)
{
if (!bIsTank(tank, flags) || (bIsTank(tank, MT_CHECK_FAKECLIENT) && g_esCache[tank].g_iHumanSupport == 0))
if (!bIsTank(tank, flags) || (bIsTank(tank, MT_CHECK_FAKECLIENT) && g_esTank[g_esPlayer[tank].g_iTankType].g_iHumanSupport == 0))
{
return false;
}
Expand Down

0 comments on commit 04c57c8

Please sign in to comment.