promotional bannermobile promotional banner

Heavy Recoil

Adds recoil knockback to TaCZ firearms, can be customized by script.
  • This mod adds a new server-side Lua method

api:kickbackPlayer(player, reverse, power)

  • and a new global variable

HEAVY_RECOIL_INSTALLED

  • You can use the following snippet to knock players back in a specified direction when firing:

if (HEAVY_RECOIL_INSTALLED) then

    api:kickbackPlayer(api:getShooter(), true, cache.KICKBACK.power)

end

 

  • Parameters:

player - The player instance.

reverse - When true, the knockback direction is backward; when false, it is forward.

power - The knockback strength. A value around 1 is recommended.

The Heavy Recoil Team

HighCrafter tier frameprofile avatar
Owner
HighCrafter tier icon
  • 324
    Followers
  • 9
    Projects
  • 1.4M
    Downloads

More from KoeiView all