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

Grapplers pulling out of a 5 point harness #22764

Closed
Xpyder opened this issue Jan 15, 2018 · 3 comments · Fixed by #57351
Closed

Grapplers pulling out of a 5 point harness #22764

Xpyder opened this issue Jan 15, 2018 · 3 comments · Fixed by #57351
Labels
<Bug> This needs to be fixed <Enhancement / Feature> New features, or enhancements on existing Game: Mechanics Change Code that changes how major features work Monsters Monsters both friendly and unfriendly.

Comments

@Xpyder
Copy link
Contributor

Xpyder commented Jan 15, 2018

Game version: 0.C-25577

Operating system: Windows 7

Tiles or curses: Tiles

Mods active:
Dark Days ahead
filthy clothing
disable npc needs
simplified nutrition
makeshift items
more survival tools
alternative map key
folding parts pack
vehicle additions pack
tanks and other verhicles

Expected behavior

Grappler zombie grabbing me at 40mph in 5-point harness should either have it's arms dislocated (take damage), or be dragged along with me. Either way I should stay in the seat.

Actual behavior

Magically pulls me out of the vehicle while taking no damage

Steps to reproduce the behavior

On Powerbike (design like motorcycle, but with car parts, including full seat, 5-point harness, and v4 engine)
At 40mph
Pass grappler zombie
Die

@Night-Pryanik Night-Pryanik added <Enhancement / Feature> New features, or enhancements on existing Game: Mechanics Change Code that changes how major features work Monsters Monsters both friendly and unfriendly. labels Jan 17, 2018
@stale
Copy link

stale bot commented Aug 21, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not 'bump' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.

@stale stale bot added the stale Closed for lack of activity, but still valid. label Aug 21, 2019
@stale
Copy link

stale bot commented Sep 20, 2019

This issue has been automatically closed due to lack of activity. This does not mean that we do not value the issue. Feel free to request that it be re-opened if you are going to actively work on it

@Xpyder
Copy link
Contributor Author

Xpyder commented Oct 28, 2020

TL:DR - I need help figuring how to get a list/collection of vehicle_part at a particular grid position (from a tripoint location)

this just happened to me 3 times in an hour so I put some work into trying to figure out how to resolve it.

While ideally it would drag the zombie along with you, I'm not sure how to do this so I'm currently trying to figure out to have wearing a seatbelt block it (with a possible overload for pull strength and different resistances offered by seatbelt vs 5-point)

I've been looking into modifying the monster abilities (ids and files below). It seems like monsters, characters, players don't have a "Seatbelt" flag, we have to derive it by checking the vehicle parts on their tile.

using RANGED_PULL as an example I can figure out how to get the pull target's position
tripoint position = target->pos()

and I can figure out if a part has the seatbelt flag

vehicle_part part == something
bool part.has_flag(VPFLAG_SEATBELT)

But I can't figure out how to get a list of parts on a tripoint grid position.
I can get a list of Vehicles on a grid position (VehicleList vehicles = get_vehicles(position,position)) but as near as I can tell that would check ALL the parts in those vehicles, not just the tile the player is on.

Help figuring out the right functions (or how to derive the information manually) would be appreciated

monster abilities I found on grapplers:
BIO_OP_TAKEDOWN
\src\monattack.cpp
\src\monattack.h

RANGED_PULL
\doc\JSON_FLAGS.md
\src\monattack.cpp
\src\monattack.h

GRAB_DRAG
\src\monattack.cpp
\src\monattack.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bug> This needs to be fixed <Enhancement / Feature> New features, or enhancements on existing Game: Mechanics Change Code that changes how major features work Monsters Monsters both friendly and unfriendly.
Projects
None yet
2 participants