[B2] Player Trails (1.5) 
24 comments [CS2D] Player Trails (Lua)
By BCG2000
Description: Real player trails, made possible by the new sprite capabilities of CS2D images.
Version: 1.5 (September 30th, 2016)
Copyright © 2016, BCG2000
[INSTRUCTIONS]
- Just extract the file on your CS2D folder.
- You can change the amount of trails by changing the "B2PT_MaxTrails" variable in the script.
- You can enable/disable the trails by saying "!pt" in the chat (you must be logged in the RCon).
PS: Because of the Lua memory leaks in this game (as of the time I made this script), I did things like setting locals to nil and using timers instead of hooks like "always". Otherwise, the code would be a bit more clean.
[RULES]
You can use this script on your server.
You are allowed to edit the script and/or build on top of it and you can also link it to your own scripts, but if you do so then give me credit.
You are NOT allowed to claim this script as your own.
By BCG2000
Description: Real player trails, made possible by the new sprite capabilities of CS2D images.
Version: 1.5 (September 30th, 2016)
Copyright © 2016, BCG2000
[INSTRUCTIONS]
- Just extract the file on your CS2D folder.
- You can change the amount of trails by changing the "B2PT_MaxTrails" variable in the script.
- You can enable/disable the trails by saying "!pt" in the chat (you must be logged in the RCon).
PS: Because of the Lua memory leaks in this game (as of the time I made this script), I did things like setting locals to nil and using timers instead of hooks like "always". Otherwise, the code would be a bit more clean.
[RULES]



edited 1×, last 10.11.16 03:12:55 am

Comments
24 commentsLog in!
You need to log in to be able to write comments!Log in
@
Baloon: If you look in the code, you will see I optimized it the best I could, and that removed almost all the lag. Unfortunately, players with slow connection speed will still lag and there is nothing I can do about that.

@
Jite: Not every script is useful to everyone, what is useless to you may be useful to someone else.
