|
1 | | -# SharpTimer-Trails |
2 | | -**A plugin that allows the top players to have a custom trail.** |
| 1 | +<a name="readme-top"></a> |
3 | 2 |
|
| 3 | +<div align="center"> |
| 4 | +<h1 align="center">SharpTimer-Trails</h1> |
| 5 | +A plugin that allows the top players (by points) to have a custom trail. |
| 6 | +</div> |
4 | 7 | <br> |
5 | 8 |
|
6 | | -<details> |
7 | | - <summary>Showcase</summary> |
8 | | - <img src="https://github.com/user-attachments/assets/1135a673-e19f-4a00-9edc-f4bfc760c45f" width="250"> <br> |
9 | | - <img src="https://github.com/user-attachments/assets/af7406b0-3911-489c-91e1-3dde79002790" width="300"> <br> |
10 | | - <img src="https://github.com/user-attachments/assets/7dddc6cc-a0aa-4946-9c49-c5bf6b48ceb1" width="200"> <br> |
11 | | -</details> |
| 9 | +> [!IMPORTANT] |
| 10 | +> Credits for the base plugin go to [exkludera](https://github.com/exkludera)! All I did was integrate it with SharpTimer & fix the teleport issue. |
| 11 | +> |
| 12 | +<br> |
| 13 | +
|
| 14 | +## Showcase |
| 15 | + |
| 16 | +<img src="https://github.com/user-attachments/assets/1135a673-e19f-4a00-9edc-f4bfc760c45f" width="250"> |
| 17 | +<img src="https://github.com/user-attachments/assets/af7406b0-3911-489c-91e1-3dde79002790" width="300"> |
| 18 | +<img src="https://github.com/user-attachments/assets/7dddc6cc-a0aa-4946-9c49-c5bf6b48ceb1" width="200"> |
| 19 | + |
12 | 20 |
|
13 | 21 | <br> |
14 | 22 |
|
15 | 23 | ## Information: |
16 | 24 |
|
17 | 25 | ### Requirements |
18 | 26 | - [CounterStrikeSharp](https://github.com/roflmuffin/CounterStrikeSharp) |
19 | | -- [Cruze03/Clientprefs](https://github.com/Cruze03/Clientprefs) |
| 27 | +- [SharpTimer](https://github.com/Letaryat/poor-sharptimer) |
| 28 | + |
| 29 | +### Roadmap |
| 30 | +- [ ] Add configurable trail for replay bot |
| 31 | +- [ ] Fix sprites |
| 32 | + |
| 33 | +### Particle Trail Usage |
| 34 | +If you want to know which particles you can use for trails, download [Source 2 Viewer](https://github.com/ValveResourceFormat/ValveResourceFormat). |
| 35 | +This will allow you view the contents of `pak01_dir.vpk` which has all of the particle files. Not all of them will work, and some are extrememly resource heavy. |
| 36 | + |
| 37 | + |
20 | 38 |
|
21 | 39 | <br> |
22 | 40 |
|
23 | 41 | ## Example Config |
24 | 42 | ```json |
25 | 43 | { |
26 | | - "Host": "localhost", |
27 | | - "Database": "cs2_db", |
28 | | - "Username": "admin", |
29 | | - "Password": "pw", |
30 | | - "Port": 3306, |
31 | | - "Sslmode": "none", |
32 | | - "Table-Prefix": "", |
33 | | - "TopCount": 5, |
34 | | - "Permission": "@css/root", |
35 | | - "TicksForUpdate": 1, |
| 44 | + "TopCount": 5, // The top 5 players with the most points will get a trail. |
| 45 | + "Permission": "@css/root", // Any player with this perm will get the trail set in Trail 0. |
| 46 | + If you don't want this, just leave it blank. |
| 47 | + "TicksForUpdate": 1, // How often the trail is updated. The higher the number the less smooth the trail will look. |
| 48 | + "TeleportThreshold": 100, // If a user is teleported beyond this many units in a tick the trail won't show. |
| 49 | + This makes it so that there isn't a long straight line between teleports/respawns. |
| 50 | + "DatabaseRefreshInterval": 300, // How often the plugin fetches the list of top players from the database. |
| 51 | + "DatabaseType": 1, // 1 = MySQL, 2 = SQLite, 3 = PostgreSQL |
| 52 | + "DatabaseSettings": { |
| 53 | + "Host": "localhost", |
| 54 | + "Database": "cs2_db", |
| 55 | + "Username": "admin", |
| 56 | + "Password": "pw", |
| 57 | + "Port": 3306, |
| 58 | + "Sslmode": "none", |
| 59 | + "Table-Prefix": "", |
| 60 | + } |
36 | 61 | "Trails": { |
| 62 | + "0": { |
| 63 | + "Name": "Fire Trail", // The "Name" field isn't really necessary, you can omit it if you like. |
| 64 | + I left it in so you can easily identify that "Color: 255 165 0" is Orange for example. |
| 65 | + "File": "particles/explosions_fx/molotov_child_flame02a.vpcf" |
| 66 | + "Width": 1, |
| 67 | + "Lifetime": 3 |
37 | 68 | "1": { |
38 | | - "Name": "Rainbow Trail", |
39 | | - "Color": "rainbow" |
| 69 | + "Name": "Glowing Sparks Trail", |
| 70 | + "File": "particles/ambient_fx/ambient_sparks_glow.vpcf" |
| 71 | + "Width": 1, |
| 72 | + "Lifetime": 3 |
40 | 73 | }, |
41 | 74 | "2": { |
42 | | - "Name": "Particle Trail", |
43 | | - "File": "particles/ambient_fx/ambient_sparks_glow.vpcf" |
| 75 | + "Name": "Rainbow Trail", |
| 76 | + "Color": "rainbow", |
| 77 | + "Width": 1, |
| 78 | + "Lifetime": 3 |
44 | 79 | }, |
45 | 80 | "3": { |
46 | 81 | "Name": "Red Trail", |
47 | 82 | "Color": "255 0 0", |
48 | | - "Width": 3, |
49 | | - "Lifetime": 2 |
| 83 | + "Width": 1, |
| 84 | + "Lifetime": 3 |
50 | 85 | }, |
51 | 86 | "4": { |
52 | | - "Name": "Example Settings", |
53 | | - "File": "materials/sprites/laserbeam.vtex", |
54 | | - "Color": "255 255 255", |
| 87 | + "Name": "Green Trail", |
| 88 | + "Color": "0 255 0", |
| 89 | + "Width": 1, |
| 90 | + "Lifetime": 3 |
| 91 | + }, |
| 92 | + "5": { |
| 93 | + "Name": "Blue Trail", |
| 94 | + "Color": "0 0 255", |
55 | 95 | "Width": 1, |
56 | | - "Lifetime": 1 |
| 96 | + "Lifetime": 3 |
57 | 97 | } |
58 | 98 | }, |
| 99 | + "EnableDebug": false, // Set this to true if you find you're having issues with the trail being created when teleporting. |
| 100 | + It will give you insight into how you might want to adjust your TeleportThreshold value, as it shows teleport distances. |
59 | 101 | "ConfigVersion": 1 |
60 | 102 | } |
61 | | -``` |
| 103 | +``` |
| 104 | +<p align="right">(<a href="#readme-top">back to top</a>)</p> |
0 commit comments