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 with PutWeapon/PutMagazine #1873

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

PabstMirror
Copy link
Collaborator

Very Rough WIP

Seems to be a working disarm system - #7

https://www.youtube.com/watch?v=-OO5oIr1oHQ

For handcuffed people I have to manually "unlock" the animation and reset it.
Obviously this needs much testing, don't want to break captivity.

This just takes weapons, ammo and certian items (clackers, radios).

TODO?:

  • - Probably drop backpack as well DropBag, so people can take the TFR/ACRE radios.
  • - Might make a strip//take everything function.
  • - Also need to make sure there is no item duplication or deletion.
  • - This should remove TFR/ACRE personal radios, need to verify that it doesn't break anything.
  • - Maybe want some kind of animation for the 'caller', maybe some kind of medic animation.

There's some code from #1621

@Tachii
Copy link

Tachii commented Dec 31, 2014

Are you using watches as a container? Why don't u just use _holder = "GroundWeaponHolder" ?

@PabstMirror
Copy link
Collaborator Author

I'm using a WeaponHolderSimulated which is the same as GroundWeaponHolder with physX (not sure if we want the physX).

The watch is because you need to put something into a container or it gets destroyed//recycled by the engine. The dropXXX actions take time, so this shoves the dummy item in immediately after creation and then removes it at the end.

@nicolasbadano
Copy link
Collaborator

Pabst, to make this faster maybe you could only use actions for the actual weapons. The rest of the things in #1621 seem to work without issues (including dropping backpacks).

@PabstMirror
Copy link
Collaborator Author

@esteldunedain

Now moving everything with scripts except for
-Weapons: attachments
-Backpacks: TFR (and probably acre) sets variables on them
-Magazine AGM_magazine_customKey: from vehicleLock which uses magazinesDetail to track uniqueness

Unconsicious people take about a second to drop something, this goes much faster now compared to video.

@nicolasbadano
Copy link
Collaborator

Backpacks: TFR (and probably acre) sets variables on them

Backpacks can be put to the ground with all their content, variables, etc intact by adding a second backpack and removing it inmediately, like in #1621. That will save you some extra time as it's instantaneous and 100% reliable (https://github.com/KoffeinFlummi/AGM/pull/1621/files?diff=unified#diff-6a88a3863a93e5b12cccee0df9d5e0d7R42)

BTW, if you drop the backpack first you don't have to drop most of the magazines manually, as the are usually in the backpack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants