g_KnivesMap = new()
44 | {
45 | { 42, "weapon_knife" },
46 | { 59, "weapon_knife" },
47 | { 500, "weapon_bayonet" },
48 | { 503, "weapon_knife_css" },
49 | { 505, "weapon_knife_flip" },
50 | { 506, "weapon_knife_gut" },
51 | { 507, "weapon_knife_karambit" },
52 | { 508, "weapon_knife_m9_bayonet" },
53 | { 509, "weapon_knife_tactical" },
54 | { 512, "weapon_knife_falchion" },
55 | { 514, "weapon_knife_survival_bowie" },
56 | { 515, "weapon_knife_butterfly" },
57 | { 516, "weapon_knife_push" },
58 | { 517, "weapon_knife_cord" },
59 | { 518, "weapon_knife_canis" },
60 | { 519, "weapon_knife_ursus" },
61 | { 520, "weapon_knife_gypsy_jackknife" },
62 | { 521, "weapon_knife_outdoor" },
63 | { 522, "weapon_knife_stiletto" },
64 | { 523, "weapon_knife_widowmaker" },
65 | { 525, "weapon_knife_skeleton" },
66 | { 526, "weapon_knife_kukri" }
67 | };
68 | }
--------------------------------------------------------------------------------
/CSSKin/Models/WeaponInfo.cs:
--------------------------------------------------------------------------------
1 | using MongoDB.Bson;
2 | using MongoDB.Bson.Serialization.Attributes;
3 |
4 | namespace CSSKin.Models;
5 |
6 | public class WeaponInfo
7 | {
8 | [BsonId]
9 | public long Id { get; set; }
10 | public int DefIndex { get; set; }
11 | public int Paint { get; set; }
12 | public int Seed { get; set; }
13 | public double Wear { get; set; }
14 | public bool IsKnife { get; set; }
15 | public string steamid { get; set; }
16 | }
--------------------------------------------------------------------------------
/CSSKin/SkinBridge/addons/SkinBridge/SkinBridge.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Dyshay/CS2Skin/9c793a246fdb7ef659c85c5003b641af577e0df1/CSSKin/SkinBridge/addons/SkinBridge/SkinBridge.so
--------------------------------------------------------------------------------
/CSSKin/SkinBridge/addons/metamod/SkinBridge.vdf:
--------------------------------------------------------------------------------
1 | "Metamod Plugin"
2 | {
3 | "alias" "SkinBridge"
4 | "file" "addons/SkinBridge/SkinBridge"
5 | }
6 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # CS2 Skin
2 |
3 | CS2 Skin: A simple plugin for effortless weapon skin customization in Counter-Strike 2
4 | # Features
5 |
6 | - Weapons
7 | - Knife
8 |
9 | ### Requirements
10 |
11 | - [Metamod:Source](https://www.sourcemm.net/downloads.php/?branch=master) (build 1219 or higher)
12 | - [CounterStrikeSharp](https://github.com/roflmuffin/CounterStrikeSharp/releases/latest) (1.0.153)
13 | - [MongoDB](https://www.mongodb.com/) or [MySql]()
14 | - [SkinBridge](https://github.com/Dyshay/CS2Skin/tree/master/CSSKin/SkinBridge/addons)
15 |
16 | ### Instructions
17 |
18 | - In **`addons/counterstrikesharp/configs/core.json`** set **FollowCS2ServerGuidelines** to **`false`**
19 | - In **`addons`** move SkinBridge
20 |
21 |
22 | ### Config
23 | {
24 | "ConnectionString": "", //"Server=host;Database=dbName;Uid=userName;Pwd=password;Port=3306;" (For MySQL)
25 | "MongoDatabaseName": "", // If you use mongoDB
26 | "MysqlTableName": "", // MySqlTableName
27 | "DatabaseType": "MYSQL", // "MYSQL" or "MONGODB"
28 | "Version": 0 // Don't touch
29 | }
30 |
31 | ### Give Weapon
32 |
33 | - You can use console command : css_skin {defIndex} {paintId} {seed} {wear}
34 |
--------------------------------------------------------------------------------