Skip to content

Commit

Permalink
Beta 7.2: compatibility issues with sm 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
shanapu committed Aug 28, 2016
1 parent 8b27db6 commit 92a9bae
Show file tree
Hide file tree
Showing 43 changed files with 136 additions and 18 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ addons/sourcemod/scripting/include/adt_stack.inc
addons/sourcemod/scripting/include/adt_trie.inc
addons/sourcemod/scripting/include/autoexecconfig.inc
addons/sourcemod/scripting/include/banning.inc
addons/sourcemod/scripting/include/basecomm.inc
addons/sourcemod/scripting/include/bitbuffer.inc
addons/sourcemod/scripting/include/clientprefs.inc
addons/sourcemod/scripting/include/clients.inc
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ addons:

#Set the build environment
env:
- SMVERSION=1.7
- SMVERSION=1.8
- SMVERSION=1.9

Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
### Change Log

**[Beta 7.2]** - fix for 1.7.x

*Fixed*
* Compatibility issues with sourcemod 1.7.x



**[Beta 7.1]** - smaller fixes

*Fixed*
Expand Down
Binary file modified addons/sourcemod/plugins/MyJailbreak/catch.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/cowboy.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/dealdamage.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/drunk.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/duckhunt.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/ffa.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/freeday.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/hebattle.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/hide.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/hud.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/knife.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/lastguard.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/menu.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/myjailbreak.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/noscope.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/playertags.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/ratio.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/request.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/suicide.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/torch.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/war.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/warden.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/weapons.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/zeus.smx
Binary file not shown.
Binary file modified addons/sourcemod/plugins/MyJailbreak/zombie.smx
Binary file not shown.
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/MyJailbreak/cowboy.sp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ public void Event_RoundStart(Event event, char[] name, bool dontBroadcast)
SetEntData(client, FindSendPropInfo("CBaseEntity", "m_CollisionGroup"), 2, 4, true);
SetEntProp(client, Prop_Data, "m_takedamage", 0, 1);

if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && !SJD_IsCurrentMapConfigured)) //spawn Terrors to CT Spawn
if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && (SJD_IsCurrentMapConfigured() != true))) //spawn Terrors to CT Spawn
{
TeleportEntity(client, g_fPos, NULL_VECTOR, NULL_VECTOR);
}
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/MyJailbreak/dealdamage.sp
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ public void Event_RoundStart(Event event, char[] name, bool dontBroadcast)
SetEntData(client, FindSendPropInfo("CBaseEntity", "m_CollisionGroup"), 2, 4, true); //NoBlock
CreateInfoPanel(client);
SetEntProp(client, Prop_Data, "m_takedamage", 0, 1); //disable damage
if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && !SJD_IsCurrentMapConfigured)) //spawn Terrors to CT Spawn //spawn Terrors to CT Spawn
if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && (SJD_IsCurrentMapConfigured() != true))) //spawn Terrors to CT Spawn //spawn Terrors to CT Spawn
{
TeleportEntity(client, g_fPos, NULL_VECTOR, NULL_VECTOR);
}
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/MyJailbreak/drunk.sp
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ public void Event_RoundStart(Event event, char[] name, bool dontBroadcast)
SetEntData(client, FindSendPropInfo("CBaseEntity", "m_CollisionGroup"), 2, 4, true); //NoBlock
SendPanelToClient(DrunkMenu, client, Handler_NullCancel, 20); //open info Panel
SetEntProp(client, Prop_Data, "m_takedamage", 0, 1); //disable damage
if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && !SJD_IsCurrentMapConfigured)) //spawn Terrors to CT Spawn //spawn Terrors to CT Spawn
if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && (SJD_IsCurrentMapConfigured() != true))) //spawn Terrors to CT Spawn //spawn Terrors to CT Spawn
{
TeleportEntity(client, g_fPos, NULL_VECTOR, NULL_VECTOR);
}
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/MyJailbreak/ffa.sp
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ public void Event_RoundStart(Event event, char[] name, bool dontBroadcast)
{
LoopClients(client)
{
if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && !SJD_IsCurrentMapConfigured)) //spawn Terrors to CT Spawn
if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && (SJD_IsCurrentMapConfigured() != true))) //spawn Terrors to CT Spawn
{
if (IsClientInGame(client))
{
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/MyJailbreak/hebattle.sp
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ public void Event_RoundStart(Event event, char[] name, bool dontBroadcast)
{
SetEntityGravity(client, gc_fGravValue.FloatValue);
}
if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && !SJD_IsCurrentMapConfigured)) //spawn Terrors to CT Spawn
if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && (SJD_IsCurrentMapConfigured() != true))) //spawn Terrors to CT Spawn
{
TeleportEntity(client, g_fPos, NULL_VECTOR, NULL_VECTOR);
}
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/MyJailbreak/knife.sp
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ public void Event_RoundStart(Event event, char[] name, bool dontBroadcast)
{
ClientCommand(client, "thirdperson");
}
if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && !SJD_IsCurrentMapConfigured)) //spawn Terrors to CT Spawn
if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && (SJD_IsCurrentMapConfigured() != true))) //spawn Terrors to CT Spawn
{
TeleportEntity(client, g_fPos, NULL_VECTOR, NULL_VECTOR);
}
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/MyJailbreak/noscope.sp
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ public void Event_RoundStart(Event event, char[] name, bool dontBroadcast)
{
SetEntityGravity(client, gc_fGravValue.FloatValue);
}
if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && !SJD_IsCurrentMapConfigured)) //spawn Terrors to CT Spawn
if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && (SJD_IsCurrentMapConfigured() != true))) //spawn Terrors to CT Spawn
{
TeleportEntity(client, g_fPos, NULL_VECTOR, NULL_VECTOR);
}
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/MyJailbreak/torch.sp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ public void Event_RoundStart(Event event, char[] name, bool dontBroadcast)
{
LoopClients(client)
{
if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && !SJD_IsCurrentMapConfigured)) //spawn Terrors to CT Spawn
if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && (SJD_IsCurrentMapConfigured() != true))) //spawn Terrors to CT Spawn
{
if (IsClientInGame(client))
{
Expand Down
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/MyJailbreak/war.sp
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public void Event_RoundStart(Event event, char[] name, bool dontBroadcast)
{
for(int client=1; client <= MaxClients; client++)
{
if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && !SJD_IsCurrentMapConfigured)) //spawn Terrors to CT Spawn )
if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && (SJD_IsCurrentMapConfigured() != true))) //spawn Terrors to CT Spawn )
{
if (IsClientInGame(client))
{
Expand Down Expand Up @@ -424,7 +424,7 @@ public void Event_RoundStart(Event event, char[] name, bool dontBroadcast)

g_iFreezeTime--;

if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && !SJD_IsCurrentMapConfigured)) //spawn Terrors to CT Spawn )
if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && (SJD_IsCurrentMapConfigured() != true))) //spawn Terrors to CT Spawn )
{
FreezeTimer = CreateTimer(1.0, Timer_FreezeOnStart, _, TIMER_REPEAT);
}
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/MyJailbreak/zeus.sp
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public void Event_RoundStart(Event event, char[] name, bool dontBroadcast)
SetEntProp(client, Prop_Data, "m_takedamage", 0, 1);
ClientTimer[client] = CreateTimer(0.5, Timer_GiveZeus, client);

if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && !SJD_IsCurrentMapConfigured)) //spawn Terrors to CT Spawn
if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && (SJD_IsCurrentMapConfigured() != true))) //spawn Terrors to CT Spawn
{
TeleportEntity(client, g_fPos, NULL_VECTOR, NULL_VECTOR);
}
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/MyJailbreak/zombie.sp
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ public void Event_RoundStart(Event event, char[] name, bool dontBroadcast)
GivePlayerItem(client, "weapon_hegrenade");
GivePlayerItem(client, "weapon_molotov");
}
if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && !SJD_IsCurrentMapConfigured)) //spawn Terrors to CT Spawn
if (!gc_bSpawnCell.BoolValue || (gc_bSpawnCell.BoolValue && (SJD_IsCurrentMapConfigured() != true))) //spawn Terrors to CT Spawn
{
TeleportEntity(client, g_fPos, NULL_VECTOR, NULL_VECTOR);
}
Expand Down
109 changes: 109 additions & 0 deletions addons/sourcemod/scripting/include/basecomm.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
/**
* vim: set ts=4 :
* =============================================================================
* SourceMod (C)2004-2011 AlliedModders LLC. All rights reserved.
* =============================================================================
*
* This file is part of the SourceMod/SourcePawn SDK.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, version 3.0, as published by the
* Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*
* As a special exception, AlliedModders LLC gives you permission to link the
* code of this program (as well as its derivative works) to "Half-Life 2," the
* "Source Engine," the "SourcePawn JIT," and any Game MODs that run on software
* by the Valve Corporation. You must obey the GNU General Public License in
* all respects for all other code used. Additionally, AlliedModders LLC grants
* this exception to all derivative works. AlliedModders LLC defines further
* exceptions, found in LICENSE.txt (as of this writing, version JULY-31-2007),
* or <http://www.sourcemod.net/license.php>.
*
* Version: $Id$
*/

#if defined _basecomm_included
#endinput
#endif
#define _basecomm_included

/**
* Called when a client is muted or unmuted
*
* @param client Client index
* @param muteState True if client was muted, false otherwise
*/
forward void BaseComm_OnClientMute(int client, bool muteState);

/**
* Called when a client is gagged or ungagged
*
* @param client Client index
* @param gagState True if client was gaged, false otherwise
*/
forward void BaseComm_OnClientGag(int client, bool gagState);

/**
* Returns whether or not a client is gagged
*
* @param client Client index.
* @return True if client is gagged, false otherwise.
*/
native bool BaseComm_IsClientGagged(int client);

/**
* Returns whether or not a client is muted
*
* @param client Client index.
* @return True if client is muted, false otherwise.
*/
native bool BaseComm_IsClientMuted(int client);

/**
* Sets a client's gag state
*
* @param client Client index.
* @param gagState True to gag client, false to ungag.
* @return True if this caused a change in gag state, false otherwise.
*/
native bool BaseComm_SetClientGag(int client, bool gagState);

/**
* Sets a client's mute state
*
* @param client Client index.
* @param muteState True to mute client, false to unmute.
* @return True if this caused a change in mute state, false otherwise.
*/
native bool BaseComm_SetClientMute(int client, bool muteState);

/* DO NOT EDIT BELOW THIS LINE */

public SharedPlugin __pl_basecomm =
{
name = "basecomm",
file = "basecomm.smx",
#if defined REQUIRE_PLUGIN
required = 1,
#else
required = 0,
#endif
};

#if !defined REQUIRE_PLUGIN
public void __pl_basecomm_SetNTVOptional()
{
MarkNativeAsOptional("BaseComm_IsClientGagged");
MarkNativeAsOptional("BaseComm_IsClientMuted");
MarkNativeAsOptional("BaseComm_SetClientGag");
MarkNativeAsOptional("BaseComm_SetClientMute");
}
#endif
8 changes: 4 additions & 4 deletions addons/sourcemod/scripting/include/myjailbreak.inc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public SharedPlugin:__pl_myjailbreak =


//Defines
#define PLUGIN_VERSION "Beta 7.1"
#define PLUGIN_VERSION "Beta 7.2"
#define URL_LINK "https://github.com/shanapu/MyJailbreak"


Expand Down Expand Up @@ -292,7 +292,7 @@ stock void ShowOverlayAll(char [] path, float deletetime)


//Remove overlay from a client
stock Action DeleteOverlay( Handle timer, any client )
public Action DeleteOverlay( Handle timer, any client )
{
if(IsValidClient(client, false, true))
{
Expand Down Expand Up @@ -379,7 +379,7 @@ stock void SetPlayerWeaponAmmo(int client, int weaponEnt, int clip = -1, int amm


//Remove a players render color
stock Action Timer_RemoveColor( Handle timer, any client )
public Action Timer_RemoveColor( Handle timer, any client )
{
if(IsValidClient(client, true, true))
{
Expand Down Expand Up @@ -454,7 +454,7 @@ stock bool CheckVipFlag(int client, const char[] flagsNeed)


//Menu Handler for Panels
stock int Handler_NullCancel(Handle menu, MenuAction action, int param1, int param2)
public int Handler_NullCancel(Handle menu, MenuAction action, int param1, int param2)
{
if (action == MenuAction_Select)
{
Expand Down
2 changes: 2 additions & 0 deletions thread.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1656,6 +1656,8 @@ native warden_get(client);
[B][u]Latest Changes[/u][/B]

[QUOTE]
[b][Beta 7.2][/b] - Compatibility issues with sourcemod 1.7.x

[b][Beta 7.1][/b] - smaller fixes
[SPOILER]
[i]Fixed[/i][LIST]
Expand Down
2 changes: 1 addition & 1 deletion wiki
Submodule wiki updated from e0e70e to aba90f

0 comments on commit 92a9bae

Please sign in to comment.