Skip to content

Commit

Permalink
v0.5.2-beta release.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kailo97 committed Nov 18, 2015
1 parent a65c2bd commit 332530a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
v0.5.2-beta
Fixed bug, when u can use button in spectate mode.
Distance of use increased from 64 to 80.

v0.5.1-beta
Optimization.
4 changes: 3 additions & 1 deletion ToDo.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
Add 'only open' mode setting for map.
Add OnOpenDoor forward (In progress).
Add OnCloseDoor forward (In progress).
Add Lock/Unlock doors.
Add Lock/Unlock doors.
��������� CS:S
? ��������� %t �� %T � �������� ��� ��� �������
8 changes: 4 additions & 4 deletions addons/sourcemod/scripting/smartjaildoors.sp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>

#define PLUGIN_VERSION "0.5.1-beta"
#define PLUGIN_VERSION "0.5.2-beta"

#include <sdktools>
#include <cstrike>
Expand All @@ -40,7 +40,7 @@ public Plugin myinfo =

#define CHAT_PATTERN "[SJD] %t" // Pattern for all plugin's msgs in chat. If you want replace tag - edit this. (no support colors tags)

#define BUTTON_USE 64.0 // Distance before button for active
#define BUTTON_USE 80.0 // Distance before button for active
#define BUTTON_HEIGHT 52.2 // Button settings
#define USE_AREA 15.0 // Distance from button top as radius sphere where u can use button
#define BUTTON_USE_SOUND "buttons/button3.wav" // Default button use sound
Expand Down Expand Up @@ -421,7 +421,7 @@ public Action OnPlayerRunCmd(int client, int &f_buttons, int &impulse, float vel
if (f_buttons & IN_USE == IN_USE && g_oldButtons[client] & IN_USE != IN_USE)
{
#if defined NEW_USE_LOGIC
if (HaveButtonsInCfg() && cv_sjd_buttons_filter.BoolValue ? (GetClientTeam(client) == CS_TEAM_CT) : true) {
if (IsPlayerAlive(client) && HaveButtonsInCfg() && (!cv_sjd_buttons_filter.BoolValue || GetClientTeam(client) == CS_TEAM_CT)) {
char mapName[64];
GetCurrentMap(mapName, sizeof(mapName));
if (IsMapConfigured(mapName)) {
Expand Down Expand Up @@ -471,7 +471,7 @@ public Action OnPlayerRunCmd(int client, int &f_buttons, int &impulse, float vel
}
}
#else
if (HaveButtonsInCfg() && cv_sjd_buttons_filter.BoolValue ? (GetClientTeam(client) == CS_TEAM_CT) : true) {
if (IsPlayerAlive(client) && HaveButtonsInCfg() && (!cv_sjd_buttons_filter.BoolValue || GetClientTeam(client) == CS_TEAM_CT)) {
int target = GetClientAimTarget(client, false);
if (target != -1) {
char mapname[64];
Expand Down

0 comments on commit 332530a

Please sign in to comment.