Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1fa8f37c7 | ||
|
|
475e91e779 | ||
|
|
a136f5472e |
@@ -49,7 +49,7 @@ internal class WeaponSynchronization
|
|||||||
if (!_config.Additional.KnifeEnabled || string.IsNullOrEmpty(player?.SteamId))
|
if (!_config.Additional.KnifeEnabled || string.IsNullOrEmpty(player?.SteamId))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const string query = "SELECT `knife`, `weapon_team` FROM `wp_player_knife` WHERE `steamid` = @steamid";
|
const string query = "SELECT `knife`, `weapon_team` FROM `wp_player_knife` WHERE `steamid` = @steamid ORDER BY `weapon_team` ASC";
|
||||||
var rows = connection.Query<dynamic>(query, new { steamid = player.SteamId }); // Retrieve all records for the player
|
var rows = connection.Query<dynamic>(query, new { steamid = player.SteamId }); // Retrieve all records for the player
|
||||||
|
|
||||||
foreach (var row in rows)
|
foreach (var row in rows)
|
||||||
@@ -60,9 +60,9 @@ internal class WeaponSynchronization
|
|||||||
// Determine the weapon team based on the query result
|
// Determine the weapon team based on the query result
|
||||||
CsTeam weaponTeam = (int)row.weapon_team switch
|
CsTeam weaponTeam = (int)row.weapon_team switch
|
||||||
{
|
{
|
||||||
0 => CsTeam.None,
|
|
||||||
2 => CsTeam.Terrorist,
|
2 => CsTeam.Terrorist,
|
||||||
_ => CsTeam.CounterTerrorist
|
3 => CsTeam.CounterTerrorist,
|
||||||
|
_ => CsTeam.None,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Get or create entries for the player’s slot
|
// Get or create entries for the player’s slot
|
||||||
@@ -94,7 +94,7 @@ internal class WeaponSynchronization
|
|||||||
if (!_config.Additional.GloveEnabled || string.IsNullOrEmpty(player?.SteamId))
|
if (!_config.Additional.GloveEnabled || string.IsNullOrEmpty(player?.SteamId))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const string query = "SELECT `weapon_defindex`, `weapon_team` FROM `wp_player_gloves` WHERE `steamid` = @steamid";
|
const string query = "SELECT `weapon_defindex`, `weapon_team` FROM `wp_player_gloves` WHERE `steamid` = @steamid ORDER BY `weapon_team` ASC";
|
||||||
var rows = connection.Query<dynamic>(query, new { steamid = player.SteamId }); // Retrieve all records for the player
|
var rows = connection.Query<dynamic>(query, new { steamid = player.SteamId }); // Retrieve all records for the player
|
||||||
|
|
||||||
foreach (var row in rows)
|
foreach (var row in rows)
|
||||||
@@ -105,9 +105,9 @@ internal class WeaponSynchronization
|
|||||||
var playerGloves = WeaponPaints.GPlayersGlove.GetOrAdd(player.Slot, _ => new ConcurrentDictionary<CsTeam, ushort>());
|
var playerGloves = WeaponPaints.GPlayersGlove.GetOrAdd(player.Slot, _ => new ConcurrentDictionary<CsTeam, ushort>());
|
||||||
CsTeam weaponTeam = (int)row.weapon_team switch
|
CsTeam weaponTeam = (int)row.weapon_team switch
|
||||||
{
|
{
|
||||||
0 => CsTeam.None,
|
|
||||||
2 => CsTeam.Terrorist,
|
2 => CsTeam.Terrorist,
|
||||||
_ => CsTeam.CounterTerrorist
|
3 => CsTeam.CounterTerrorist,
|
||||||
|
_ => CsTeam.None,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Get or create entries for the player’s slot
|
// Get or create entries for the player’s slot
|
||||||
@@ -171,28 +171,27 @@ internal class WeaponSynchronization
|
|||||||
|
|
||||||
// var weaponInfos = new ConcurrentDictionary<int, WeaponInfo>();
|
// var weaponInfos = new ConcurrentDictionary<int, WeaponInfo>();
|
||||||
|
|
||||||
const string query = "SELECT * FROM `wp_player_skins` WHERE `steamid` = @steamid";
|
const string query = "SELECT * FROM `wp_player_skins` WHERE `steamid` = @steamid ORDER BY `weapon_team` ASC";
|
||||||
var playerSkins = connection.Query<dynamic>(query, new { steamid = player.SteamId });
|
var playerSkins = connection.Query<dynamic>(query, new { steamid = player.SteamId });
|
||||||
|
|
||||||
foreach (var row in playerSkins)
|
foreach (var row in playerSkins)
|
||||||
{
|
{
|
||||||
int weaponDefIndex = row?.weapon_defindex ?? 0;
|
int weaponDefIndex = row.weapon_defindex ?? 0;
|
||||||
int weaponPaintId = row?.weapon_paint_id ?? 0;
|
int weaponPaintId = row.weapon_paint_id ?? 0;
|
||||||
float weaponWear = row?.weapon_wear ?? 0f;
|
float weaponWear = row.weapon_wear ?? 0f;
|
||||||
int weaponSeed = row?.weapon_seed ?? 0;
|
int weaponSeed = row.weapon_seed ?? 0;
|
||||||
string weaponNameTag = row?.weapon_nametag ?? "";
|
string weaponNameTag = row.weapon_nametag ?? "";
|
||||||
bool weaponStatTrak = row?.weapon_stattrak ?? false;
|
bool weaponStatTrak = row.weapon_stattrak ?? false;
|
||||||
int weaponStatTrakCount = row?.weapon_stattrak_count ?? 0;
|
int weaponStatTrakCount = row.weapon_stattrak_count ?? 0;
|
||||||
|
|
||||||
CsTeam weaponTeam = row?.weapon_team switch
|
CsTeam weaponTeam = row.weapon_team switch
|
||||||
{
|
{
|
||||||
null => CsTeam.None,
|
|
||||||
0 => CsTeam.None,
|
|
||||||
2 => CsTeam.Terrorist,
|
2 => CsTeam.Terrorist,
|
||||||
_ => CsTeam.CounterTerrorist
|
3 => CsTeam.CounterTerrorist,
|
||||||
|
_ => CsTeam.None,
|
||||||
};
|
};
|
||||||
|
|
||||||
string[]? keyChainParts = row?.weapon_keychain?.ToString().Split(';');
|
string[]? keyChainParts = row.weapon_keychain?.ToString().Split(';');
|
||||||
|
|
||||||
KeyChainInfo keyChainInfo = new KeyChainInfo();
|
KeyChainInfo keyChainInfo = new KeyChainInfo();
|
||||||
|
|
||||||
@@ -302,7 +301,7 @@ internal class WeaponSynchronization
|
|||||||
if (!_config.Additional.MusicEnabled || string.IsNullOrEmpty(player?.SteamId))
|
if (!_config.Additional.MusicEnabled || string.IsNullOrEmpty(player?.SteamId))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const string query = "SELECT `music_id`, `weapon_team` FROM `wp_player_music` WHERE `steamid` = @steamid";
|
const string query = "SELECT `music_id`, `weapon_team` FROM `wp_player_music` WHERE `steamid` = @steamid ORDER BY `weapon_team` ASC";
|
||||||
var rows = connection.Query<dynamic>(query, new { steamid = player.SteamId }); // Retrieve all records for the player
|
var rows = connection.Query<dynamic>(query, new { steamid = player.SteamId }); // Retrieve all records for the player
|
||||||
|
|
||||||
foreach (var row in rows)
|
foreach (var row in rows)
|
||||||
@@ -313,9 +312,9 @@ internal class WeaponSynchronization
|
|||||||
// Determine the weapon team based on the query result
|
// Determine the weapon team based on the query result
|
||||||
CsTeam weaponTeam = (int)row.weapon_team switch
|
CsTeam weaponTeam = (int)row.weapon_team switch
|
||||||
{
|
{
|
||||||
0 => CsTeam.None,
|
|
||||||
2 => CsTeam.Terrorist,
|
2 => CsTeam.Terrorist,
|
||||||
_ => CsTeam.CounterTerrorist
|
3 => CsTeam.CounterTerrorist,
|
||||||
|
_ => CsTeam.None,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Get or create entries for the player’s slot
|
// Get or create entries for the player’s slot
|
||||||
@@ -347,7 +346,7 @@ internal class WeaponSynchronization
|
|||||||
if (string.IsNullOrEmpty(player?.SteamId))
|
if (string.IsNullOrEmpty(player?.SteamId))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const string query = "SELECT `id`, `weapon_team` FROM `wp_player_pins` WHERE `steamid` = @steamid";
|
const string query = "SELECT `id`, `weapon_team` FROM `wp_player_pins` WHERE `steamid` = @steamid ORDER BY `weapon_team` ASC";
|
||||||
var rows = connection.Query<dynamic>(query, new { steamid = player.SteamId }); // Retrieve all records for the player
|
var rows = connection.Query<dynamic>(query, new { steamid = player.SteamId }); // Retrieve all records for the player
|
||||||
|
|
||||||
foreach (var row in rows)
|
foreach (var row in rows)
|
||||||
@@ -358,9 +357,9 @@ internal class WeaponSynchronization
|
|||||||
// Determine the weapon team based on the query result
|
// Determine the weapon team based on the query result
|
||||||
CsTeam weaponTeam = (int)row.weapon_team switch
|
CsTeam weaponTeam = (int)row.weapon_team switch
|
||||||
{
|
{
|
||||||
0 => CsTeam.None,
|
|
||||||
2 => CsTeam.Terrorist,
|
2 => CsTeam.Terrorist,
|
||||||
_ => CsTeam.CounterTerrorist
|
3 => CsTeam.CounterTerrorist,
|
||||||
|
_ => CsTeam.None,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Get or create entries for the player’s slot
|
// Get or create entries for the player’s slot
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 88 KiB |
|
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 93 KiB |
|
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 73 KiB |
|
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 84 KiB |
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 85 KiB |
BIN
website/img/skins/weapon_ak47-113.png
Normal file
|
After Width: | Height: | Size: 94 KiB |
|
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 102 KiB |
|
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 87 KiB |
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
BIN
website/img/skins/weapon_ak47-1179.png
Normal file
|
After Width: | Height: | Size: 79 KiB |
|
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 95 KiB |
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
|
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 81 KiB |
BIN
website/img/skins/weapon_ak47-142.png
Normal file
|
After Width: | Height: | Size: 92 KiB |
|
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 77 KiB |
|
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 84 KiB |
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 79 KiB |
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 92 KiB |
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 83 KiB |
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 79 KiB |
|
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 96 KiB After Width: | Height: | Size: 96 KiB |
|
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB |
|
Before Width: | Height: | Size: 86 KiB After Width: | Height: | Size: 87 KiB |
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
|
Before Width: | Height: | Size: 87 KiB After Width: | Height: | Size: 87 KiB |
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 90 KiB |
|
Before Width: | Height: | Size: 98 KiB After Width: | Height: | Size: 98 KiB |
|
Before Width: | Height: | Size: 77 KiB After Width: | Height: | Size: 78 KiB |
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 80 KiB |
|
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 79 KiB |
|
Before Width: | Height: | Size: 80 KiB After Width: | Height: | Size: 80 KiB |
|
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 90 KiB |
BIN
website/img/skins/weapon_ak47-912.png
Normal file
|
After Width: | Height: | Size: 80 KiB |
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 86 KiB |
|
Before Width: | Height: | Size: 89 KiB After Width: | Height: | Size: 89 KiB |
|
Before Width: | Height: | Size: 81 KiB After Width: | Height: | Size: 81 KiB |
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 117 KiB |
|
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 108 KiB |
|
Before Width: | Height: | Size: 105 KiB After Width: | Height: | Size: 107 KiB |
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 117 KiB |
|
Before Width: | Height: | Size: 110 KiB After Width: | Height: | Size: 112 KiB |
BIN
website/img/skins/weapon_aug-121.png
Normal file
|
After Width: | Height: | Size: 104 KiB |
|
Before Width: | Height: | Size: 122 KiB After Width: | Height: | Size: 123 KiB |
BIN
website/img/skins/weapon_aug-134.png
Normal file
|
After Width: | Height: | Size: 127 KiB |
BIN
website/img/skins/weapon_aug-173.png
Normal file
|
After Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 104 KiB |
|
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 105 KiB |
|
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 109 KiB |
|
Before Width: | Height: | Size: 101 KiB After Width: | Height: | Size: 103 KiB |
|
Before Width: | Height: | Size: 101 KiB After Width: | Height: | Size: 103 KiB |
|
Before Width: | Height: | Size: 112 KiB After Width: | Height: | Size: 113 KiB |
|
Before Width: | Height: | Size: 121 KiB After Width: | Height: | Size: 121 KiB |
|
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 105 KiB After Width: | Height: | Size: 107 KiB |
|
Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 111 KiB |
|
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 119 KiB |
|
Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 124 KiB |
|
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 115 KiB |
|
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 115 KiB |
|
Before Width: | Height: | Size: 121 KiB After Width: | Height: | Size: 122 KiB |
|
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 115 KiB |
|
Before Width: | Height: | Size: 117 KiB After Width: | Height: | Size: 119 KiB |
|
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 109 KiB |
|
Before Width: | Height: | Size: 105 KiB After Width: | Height: | Size: 106 KiB |
|
Before Width: | Height: | Size: 117 KiB After Width: | Height: | Size: 118 KiB |
|
Before Width: | Height: | Size: 111 KiB After Width: | Height: | Size: 112 KiB |
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 110 KiB After Width: | Height: | Size: 111 KiB |
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 117 KiB |
|
Before Width: | Height: | Size: 107 KiB After Width: | Height: | Size: 108 KiB |
|
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 119 KiB After Width: | Height: | Size: 120 KiB |
|
Before Width: | Height: | Size: 116 KiB After Width: | Height: | Size: 118 KiB |
|
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 114 KiB |
|
Before Width: | Height: | Size: 110 KiB After Width: | Height: | Size: 111 KiB |
|
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 67 KiB |
|
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 74 KiB |
|
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 74 KiB |
|
Before Width: | Height: | Size: 75 KiB After Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 71 KiB |
BIN
website/img/skins/weapon_awp-137.png
Normal file
|
After Width: | Height: | Size: 80 KiB |
BIN
website/img/skins/weapon_awp-163.png
Normal file
|
After Width: | Height: | Size: 75 KiB |