by StrikerMan780 » Thu Jun 16, 2016 11:11 pm
I actually made clever, and quite clean tracer code a while back, no ACS required. Just A_Warp and some switching of pointers. Works with weapons that have spread. However, a native implementation would be nice, since there's two downsides to my simple implementation: Offsets don't consider floor clipping, nor crouching. It also doesn't adjust if different player classes have different shooting heights. However, if you don't need to worry about that last one, it's fine in most cases.
If anyone wants to know how I did it, let me know and I'll post examples later. (Currently very busy).
I actually made clever, and quite clean tracer code a while back, no ACS required. Just A_Warp and some switching of pointers. Works with weapons that have spread. However, a native implementation would be nice, since there's two downsides to my simple implementation: Offsets don't consider floor clipping, nor crouching. It also doesn't adjust if different player classes have different shooting heights. However, if you don't need to worry about that last one, it's fine in most cases.
If anyone wants to know how I did it, let me know and I'll post examples later. (Currently very busy).