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

[Ready for Testmerge] Implement Diagonal Movement #11358

Merged
merged 44 commits into from
Jul 12, 2019

Conversation

Couls
Copy link
Contributor

@Couls Couls commented Apr 22, 2019

What does this PR do:
Port over TG diagonal movement and their keybinding system(macros will not work for diagonal movement)
ezgif-5-66705f348b05
ezgif-5-5675aa4e8e93

Changelog:
🆑
add: Diagonal movement
add: Input subsystem(numpad targetting, press numpad 8 multiple times to target eyes and mouth, numpad 6 or 4 to target arms and press them again to target hands and numpad 1 or 3 to target legs and press them again to target feet) taken from tgstation/tgstation#32751
add: change confused status to have you move diagonally randomly in the direction you're headed if not too confused(now you can drunkenly walk down the hall)
add: clients are now children of datums like everything else in BYOND taken from tgstation/tgstation#20394
add: AZERTY and numpad targetting preferences
/:cl:

  • Diagonal movement
  • Port the keybinding system
  • Fix keybinding system
  • Actually take inputs and it'll be ready for review
  • Fix quick equip to belt and bag(it currently says you have no backpack when you do)
  • Implement AZERTY support (numpad targetting toggle is in too)
  • Fix freezing caused by neckgrabs and resting no longer works too[probably mob_movement
  • fix numpad targetting not working

NOW REQUIRES SQL UPDATE

@KasparoVy
Copy link
Contributor

KasparoVy commented Apr 23, 2019

Holy fuck, you can hotkey selecting specific zones on the body now (nvm already mapped to numpad, but 'can map them to something more convenient' heheh. Only caviat is that to aim for hands you have to hit the arm select hotkey twice, or to aim for eyes you gotta hit the head hotkey twice.

This is going to be mega robust, I've been thinking about that for ages! This is the future!

@SkeletalElite
Copy link
Contributor

Holy fuck, you can hotkey selecting specific zones on the body now (nvm already mapped to numpad, but 'can map them to something more convenient' heheh. Only caviat is that to aim for hands you have to hit the arm select hotkey twice, or to aim for eyes you gotta hit the head hotkey twice.

This is going to be mega robust, I've been thinking about that for ages! This is the future!

Yeah its going to be a lot better than what we have now but Id still like to see a radial menu for body part targeting

interface/skin.dmf Outdated Show resolved Hide resolved
winset(src, "[setname]-[REF(key)]", "parent=[setname];name=[key];command=[command]")

if(prefs.toggles & HOTKEYS)
winset(src, null, "mapwindow.map.focus=true input.background-color=#e0e0e0")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't set hotkeys yet.

Copy link
Contributor Author

@Couls Couls Apr 24, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still don't know what to do with this yet honestly might need to scrap the check completely later on and just use a separate system

@Fox-McCloud Fox-McCloud added Do Not Merge This PR must not be merged or closed Feature This PR is a new addition to the game Refactor This PR will clean up the code but have the same ingame outcome Work In Progress This PR is work in progress, and unfinished labels Apr 23, 2019
code/__DEFINES/combat.dm Outdated Show resolved Hide resolved
@AffectedArc07
Copy link
Member

Can we not have the numpad region targeting? This broke my numpad full of emotes before, and a lot of people also have numpads full of emotes, who will also be pissed

@Couls
Copy link
Contributor Author

Couls commented Apr 24, 2019

Once this is working I’ll make it an config option along with AZERTY support

@KasparoVy
Copy link
Contributor

KasparoVy commented Apr 25, 2019

Could always have the numpad emotes require another key be pressed shrug

I have mine all long the standard number row but you need to use shift too so it avoids command conflict.
You can also make use of newlines in the macros to have multiple emotes for different races bound to the same key, I. E. Vox rattle, vulp growl + unathi hiss all on one macro

I think we should value standard keybinds for key priority rather than macros because macros can be comb eniently and dynamically remapped. We shouldn't be afraid of utilizing the numpad for this reason

@Couls
Copy link
Contributor Author

Couls commented Apr 26, 2019

I apologize in advance to the poor maintainer who will have to review this frankenstein abomination of code

@Couls
Copy link
Contributor Author

Couls commented Jun 3, 2019

Conflicts Resolved.

Some gifs of me being destroyed by an ash drake with diagonal movement:

ezgif-5-ca4a764c0f39
ezgif-5-f927c4a179a5

code/game/atoms_movable.dm Outdated Show resolved Hide resolved
code/modules/mob/mob_movement.dm Outdated Show resolved Hide resolved
@variableundefined
Copy link
Contributor

During the test merge it seems this broke movement for some people inconsistently. Problems reported included:

  1. Arrow keys being assigned to chat bar color toggle
  2. A small menu is brought up to the bottom left of the screen and color is changed when hotkey is activated.
  3. People cannot move at all with tab or not.

I cannot replicate it myself locally for now.

@Couls
Copy link
Contributor Author

Couls commented Jul 8, 2019

Holy crap ninjanomnom fixed it

@Couls Couls changed the title [Ready for Review] Implement Diagonal Movement [Ready for Testmerge] Implement Diagonal Movement Jul 8, 2019
Couls added 3 commits July 9, 2019 02:40
Shift middle click locks your direction again
Spacepods now move again(literally one letter fixed this)
Holster hotkey is back!(H to holster and unholster)
Hotkey Toggle button has been removed from the bottom bar and verbs
@@ -1037,7 +1037,7 @@ obj/spacepod/proc/add_equipment(mob/user, var/obj/item/spacepod_equipment/SPE, v
return stop()

/obj/spacepod/relaymove(mob/user, direction)
if(usr != src.pilot)
if(user != src.pilot)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slow clap

@KasparoVy
Copy link
Contributor

God bless

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature This PR is a new addition to the game Refactor This PR will clean up the code but have the same ingame outcome Work In Progress This PR is work in progress, and unfinished
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants