Skip to content

Commit 3337de6

Browse files
committed
2 parents b4cb200 + a93c3ff commit 3337de6

1 file changed

Lines changed: 73 additions & 30 deletions

File tree

README.md

Lines changed: 73 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,104 @@
1-
# SharpTimer-Trails
2-
**A plugin that allows the top players to have a custom trail.**
1+
<a name="readme-top"></a>
32

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>
47
<br>
58

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+
1220

1321
<br>
1422

1523
## Information:
1624

1725
### Requirements
1826
- [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+
![image](https://github.com/user-attachments/assets/adaa5452-dab6-4af0-97a6-832453db8e4b)
37+
2038

2139
<br>
2240

2341
## Example Config
2442
```json
2543
{
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+
}
3661
"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
3768
"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
4073
},
4174
"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
4479
},
4580
"3": {
4681
"Name": "Red Trail",
4782
"Color": "255 0 0",
48-
"Width": 3,
49-
"Lifetime": 2
83+
"Width": 1,
84+
"Lifetime": 3
5085
},
5186
"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",
5595
"Width": 1,
56-
"Lifetime": 1
96+
"Lifetime": 3
5797
}
5898
},
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.
59101
"ConfigVersion": 1
60102
}
61-
```
103+
```
104+
<p align="right">(<a href="#readme-top">back to top</a>)</p>

0 commit comments

Comments
 (0)