Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
sourcemod_plugins
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
JoyJ
sourcemod_plugins
Commits
66513517
You need to sign in or sign up before continuing.
Commit
66513517
authored
Sep 25, 2022
by
JoyJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "downgrade include"
This reverts commit
68a2c4c4
.
parent
ad6f2548
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
88 additions
and
15 deletions
+88
-15
include/clientprefs.inc
include/clientprefs.inc
+62
-1
include/files.inc
include/files.inc
+2
-2
include/float.inc
include/float.inc
+3
-3
include/lang.inc
include/lang.inc
+9
-0
include/sdktools.inc
include/sdktools.inc
+2
-1
include/sdktools_functions.inc
include/sdktools_functions.inc
+2
-1
include/sourcemod.inc
include/sourcemod.inc
+2
-1
include/version.inc
include/version.inc
+2
-2
include/version_auto.inc
include/version_auto.inc
+4
-4
No files found.
include/clientprefs.inc
View file @
66513517
...
@@ -132,6 +132,31 @@ methodmap Cookie < Handle {
...
@@ -132,6 +132,31 @@ methodmap Cookie < Handle {
// @param value String value to set.
// @param value String value to set.
// @error Invalid cookie handle or invalid client index.
// @error Invalid cookie handle or invalid client index.
public
native
void
Set
(
int
client
,
const
char
[]
value
);
public
native
void
Set
(
int
client
,
const
char
[]
value
);
// Set the integer value of a Client preference cookie.
//
// @param client Client index.
// @param value Integer value to set.
// @error Invalid cookie handle or invalid client index.
public
void
SetInt
(
int
client
,
int
value
)
{
char
sValue
[
11
];
IntToString
(
value
,
sValue
,
sizeof
(
sValue
));
this
.
Set
(
client
,
sValue
);
}
// Set the float value of a Client preference cookie.
//
// @param client Client index.
// @param value Float value to set.
// @error Invalid cookie handle or invalid client index.
public
void
SetFloat
(
int
client
,
float
value
)
{
char
sValue
[
32
];
FloatToString
(
value
,
sValue
,
sizeof
(
sValue
));
this
.
Set
(
client
,
sValue
);
}
// Retrieve the value of a Client preference cookie.
// Retrieve the value of a Client preference cookie.
//
//
...
@@ -141,7 +166,43 @@ methodmap Cookie < Handle {
...
@@ -141,7 +166,43 @@ methodmap Cookie < Handle {
// @error Invalid cookie handle or invalid client index.
// @error Invalid cookie handle or invalid client index.
public
native
void
Get
(
int
client
,
char
[]
buffer
,
int
maxlen
);
public
native
void
Get
(
int
client
,
char
[]
buffer
,
int
maxlen
);
// Sets the value of a Client preference cookie based on an authID string.
// Retrieve the integer value of a Client preference cookie.
//
// @param client Client index.
// @return Integer value of cookie
// @error Invalid cookie handle or invalid client index.
public
int
GetInt
(
int
client
,
int
defaultValue
=
0
)
{
char
buffer
[
11
];
this
.
Get
(
client
,
buffer
,
sizeof
(
buffer
));
int
value
;
if
(
!
StringToIntEx
(
buffer
,
value
))
{
value
=
defaultValue
;
}
return
value
;
}
// Retrieve the float value of a Client preference cookie.
//
// @param client Client index.
// @return Float value of cookie
// @error Invalid cookie handle or invalid client index.
public
float
GetFloat
(
int
client
,
float
defaultValue
=
0.0
)
{
char
buffer
[
32
];
this
.
Get
(
client
,
buffer
,
sizeof
(
buffer
));
float
value
;
if
(
!
StringToFloatEx
(
buffer
,
value
))
{
value
=
defaultValue
;
}
return
value
;
}
// Set the value of a Client preference cookie based on an authID string.
//
//
// @param authID String Auth/STEAM ID of player to set.
// @param authID String Auth/STEAM ID of player to set.
// @param value String value to set.
// @param value String value to set.
...
...
include/files.inc
View file @
66513517
...
@@ -575,7 +575,7 @@ native bool RemoveDir(const char[] path);
...
@@ -575,7 +575,7 @@ native bool RemoveDir(const char[] path);
/**
/**
* Creates a directory.
* Creates a directory.
*
*
* @param path Path to create.
* @param path Path to create.
Note that directories are not created recursively unless use_valve_fs is used.
* @param mode Permissions (default is o=rx,g=rx,u=rwx). Note that folders must have
* @param mode Permissions (default is o=rx,g=rx,u=rwx). Note that folders must have
* the execute bit set on Linux. On Windows, the mode is ignored.
* the execute bit set on Linux. On Windows, the mode is ignored.
* @param use_valve_fs If true, the Valve file system will be used instead.
* @param use_valve_fs If true, the Valve file system will be used instead.
...
@@ -585,7 +585,7 @@ native bool RemoveDir(const char[] path);
...
@@ -585,7 +585,7 @@ native bool RemoveDir(const char[] path);
* In this case, mode is ignored.
* In this case, mode is ignored.
* @return True on success, false otherwise.
* @return True on success, false otherwise.
*/
*/
native
bool
CreateDirectory
(
const
char
[]
path
,
int
mode
,
bool
use_valve_fs
=
false
,
const
char
[]
valve_path_id
=
"DEFAULT_WRITE_PATH"
);
native
bool
CreateDirectory
(
const
char
[]
path
,
int
mode
=
FPERM_O_READ
|
FPERM_O_EXEC
|
FPERM_G_READ
|
FPERM_G_EXEC
|
FPERM_U_READ
|
FPERM_U_WRITE
|
FPERM_U_EXEC
,
bool
use_valve_fs
=
false
,
const
char
[]
valve_path_id
=
"DEFAULT_WRITE_PATH"
);
/**
/**
* Changes a file or directories permissions.
* Changes a file or directories permissions.
...
...
include/float.inc
View file @
66513517
...
@@ -390,9 +390,9 @@ stock bool operator<=(int oper1, float oper2)
...
@@ -390,9 +390,9 @@ stock bool operator<=(int oper1, float oper2)
/**
/**
* Forbidden operators.
* Forbidden operators.
*/
*/
forward
operator
%
(
float
oper1
,
float
oper2
);
forward
float
operator
%
(
float
oper1
,
float
oper2
);
forward
operator
%
(
float
oper1
,
int
oper2
);
forward
float
operator
%
(
float
oper1
,
int
oper2
);
forward
operator
%
(
int
oper1
,
float
oper2
);
forward
float
operator
%
(
int
oper1
,
float
oper2
);
#endif // __sourcepawn2__
#endif // __sourcepawn2__
#define FLOAT_PI 3.1415926535897932384626433832795
#define FLOAT_PI 3.1415926535897932384626433832795
...
...
include/lang.inc
View file @
66513517
...
@@ -99,6 +99,15 @@ native void GetLanguageInfo(int language, char[] code="", int codeLen=0, char[]
...
@@ -99,6 +99,15 @@ native void GetLanguageInfo(int language, char[] code="", int codeLen=0, char[]
*/
*/
native
void
SetClientLanguage
(
int
client
,
int
language
);
native
void
SetClientLanguage
(
int
client
,
int
language
);
/**
* Retrieves the language number a client had when they connected.
*
* @param client Client index.
* @return Language number client originally had.
* @error Invalid client index or client not connected.
*/
native
int
GetClientOriginalLanguage
(
int
client
);
/**
/**
* Retrieves the language number from a language code.
* Retrieves the language number from a language code.
*
*
...
...
include/sdktools.inc
View file @
66513517
...
@@ -61,7 +61,8 @@ enum SDKCallType
...
@@ -61,7 +61,8 @@ enum SDKCallType
SDKCall_GameRules
,
/**< CGameRules call */
SDKCall_GameRules
,
/**< CGameRules call */
SDKCall_EntityList
,
/**< CGlobalEntityList call */
SDKCall_EntityList
,
/**< CGlobalEntityList call */
SDKCall_Raw
,
/**< |this| pointer with an arbitrary address */
SDKCall_Raw
,
/**< |this| pointer with an arbitrary address */
SDKCall_Server
/**< CBaseServer call */
SDKCall_Server
,
/**< CBaseServer call */
SDKCall_Engine
/**< CVEngineServer call */
};
};
enum
SDKLibrary
enum
SDKLibrary
...
...
include/sdktools_functions.inc
View file @
66513517
...
@@ -102,9 +102,10 @@ native void TeleportEntity(int entity, const float origin[3] = NULL_VECTOR, cons
...
@@ -102,9 +102,10 @@ native void TeleportEntity(int entity, const float origin[3] = NULL_VECTOR, cons
* Forces a player to commit suicide.
* Forces a player to commit suicide.
*
*
* @param client Client index.
* @param client Client index.
* @param explode If true, explode the player.
* @error Invalid client or client not in game, or lack of mod support.
* @error Invalid client or client not in game, or lack of mod support.
*/
*/
native
void
ForcePlayerSuicide
(
int
client
);
native
void
ForcePlayerSuicide
(
int
client
,
bool
explode
=
false
);
/**
/**
* Slaps a player in a random direction.
* Slaps a player in a random direction.
...
...
include/sourcemod.inc
View file @
66513517
...
@@ -76,6 +76,7 @@ struct Plugin
...
@@ -76,6 +76,7 @@ struct Plugin
#include <commandfilters>
#include <commandfilters>
#include <nextmap>
#include <nextmap>
#include <commandline>
#include <commandline>
#include <entitylump>
enum
APLRes
enum
APLRes
{
{
...
@@ -397,7 +398,7 @@ native int GetTime(int bigStamp[2]={0,0});
...
@@ -397,7 +398,7 @@ native int GetTime(int bigStamp[2]={0,0});
* Produces a date and/or time string value for a timestamp.
* Produces a date and/or time string value for a timestamp.
*
*
* See this URL for valid parameters:
* See this URL for valid parameters:
* http
://cplusplus.com/reference/clibrary/ctime/strftime.html
* http
s://cplusplus.com/reference/ctime/strftime/
*
*
* Note that available parameters depends on support from your operating system.
* Note that available parameters depends on support from your operating system.
* In particular, ones highlighted in yellow on that page are not currently
* In particular, ones highlighted in yellow on that page are not currently
...
...
include/version.inc
View file @
66513517
...
@@ -42,8 +42,8 @@
...
@@ -42,8 +42,8 @@
#define SOURCEMOD_V_REV 0
#define SOURCEMOD_V_REV 0
#define SOURCEMOD_V_CSET "0"
#define SOURCEMOD_V_CSET "0"
#define SOURCEMOD_V_MAJOR 1 /**< SourceMod Major version */
#define SOURCEMOD_V_MAJOR 1 /**< SourceMod Major version */
#define SOURCEMOD_V_MINOR 1
1
/**< SourceMod Minor version */
#define SOURCEMOD_V_MINOR 1
2
/**< SourceMod Minor version */
#define SOURCEMOD_V_RELEASE 0 /**< SourceMod Release version */
#define SOURCEMOD_V_RELEASE 0 /**< SourceMod Release version */
#define SOURCEMOD_VERSION "1.1
1
.0-manual" /**< SourceMod version string (major.minor.release-tag) */
#define SOURCEMOD_VERSION "1.1
2
.0-manual" /**< SourceMod version string (major.minor.release-tag) */
#endif
#endif
include/version_auto.inc
View file @
66513517
...
@@ -5,11 +5,11 @@
...
@@ -5,11 +5,11 @@
#define _auto_version_included
#define _auto_version_included
#define SOURCEMOD_V_TAG ""
#define SOURCEMOD_V_TAG ""
#define SOURCEMOD_V_CSET "
2f0ba0f3
"
#define SOURCEMOD_V_CSET "
855ece1d
"
#define SOURCEMOD_V_MAJOR 1
#define SOURCEMOD_V_MAJOR 1
#define SOURCEMOD_V_MINOR 1
1
#define SOURCEMOD_V_MINOR 1
2
#define SOURCEMOD_V_RELEASE 0
#define SOURCEMOD_V_RELEASE 0
#define SOURCEMOD_V_REV 69
11
#define SOURCEMOD_V_REV 69
25
#define SOURCEMOD_VERSION "1.1
1.0.6911
"
#define SOURCEMOD_VERSION "1.1
2.0.6925
"
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment