About This File
Installing
- Put the files you downloaded in their respective places
- Add require('combathelmets') to client_packages/index.js
- All done
Using
You can toggle visor/goggles by pressing F10 while on foot.
Adding More Helmets
Even though this is a combat helmet mod, you can add other helmets (such as motorcycle helmets) by editing packages/combathelmets/helmetData.json.
{ // Skin hash (mp_m_freemode_01) "1885233650": { /* Visor/goggles up drawable as key. Visor/goggles down drawable as "closed" property. Animation name as "anim" property. Available names: goggles, visor Optional "type" property for screen FX. Available types: nightvision, thermal Hat/helmet drawables: https://wiki.rage.mp/index.php?title=Male_Hats https://wiki.rage.mp/index.php?title=Female_Hats */ "117": { "closed": 116, "type": "nightvision", "anim": "goggles" }, "119": { "closed": 118, "type": "thermal", "anim": "goggles" }, "124": { "closed": 123, "anim": "visor" }, "126": { "closed": 125, "anim": "visor" } }, // Skin hash (mp_f_freemode_01) "2627665880": { /* Visor/goggles up drawable as key. Visor/goggles down drawable as "closed" property. Animation name as "anim" property. Available names: goggles, visor Optional "type" property for screen FX. Available types: nightvision, thermal Hat/helmet drawables: https://wiki.rage.mp/index.php?title=Male_Hats https://wiki.rage.mp/index.php?title=Female_Hats */ "116": { "closed": 115, "type": "nightvision", "anim": "goggles" }, "118": { "closed": 117, "type": "thermal", "anim": "goggles" }, "123": { "closed": 122, "anim": "visor" }, "125": { "closed": 124, "anim": "visor" } } }
Adding More Vehicles
You can add/remove supported vehicles by editing the vehicle animation dictionary object located in client_packages/combathelmets/index.js line 33. (vehAnimDictName object)
Issues
- The animation won't be synced to other players in 0.3.7 but it should in future versions with improved task sync.
-
FIXED IN v2.0
Visor up/down animation is used for both visors and goggles right now, even though this is a small visual thing it might be fixed in the future. -
FIXED IN v2.0
Players are not able to toggle visor/goggle state in vehicles right now, might change in the future. This would probably be most useful for bikes. - Available on GitHub: https://github.com/root-cause/ragemp-combat-helmets
What's New in Version 2.0.0 See changelog
Released
- IMPORTANT: helmetData.json entries now need "anim" property that specifies what kind of helmet the entry is. This isn't backwards compatible so if you made changes to v1.0 helmetData, update your file.
- Night vision/thermal vision helmets will now use the goggle animation instead of the visor animation.
- Players can toggle visor in certain vehicles. (All motorcycles & quad bikes)