Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disarming Test #136

Merged
merged 25 commits into from
Apr 11, 2015
Merged

Disarming Test #136

merged 25 commits into from
Apr 11, 2015

Conversation

PabstMirror
Copy link
Contributor

A basic disarming system (pulling items/weapons off non-dead players).

WIP - branched from captivity so it shows all those commits as well

E.G.: It's frustrating when your battle buddy is knocked out and a tank rolls up, so you have to execute him to get the AT off his back. Or having no way to use the ACRE backpack. Plus obvious uses with captivity/surrendering/frisking role play stuff.

The key bit is using the action to properly drop things so we don't lose ammo/attachments, and 'unique' items like my vehicle keys (uses magazinesDetail), or backpacks with setVariables on them.

Now if BIS ever adds commands to properly create weapons in crates, all of this should become much easier.

fnc_disarmDropItems.sqf is the meat. It does error checking the whole way through because this feels semi-hacky and I do not want to be duping or losing items.

Right now it's just a list of "disarm" options like "drop secondary", "drop backpack", "strip". I don't know if I want that or just hook into the frisk menu and make people drop items like that.

@PabstMirror
Copy link
Contributor Author

untitled

  • Drag and drop "remote inventory" interface
  • For familiarity, it's designed to look just like the main inventory dialog. Can't match style exactly (probably some engine special sauce we don't have access to).
  • Can only drag from target to ground
  • Dropping most things happens almost instantly. Dropping guns can take ~ 1/2 sec to complete.

Still "WIP", but it's getting closer to something I think we could use.

@nicolasbadano
Copy link
Contributor

Excellent

@nicolasbadano nicolasbadano added this to the 3.2.0 milestone Mar 7, 2015
@PabstMirror PabstMirror added kind/enhancement Release Notes: **IMPROVED:** and removed status/WIP labels Apr 4, 2015
@PabstMirror
Copy link
Contributor Author

Testing in MP/Dedicated hasn't shown any problems so far.

PabstMirror added a commit that referenced this pull request Apr 11, 2015
Unit Disarming/DropGear Merge
@PabstMirror PabstMirror merged commit f5cce94 into master Apr 11, 2015
@PabstMirror PabstMirror deleted the disarmingTest branch April 11, 2015 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Release Notes: **IMPROVED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants