Recoil Viewer [UPDATE NEW RECOIL]
Video of a client in action hunting a player (Version used in the recording 1.1.0):
I present to you Recoil Viewer, a viewer of recoil for Administrators.
Before starting:
This mod is developed mainly so that administrators can see on their screen the recoil pattern that the players perform. You can see players backtracking while using “spectate” or by using the /recoil PlayerName/SteamID command. This mod can be your great ally with the new first-person viewer that has recently been incorporated into the game.
As an added feature players can also see their own recoil and it is even compatible with the AimTraim plugin.
Features:
- It works in spectator mode, ideal for the first person.
- Supports the simultaneous display of multiple administrators.
- Tracking the pattern as the player shoots.
- Accuracy bar for hits.
- Using Chat and Console Commands (F1).
- Ability to temporarily disable use in spectator mode when using the console command “recoil off”.
- Highly customizable in settings.
- Players can see their own retrospective (if they have the appropriate permission).
- Optimized so that only the information of the displayed players is collected: Shoots, Hits and HeadShots info.
- Recognition of the item in the automatic player’s hand. (If it is compatible it shows the recoil and if not it shows a customizable message in LANG).
- [OPTIONAL] Compatibility with the AimTraim mod. The display will turn on and off automatically when you enter the training zone.
- [OPTIONAL] Compatibility with ZoneManager. In the config you can now put a list of zones where Recoil Viewer will be activated and deactivated automatically.
- [OPTIONAL] Compatibility with Arkan. Adjustable in config. You can now automatically activate the viewer when an Arkan alert for No Recoil is triggered.
Currently only compatible with the following weapons:
- rifle.ak
- rifle.ak.ice
- rifle.lr300
- smg.mp5
- smg.2
- thompson
- M249
If several users want another weapon to be added I will try to implement it. I will also try to refine the existing patterns if necessary. (You can also send me your corrections.)
Complete Configuration:
A complete configuration so that you can adapt it to your liking.
- Use Spectate true/false.
- Use Training (Mod External: AimTraim).
- Show Shooting Info.
- Clean when reloading weapon.
- Enables or disables automatically in the “spectate”.
- Many panel customizations. Background color, text sizes, colors, position and more!
Permissions and Command:
The permissions that this plugin contains are the following:
Chat Command Admin
- /recoil NamePlayer/SteamID or partial name To start viewing a player.
- /recoil To end the display of a player. (It is the same as clicking the close button)
Chat Command Player
- /recoil Enable or disable the recoil viewer.
Console Command Admin
- recoil NamePlayer/SteamID or partial name To start viewing a player.
- recoil To end the display of a player. (It is the same as clicking the close button)
- recoil off To temporarily disable use in spectator mode. It will reactivate when you use the recoil command again.
Pattern Data:
The data file with the patterns is downloaded separately (within the same price), you can find it in the first version of the plugin and download it from there. Or ask me privately if you can’t find it.
Once downloaded, you must replace the one generated by the plugin itself in the oxide / data folder. If you have any problem with this, open me a private message to help you with it.
Language File:
For the price that this plugin is worth, it also includes a small language file in case you want to translate it into your language or have compatibility with several languages.
Config Example:
{
"Use Spectate": true,
"Use Arkan (Mod External: Arkan)": true,
"Use Training (Mod External: AimTrain)": false,
"Use ZoneManager (Mod External: ZoneManager)": true,
"Active Zones (ZoneID)": [
"11870475",
"1013570",
"69696969",
"50800562"
],
"Show Shooting Info": true,
"Clean when reloading weapon": true,
"Windows Config": {
"Position AnchorMin": "0.810 0.571",
"Position AnchorMax": "0.992 0.895",
"Background Color": "0.0 0.0 0.0 0.75",
"Close Text Color": "1 1 1 1",
"Close Background Color": "0.87 0.0 0.0 0.9"
},
"Text Display": {
"Weapon - AnchorMin": "0.03 0.91",
"Weapon - AnchorMax": "0.5 0.98",
"Weapon - Size": 12,
"Weapon - Color": "0.8 0.8 0.8 1",
"Player Name - AnchorMin": "0.03 0.84",
"Player Name - AnchorMax": "0.6 0.94",
"Player Name - Size": 10,
"Player Name - Color": "1 1 1 0.8",
"No Pattern - Size": 15,
"No Pattern - Color": "1 0 0.38 1"
},
"Info Display": {
"Shoots Counter": {
"Icon URL": "https://i.imgur.com/XhvNi3x.png",
"Icon AnchorMin": "0.03 0.78",
"Icon AnchorMax": "0.08 0.83",
"Text AnchorMin": "0.1 0.865",
"Text AnchorMax": "0.4 0.935",
"Font Size": 12,
"Font Color": "0.8 0.8 0.8 0.7"
},
"Hit Counter": {
"Icon URL": "https://i.imgur.com/XtiT7fO.png",
"Icon AnchorMin": "0.03 0.71",
"Icon AnchorMax": "0.08 0.76",
"Text AnchorMin": "0.1 0.79",
"Text AnchorMax": "0.4 0.86",
"Font Size": 11,
"Font Color": "0.8 0.8 0.8 0.7"
},
"HeadShoot Counter": {
"Icon URL": "https://i.imgur.com/VlMQT8F.png",
"Icon AnchorMin": "0.03 0.64",
"Icon AnchorMax": "0.08 0.69",
"Text AnchorMin": "0.1 0.715",
"Text AnchorMax": "0.4 0.785",
"Font Size": 11,
"Font Color": "0.8 0.8 0.8 0.7"
},
"Accuracy Display": {
"Show Bar": true,
"BG Color 30%": "0.00 0.52 0.29 0.72",
"BG Color 60%": "0.97 0.51 0.14 0.72",
"BG Color 80%": "0.97 0.06 0.20 0.72",
"Font Color": "0.9 0.9 0.9 0.7"
}
},
"Pattern Weapons": {
"Sets the point of the pattern": "•",
"Point Size": 14,
"Point Color": "1 0 0.38 1",
"Point Fire Color": "0.63 0.98 0.63 1.0"
},
"Recoil Player": {
"Sets the point of the recoil": "⦿",
"Point Size": 14,
"Point Color": "1 1 1 1"
}
}
For any questions, suggestions or problems, do not hesitate to contact me at Discord ninco90#6219
Version 1.5.2
- Weapon reload hook has been updated.
Version 1.5.0
-
- 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.
- The pattern of Facepunch modified weapons has been updated. At the same time the file with the old pattern is kept.
Version 1.4.1
- 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.
Version 1.4.0
- 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.
Version 1.3.2
- 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.
Version 1.3.1
- 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.
Version 1.3.0
- 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://lone.design/product/aimtrain/ (Optional).
- Now it is shown info on screen of the shots. (Hits + HeadShot + Number of bullets fired previously displayed.)
- Optimized some lines of code.