We all know Engineer's custom weapons and so on. But all these methods are laggy, cuz you need to check every 1 pixel before a bullet meet wall.
So i'd like to know, how you DC made that thing?
I wanna do custom bullet, but the one that made by DC is pretty good(in game) when it checking for walls, the one i will make with lua will require to check alot of things but wont work good anyway.
edited 1×, last 16.04.22 08:54:36 am
Imitating CS2D bullet [Solved]
1 
Offline
Mora
cache the movement vector instead of calling sin/cos every iteration (or even better: use a line algorithm like Bresenham)