Skip to content

Commit 83c961d

Browse files
committed
update(src): Remove Addons, add Weapon API, and more
1 parent 5a0d6fa commit 83c961d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+53910
-48857
lines changed

.vscode/settings.json

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"files.associations": {
3-
"string": "cpp",
3+
"iostream": "cpp",
44
"*.inc": "cpp",
55
"cctype": "cpp",
66
"clocale": "cpp",
77
"cmath": "cpp",
8+
"csignal": "cpp",
89
"cstdarg": "cpp",
910
"cstddef": "cpp",
1011
"cstdio": "cpp",
@@ -13,23 +14,28 @@
1314
"ctime": "cpp",
1415
"cwchar": "cpp",
1516
"cwctype": "cpp",
17+
"*.ipp": "cpp",
1618
"any": "cpp",
1719
"array": "cpp",
1820
"atomic": "cpp",
21+
"strstream": "cpp",
1922
"bit": "cpp",
2023
"*.tcc": "cpp",
2124
"bitset": "cpp",
2225
"chrono": "cpp",
2326
"codecvt": "cpp",
2427
"compare": "cpp",
28+
"complex": "cpp",
2529
"concepts": "cpp",
2630
"condition_variable": "cpp",
31+
"coroutine": "cpp",
2732
"cstdint": "cpp",
2833
"deque": "cpp",
2934
"forward_list": "cpp",
3035
"list": "cpp",
3136
"map": "cpp",
3237
"set": "cpp",
38+
"string": "cpp",
3339
"unordered_map": "cpp",
3440
"unordered_set": "cpp",
3541
"vector": "cpp",
@@ -44,41 +50,34 @@
4450
"random": "cpp",
4551
"ratio": "cpp",
4652
"regex": "cpp",
53+
"source_location": "cpp",
4754
"string_view": "cpp",
4855
"system_error": "cpp",
4956
"tuple": "cpp",
5057
"type_traits": "cpp",
5158
"utility": "cpp",
5259
"fstream": "cpp",
60+
"future": "cpp",
5361
"initializer_list": "cpp",
5462
"iomanip": "cpp",
5563
"iosfwd": "cpp",
56-
"iostream": "cpp",
5764
"istream": "cpp",
5865
"limits": "cpp",
5966
"mutex": "cpp",
6067
"new": "cpp",
6168
"numbers": "cpp",
6269
"ostream": "cpp",
6370
"semaphore": "cpp",
71+
"span": "cpp",
6472
"sstream": "cpp",
6573
"stdexcept": "cpp",
6674
"stop_token": "cpp",
6775
"streambuf": "cpp",
6876
"thread": "cpp",
6977
"cfenv": "cpp",
7078
"cinttypes": "cpp",
71-
"typeinfo": "cpp",
72-
"filesystem": "cpp",
73-
"csignal": "cpp",
74-
"*.ipp": "cpp",
75-
"strstream": "cpp",
76-
"complex": "cpp",
77-
"coroutine": "cpp",
78-
"source_location": "cpp",
79-
"future": "cpp",
80-
"span": "cpp",
8179
"typeindex": "cpp",
80+
"typeinfo": "cpp",
8281
"variant": "cpp"
8382
}
8483
}

PackageScript

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ builder.AddCopy(os.path.join(builder.sourcePath, 'plugin_files', 'bin', 'scripti
6060

6161
configs_folder = builder.AddFolder(os.path.join('addons', MMSPlugin.plugin_name, 'configs'))
6262
configs_plugins_folder = builder.AddFolder(os.path.join('addons', MMSPlugin.plugin_name, 'configs', 'plugins'))
63-
builder.AddCopy(os.path.join(builder.sourcePath, 'plugin_files', 'configs', 'addons.json'), configs_folder)
6463
builder.AddCopy(os.path.join(builder.sourcePath, 'plugin_files', 'configs', 'core.json'), configs_folder)
6564
builder.AddCopy(os.path.join(builder.sourcePath, 'plugin_files', 'configs', 'console_filter.json'), configs_folder)
6665
builder.AddCopy(os.path.join(builder.sourcePath, 'plugin_files', 'configs', 'databases.json'), configs_folder)

plugin_files/bin/scripting/entity.lua

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
local hookEntityOutputHandles = {
2-
pre = {},
3-
post = {}
4-
}
5-
61
function AddHookEntityOutput(classname, output)
72
if type(classname) ~= "string" then
83
print("AddHookEntityOutput: classname must be a string.")

plugin_files/bin/scripting/utils.lua

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,16 @@ end
109109

110110
function ComputePrettyTime(seconds)
111111
if seconds == 0 then return FetchTranslation("core.forever")
112-
elseif seconds < 60 then return string.format(FetchTranslation("core.seconds"), seconds)
113-
elseif seconds < 3600 then return string.format(FetchTranslation("core.minutes"), math.floor(seconds / 60))
114-
elseif seconds < 86400 then return string.format(FetchTranslation("core.hours"), math.floor(seconds / 3600))
115-
else return string.format(FetchTranslation("core.days"), math.floor(seconds / 86400)) end
112+
elseif seconds < 60 then return FetchTranslation("core.seconds"):gsub("{TIME}", seconds)
113+
elseif seconds < 3600 then return FetchTranslation("core.minutes"):gsub("{TIME}", math.floor(seconds / 60))
114+
elseif seconds < 86400 then return FetchTranslation("core.hours"):gsub("{TIME}", math.floor(seconds / 3600))
115+
else return FetchTranslation("core.days"):gsub("{TIME}", math.floor(seconds / 86400)) end
116+
end
117+
118+
string.split = function(str, split)
119+
local splitted = {}
120+
for split in string.gmatch(str, "[^"..split.."]+") do
121+
table.insert(splitted, split)
122+
end
123+
return splitted
116124
end

plugin_files/configs/addons.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

plugin_files/configs/console_filter.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,7 @@
3030
"teamt": "Team T triggered",
3131
"teamtero": "Team TERRORIST",
3232
"teamtcounter": "Team CT",
33-
"roundend": "World triggered Round_End"
33+
"roundend": "World triggered Round_End",
34+
"laterecv": "LATE Recv",
35+
"generatesubstitute": "generating substitute"
3436
}

0 commit comments

Comments
 (0)