ACE3/docs/wiki/feature
Will/KJW 33dc7e3dbd
Hit Reactions - Add weapon dropping on arm hit (#9539)
* Create fnc_checkWeaponDrop.sqf

* Update fnc_checkWeaponDrop.sqf

* Create XEH_postInit.sqf

* Update XEH_postInit.sqf

* Update XEH_postInit.sqf

* Update fnc_checkWeaponDrop.sqf

* fix spelling issue

* Update initSettings.sqf

Add weaponDropEnabled setting

* Update stringtable.xml

* Update fnc_checkWeaponDrop.sqf

* Update initSettings.sqf

Forgot a bracket

* Add weapon drop chance setting

* Update XEH_postInit.sqf

* Update CfgEventHandlers.hpp

actually make it run postinit

* Update XEH_PREP.hpp

* Update stringtable.xml

* Update initSettings.sqf

No need, set chance to 0

* Update XEH_postInit.sqf

already comparing against chance, can just set to 0

* Update initSettings.sqf

* Update stringtable.xml

* Update XEH_postInit.sqf

* add arm hit chance

fix weapon thing too

* Update stringtable.xml

* Update addons/hitreactions/functions/fnc_checkWeaponDrop.sqf

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>

* Update addons/hitreactions/functions/fnc_checkWeaponDrop.sqf

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>

* appearance stuff

* Update addons/hitreactions/initSettings.sqf

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>

* Update addons/hitreactions/functions/fnc_checkWeaponDrop.sqf

Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>

* kjw's poor arithmetic

* Update fnc_checkWeaponDrop.sqf

wrong check

* remove systemchat debug

whoops

* Update fnc_checkWeaponDrop.sqf

* Update XEH_postInit.sqf

* Update fnc_checkWeaponDrop.sqf

* Early exit, wait for clear

* Make default setting 0

* Update script_component.hpp

* Update XEH_postInit.sqf

* Update script_component.hpp

* Update XEH_postInit.sqf

* Update XEH_postInit.sqf

* Update addons/hitreactions/functions/fnc_checkWeaponDrop.sqf

* Update XEH_postInit.sqf

Unsure if exitWith in postInit is proper? Seems better than nesting all of that in another scope imo

* Update XEH_preInit.sqf

* Update fnc_checkWeaponDrop.sqf

* Update addons/hitreactions/XEH_preInit.sqf

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>

* Update hitreactions.md

* Update hitreactions.md

* Update addons/hitreactions/functions/fnc_checkWeaponDrop.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/hitreactions/functions/fnc_checkWeaponDrop.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/hitreactions/initSettings.sqf

* Update XEH_postInit.sqf

* Update addons/hitreactions/XEH_postInit.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/hitreactions/XEH_postInit.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/hitreactions/functions/fnc_checkWeaponDrop.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update addons/hitreactions/functions/fnc_checkWeaponDrop.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Update XEH_postInit.sqf

* Update XEH_postInit.sqf

* Update fnc_checkWeaponDrop.sqf

* Spacing fixes

* Update addons/hitreactions/XEH_postInit.sqf

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>

* Take _hitEntity into account if exists

* Update fnc_checkWeaponDrop.sqf

_didHitGun will no longer ever be true

* Minor component cleanup

* Removed gun hits, added double hit detection

* Decouple AI and player probabilities

* Tweaks and fixes

* Update XEH_PREP.hpp

* Add missing param

* Fixed bugged state AI are in after using TakeWeapon

* Fixes and cleanup

* Made API clear, moved undroppable to config entry

* Update fnc_checkWeaponDrop.sqf

* Check for Zeus RC and avoid `setUnitLoadout`

* Expand `addWeapon`'s capabilities

* Cleaned up `addWeapon`

* Removed weapon replacement as it's apparently not necessary

* Defined undefined variable

---------

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
2024-06-06 04:49:15 -07:00
..
advanced-ballistics.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
advanced-fatigue.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
advanced-throwing.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
ai.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
aircraft.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
apl.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
arsenal.md Arsenal - Favorites System (#9307) 2023-08-19 23:56:59 -04:00
atragmx.md Documentation - Fix Wiki AtragMx links (#9780) 2024-02-10 12:52:36 -03:00
attach.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
backpacks.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
ballistics.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
captives.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
chemlights.md Chemlights - Improve chemlights doc to include illumination length (#9187) 2023-05-03 19:00:25 +02:00
common.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
concertina-wire.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
crew-served-weapons.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
dagr.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
disarming.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
disposable.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
dragging.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
dragon.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
explosives.md Explosives - Add Cellphone/Detonator Keybinds (#9687) 2024-02-07 17:47:01 -03:00
fastroping.md Fastroping - Add Auto add FRIES setting (#9319) 2023-08-16 14:16:44 +02:00
fcs.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
finger.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
fire.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
flashlights.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
flashsuppressors.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
fonts.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
fortify.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
frag.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
gforces.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
goggles.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
grenades.md Grenades - Add grenade rolling (#10005) 2024-05-27 02:19:52 -07:00
headless.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
hearing.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
hellfire.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
hitreactions.md Hit Reactions - Add weapon dropping on arm hit (#9539) 2024-06-06 04:49:15 -07:00
hot.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
hunterkiller.md Hunter Killer (Commander Override) (#8496) 2022-09-01 13:38:22 -05:00
huntIR.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
index.md Use function documentation script (#6897) 2023-04-30 23:03:35 +02:00
interact-menu.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
interaction.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
inventory.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
irlight.md Docs - Fix IR Lights docs (#9404) 2023-09-17 21:45:25 +02:00
javelin.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
kestrel4500.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
laser.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
laserpointer.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
logistics-uavbattery.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
logistics-wirecutter.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
magazinerepack.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
main.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
map-gestures.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
map.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
maptools.md Map Tools - Show GPS on Map when equipped with UAV Terminal (#9885) 2024-04-04 08:09:02 -03:00
markers.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
medical_menu.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
medical-ai.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
medical-blood.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
medical-system.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
microdagr.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
missileguidance.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
missionmodules.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
mk6mortar.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
modules.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
movement.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
mx2a.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
nametags.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
nightvision.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
nlaw.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
noidle.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
noradio.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
norearm.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
novehicleclanlogo.md Add No vehicle clan logo component (#9018) 2022-09-01 12:44:38 -05:00
optics.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
optionsmenu.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
overheating.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
overpressure.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
parachute.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
pylons.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
rangecard.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
realisticnames.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
rearm.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
recoil.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
refuel.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
reload.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
reloadlaunchers.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
repair.md Repair - Add wheel patching (#8835) 2023-06-28 13:39:08 +03:00
respawn.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
safemode.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
sandbags.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
scopes.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
sitting.md Sitting - Fix setting and keys in documentation (#9264) 2023-07-16 01:29:47 +03:00
slideshow.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
smallarms.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
spectator.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
spotting-scope.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
switchunits.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
tacticallader.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
tagging.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
testmissions.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
thermals.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
tripod.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
ui.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
vector.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
vehicledamage.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
vehiclelock.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
vehicles.md Vehicles - Document Resume/Set speed control functionality (#9263) 2023-07-16 01:29:03 +03:00
viewdistance.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
viewports.md Documentation - Fix Viewports versions (#8919) 2022-05-22 22:51:36 +02:00
volume.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
weaponselect.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
weather.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
winddeflection.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
yardage450.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00
zeus.md Documentation - Add dependencies page (#8706) 2021-12-02 15:40:46 +01:00