A simple mod activating NVG with animation.
Currently only works with MP male/female.
All the working goggle types will be shown in a video.
How to configure attributes
- PedModel – PedHash (like FreemodeMale01, all hashes here)
- OnId – The id of clothing when it is toggled ‘on’. Can be found with any trainer.
- OffId – The id of clothing when it is toggled ‘off’. Can be found with any trainer.
- Effect – Vision effect (Currently only supports these values: NightVision/ThermalVision/None)
- AnimationOn – Animation when player toggles clothing on. Can be find with trainer. E.g Menyoo (Player Options -> Animations -> All Animations)
- AnimationOff – The same as above
More on animations:
Only supports animations with repeating ‘@’ symbol, join the animation group and name with @
Example: for goggles, animation group is ‘anim@mp_helmets@on_foot’, and name ‘goggles_up’ or ‘goggles_down’, (see result in example below)
AnimationOff/On attribute can be left empty
Full example config for the clothing:
{
“PedModel”: “FreemodeMale01”,
“OnId”: 116,
“OffId”: 117,
“Effect”: “NightVision”,
“AnimationOn”: “anim@mp_helmets@on_foot@goggles_down”,
“AnimationOff”: “anim@mp_helmets@on_foot@goggles_up”
},
Installation
Place WorkingNvg.dll into “scripts” folder.
You’ll need Script Hook V & Script Hook .NET
After the game loads the script will generate the configuration file (WorkingNvg.ini)
where you can configure keys (ToggleKey/ModifierKey)
Credits:
KassiteR