https://github.com/voron00/libcod/co...faf678990d12a6
This is similar to grenadeExplosionEffect(). You can play a surface-based bullet hit without precaching all that .fx. The first argument is an origin of the effect and second is the 'normal' vector.
You can use in combination with bullettrace for example:
PHP Code:
trace = bulletTrace(target, maps\mp\gametypes\_utility::vectorScale(anglesToForward(self getPlayerAngles()), 10000), true, self);
if (trace["fraction"] < 1)
bulletHitEffect(trace["position"], trace["normal"]);