Recoil Viewer

Recoil Viewer 1.5.3

- Fix for the new September update.
- IMPORTANT: The permission names are now completely lowercase, so you will need to assign it again.
- Removed the Ice AK recoil from the data file as it is no longer necessary.
- Now the plugin will automatically be compatible (in principle) with the custom weapon skins that Facepunch can launch.
Weapon reload hook has been updated.
Leave a debug code enabled and it has been removed now.
The pattern of Facepunch modified weapons has been updated. At the same time the file with the old pattern is kept.
Specifically, it has been updated:
  • rifle.ak
  • rifle.ak.ice
  • rifle.lr300
  • smg.mp5
  • smg.2
  • thompson
The pattern of the M49 does not appear to have changed. The new weapon pattern HMLMG will be added in the future.
  • Like
Reactions: Black Cobra RO
Support is added to the new Ice AK, it is still a kind of new skin, so the recoil is the same as the normal ak. However, this update is necessary to show the pattern.

Important to update the DATA file!
There are no changes in config.
- Added Compatibility with ZoneManager. In the config you can now put a list of zones where Recoil Viewer will be activated and deactivated automatically.
- Added Compatibility with Arkan. Adjustable in config. You can now automatically activate the viewer when an Arkan alert for No Recoil is triggered.
THE CONFIGURATION FILE HAS CHANGED. It is important to save a copy (if you have custom changes) and remove the old file from the server. A line of text is also added to the language, but nothing needs to be changed.

A precision hit bar is incorporated, with 3 customizable color ranges from config: 30%, 60%, 80%

This data is calculated by the bullets fired and the impacts obtained. You can disable this new feature from settings if you want.

Later, I plan to replace the percentage with a more realistic precision based on the pattern and not the hits.
Fixed a bug when using /recoil playername more than once (The previous player would not be deactivated if you did not close manually).

Rewritten all the interface generation code, now much less lines are used.
- IMPORTANT: Configuration file rewritten again. It is important to delete the old config file or save it under a different name. The ImageLibrary plugin is now required.
- Players can use the / recoil permission to turn their own viewer on and off (If they have the RecoilViewer.player permission).
- Added compatibility with AimTrain https://chaoscode.io/resources/aimtrain.101/ (Optional).
- Now it is shown info on screen of the shots. (Hits + HeadShot + Number of bullets fired previously displayed.)
- Optimized some lines of code.
- IMPORTANT: The DATA file has changed, it is necessary to update it manually. The language file has also been updated.
- The button to close the window is now adjustable in the config. (Background color and text color).
- Now you can also use / recoil (without anything else) in Chat to close the viewer.
- Added the F1 Console command: "recoil PlayerName / SteamID", to see a player.
- You can also use "recoil" to deactivate the current player or use "recoil off" to temporarily deactivate it while you speculate. It will be enabled again when using "/ recoil" in chat.
- The code that processes the calculations to display the shots on the screen has been rewritten and reduced.
- The first shot is now also displayed on the screen.
- As the weapon is fired, the pattern changes color (Also adjustable in the config).
- The transition between players in spectator mode has been improved.
- Now if a player has nothing in hand, it is also shown without a pattern.