Results 1 to 1 of 1

Thread: bulletHitEffect()

  1. #1
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts

    bulletHitEffect()

    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(targetmaps\mp\gametypes\_utility::vectorScale(anglesToForward(self getPlayerAngles()), 10000), trueself);

    if (
    trace["fraction"] < 1)
        
    bulletHitEffect(trace["position"], trace["normal"]); 
    sudo apt-get rekt

  2. The Following 2 Users Say Thank You to voron00 For This Useful Post:

    kung foo man (24th October 2017),serthy (24th October 2017)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •