Recoil Viewer

Recoil Viewer 1.6.0

In this update, I implemented some ideas I had for a new plugin, but I ultimately decided to implement them here instead, taking the opportunity to update and improve this plugin after such a long time.

Important: Delete your current config file and make sure to upload the new data file with the updated patterns. I recommend taking a look at the config once you load the plugin.

Improvements:

- Build fix for the June Update. It also works correctly in production now, so you can update now.
- New Target Check (Belt Viewer) system to analyze which items the player (being looked at by the spectating player) has in their belt.
- If the player with RecoilViewer enabled disconnects, a message is now shown informing you about it.
- Added new chat command **/rc** to open the recoil view for the nearest player. (Uses the recoilviewer.admin permission)
- It now shows the SteamID of the player being spectated. A config option has been added to enable/disable this.
- It now shows whether the player has Premium status in Rust.
- Added a button in the interface to TP to the player. A config option has been added to enable/disable this. It also requires a specific permission (recoilviewer.tp).
- Added an EXIT button to leave spectator mode (respawns the player).
- Added an icon for the weapon/item the player is currently holding.
- Added information about whether the player is standing or crouching while shooting.
- Recoil patterns reviewed/updated, make sure to upload the new data file with the updated patterns.
- Added recoil: HMLMG.
- Added recoil: Minigun.
- Added recoil: Handmade SMG.
- Fixed spectator mode.
- Reviewed Carbon compatibility.
- ImageLibrary is no longer used. The icons now come directly from the game itself, improving loading and rendering speed.
- 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.