CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.21k stars 4.11k forks source link

Vehicle related EOCs #74511

Open Blueflowerss opened 2 months ago

Blueflowerss commented 2 months ago

Is your feature request related to a problem? Please describe.

Had ideas recently regarding vehicle stuff that could lend itself to cool new features in mods (and maybe even basegame). As was suggested by people on devcord, i'm compiling my feature requests here.

Solution you would like.

Implementation of EOC stuff regarding vehicles, among those that immediately come to mind:

And as for effects, keep in mind i really like Mind over Matter mod, these are mostly ideas i had for MoM powers

My mind is blanking out on ideas besides teleportation.

Describe alternatives you have considered.

Live the life without cool vehicle EOCs

Additional context

image vehicle highlighting so you know where you can and can't teleport probably scope creep

Standing-Storm commented 2 months ago

Whether it has a specific part would be useful for MoM purposes, since existing vehicle teleportation requires technological aid.

zachary-kaelan commented 2 months ago

One of the event EOC types is vehicle_moves, which provides the following context variables:

{ "avatar_on_board", bool },
{ "avatar_is_driving", bool },
{ "avatar_remote_control", bool },
{ "is_flying_aircraft", bool },
{ "is_floating_watercraft", bool },
{ "is_on_rails", bool },
{ "is_falling", bool },
{ "is_sinking", bool },
{ "is_skidding", bool },
{ "velocity", int }, // vehicle current velocity, mph * 100
{ "z", int },

That's most of the variables you want, but obviously it can't trigger on stationary vehicles, it can't affect vehicles in any way, and the variables can't be used in other event types.

As far as ideas, EOCs were created from NPC dialogue/effects syntax. Missions to fetch, deliver, repair, refuel, or modify vehicles would be some easy first additions. Also, one of the uses for EOCs is to JSONify furniture and item actions, so a number of vehicle part actions could be JSONified alongside them.

github-actions[bot] commented 1 month ago

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.