Description:
A small CQB addon that simulates rifle collision behaviour and auto lowers a player's rifle when he is up against and facing a wall. Once the player's view is no longer obstructed the player auto raises his weapon to his shoulder. This makes navigating tight enclosed spaces much easier and is ideal for room/building clearing operations. The addon contains custom animations and collision geometry and requires the CBA addon.
Download:
http://www.norrin.org/norrin/ArmA3/addons/rflOcc/rflOcc_v05/norrn_rflOcc_v05.rar (version 0.5 with BiSign and BiKeys)
Included .pbo files:
norrn_rflocc
Requirements:
Extended eventhandlers from ArmA3 CBA, which are available here: http://forums.bistudio.com/showthread.php?147535-CBA-Community-Base-Addons-ARMA-3-Alpha
Terms of Use:
All files included in this addon are the property of the original author. These files are for ArmA3 only and are not to be ported into any game including any variation of the ArmA series without permission.
No files are to be modified or used without permission from norrin. This includes all animations, scripts and configs. This addon is not to be used for commercial or military purposes without the authors' prior consent.
Credits & Thanks:
@PvP - Thanks for the original idea and all your help and suggestions mate.
Known bugs:
Need to add checks for the new stance anims: aadpercmstpsraswrfldup, aadpercmstpsraswrflddown,aadpknlmstpsraswrfldup,aa dpknlmstpsraswrflddown
Other thoughts:
* As far as I can tell this addon causes no report file errors.
* The custom weapon-lowered animations appear to intergrate well with the ArmA3 idle animations.
* This may be of interest to other addon makers - I had to remove the following entries from the class OFP2_ManSkeleton in the default ArmA2 model.cfg:
Releases
Version 0.1 - initial release (060313)
Version 0.2 - fixed the animation stuttering when moving into obstruction and strafing along obstruction etc. (070313)
Version 0.3 - (130313)
* Fixed transition from standing to kneeling while the weapon is lowered.
* Cleaned up the config.cpp.
* Speeded up transitions between weapon raised and weapon lowered.
* Weapons are no longer lowered by trees or bushes
* Added weapon length variable based on weapon class i.e. the shorter the weapon the closer you can get to an object before your weapon is lowered.
* Offset obstruction line-of-sight to be in line with the player's rifle rather than their eye position.
* Greatly reduced the likelihood of glitching.
Version 0.4 - (140313)
* If you now lean out from cover while the weapon is lowered and your rifle clears the obstruction then you will auto-raise your weapon.
See first post for download.
Version 0.5 - (180313)
* Corrected bug that occurred when identifying some obstructing objects, for instance temporary hangers etc will now correctly cause the player to auto lower his rifle.
* Narrow objects, less that 5 cm wide no longer cause you to auto lower your rifle - fixes twitching when strafing along iron fences etc.
* Refined height definitions - fixes bug identified by Byrgesen with small barracks and Hesco barriers etc.