forked from Nolan-O/Oryx-AC
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from shavitush/dev
v1.3
- Loading branch information
Showing
11 changed files
with
570 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "SourcePawn Compile", | ||
"type": "shell", | ||
"command": "E:\\scripting\\spcomp.exe", | ||
"args": [ | ||
"'${file}'", | ||
"-i=E:\\scripting\\include", | ||
"-D=E:\\css-ds\\cstrike\\addons\\sourcemod\\plugins", | ||
], | ||
"problemMatcher": { | ||
"owner": "sp", | ||
"fileLocation": "absolute", | ||
"pattern": { | ||
"regexp": "^(.*)\\((.+)\\)\\s:\\s(((warning|error|fatal error)\\s\\d+):\\s.*)$", | ||
"file": 1, | ||
"line": 2, | ||
"severity": 5, | ||
"message": 3 | ||
} | ||
}, | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#if defined _tas_included | ||
#endinput | ||
#endif | ||
#define _tas_included | ||
|
||
native bool TAS_InEditMode(int client); | ||
|
||
native bool TAS_IsPaused(int client); | ||
|
||
native ArrayList TAS_GetRunHandle(int client); | ||
|
||
native int TAS_GetCurrentFrame(int client); | ||
|
||
forward void OnTASPauseChanged(int client, bool paused); | ||
|
||
forward void OnTASFrameRecorded(int client, int frame); | ||
|
||
public SharedPlugin __pl_tas = | ||
{ | ||
name = "tas", | ||
file = "bTimes-tas.smx", | ||
#if defined REQUIRE_PLUGIN | ||
required = 1, | ||
#else | ||
required = 0, | ||
#endif | ||
}; | ||
|
||
|
||
#if !defined REQUIRE_PLUGIN | ||
public void __pl_tas_SetNTVOptional() | ||
{ | ||
MarkNativeAsOptional("TAS_InEditMode"); | ||
MarkNativeAsOptional("TAS_IsPaused"); | ||
MarkNativeAsOptional("TAS_GetRunHandle"); | ||
MarkNativeAsOptional("TAS_GetCurrentFrame"); | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
#if defined _btimes_timer_included | ||
#endinput | ||
#endif | ||
#define _btimes_timer_included | ||
|
||
enum styleConfig | ||
{ | ||
String:Name[32], | ||
String:Name_Short[32], | ||
bool:Enabled, | ||
bool:TempEnabled, | ||
bool:AllowType[2], | ||
bool:Freestyle, | ||
bool:Freestyle_Unrestrict, | ||
bool:Freestyle_EzHop, | ||
bool:Freestyle_Auto, | ||
bool:Auto, | ||
bool:EzHop, | ||
Float:Gravity, | ||
Float:RunSpeed, | ||
Float:MaxVel, | ||
Float:MinFps, | ||
bool:CalcSync, | ||
bool:Prevent_Left, | ||
bool:Prevent_Right, | ||
bool:Prevent_Back, | ||
bool:Prevent_Forward, | ||
bool:Require_Left, | ||
bool:Require_Right, | ||
bool:Require_Back, | ||
bool:Require_Forward, | ||
bool:Hud_Style, | ||
bool:Hud_Strafes, | ||
bool:Hud_Jumps, | ||
bool:Count_Left_Strafe, | ||
bool:Count_Right_Strafe, | ||
bool:Count_Back_Strafe, | ||
bool:Count_Forward_Strafe, | ||
bool:Ghost_Use[2], | ||
bool:Ghost_Save[2], | ||
Float:PreSpeed, | ||
Float:SlowedSpeed, | ||
bool:Special, | ||
String:Special_Key[32], | ||
bool:GunJump, | ||
String:GunJump_Weapon[64], | ||
bool:UnrealPhys, | ||
AirAcceleration, | ||
bool:EnableBunnyhopping, | ||
StyleConfig | ||
}; | ||
|
||
/* | ||
* Gets a client's style (Normal, Sideways, etc..). | ||
* | ||
* @param client Client index | ||
* | ||
* @return The client's style. | ||
*/ | ||
native int GetClientStyle(int client); | ||
|
||
/* | ||
* Gets the complete configuration for a specified style. | ||
* | ||
* @param Style The style to get a configuration for. | ||
* @param Properties The buffer to store all the style properties, (properties are listed in the StyleConfig enum) | ||
* | ||
* @return True if the style exists, false otherwise. | ||
*/ | ||
native bool Style_GetConfig(int Style, any Properties[StyleConfig]); | ||
|
||
public SharedPlugin __pl_btimes_timer = | ||
{ | ||
name = "timer", | ||
file = "bTimes-timer.smx", | ||
#if defined REQUIRE_PLUGIN | ||
required = 1 | ||
#else | ||
required = 0 | ||
#endif | ||
}; | ||
|
||
#if !defined REQUIRE_PLUGIN | ||
public void __pl_btimes_timer_SetNTVOptional() | ||
{ | ||
MarkNativeAsOptional("GetClientStyle"); | ||
MarkNativeAsOptional("Style_GetConfig"); | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.