ddnet/src/game/client
MrBlubberBut 32e187f18e
Fix automatic hammer on release when cl_dummy_control is set to 1
Let's say you have this bind:

```bind x +toggle cl_dummy_hammer 1 0```

and you set cl_dummy_control to 1.

When you press the bind i mentioned above, and then release, the dummy will hammer where he is looking (not at you). So, in total, there will be two hammers. One hammer when you press down the button and the dummy hammers towards you, and then another hammer when you release the button and the dummy hammers where he is looking.

This fixes it, and also makes sure it does not conflict with cl_dummy_copy_moves (as if it is enabled and cl_dummy_control is enabled, the dummy will not copy fire, hook, or jump) so I made sure it keeps this functionality as it's pretty cool.

This does not fix any other bugs yet, maybe I will fix those in the future but we'll see. Any bug you may encounter with this change is also probably present in the main branch, such as resetonswitch not working perfectly with dummy_control, but if you do find something different then let me know.
2023-12-26 13:59:06 -05:00
..
components Fix automatic hammer on release when cl_dummy_control is set to 1 2023-12-26 13:59:06 -05:00
prediction Fix readability-make-member-function-const 2023-12-14 23:38:03 +01:00
animstate.cpp Minor refactoring of CAnimState and tee rendering functions 2023-06-10 13:10:26 +02:00
animstate.h Minor refactoring of CAnimState and tee rendering functions 2023-06-10 13:10:26 +02:00
component.cpp Add IConfigManager getter to CGameClient and CComponent 2023-09-24 19:55:20 +02:00
component.h Add IConfigManager getter to CGameClient and CComponent 2023-09-24 19:55:20 +02:00
gameclient.cpp CGameClient::CClientData::Reset: Reset skin info 2023-12-26 19:37:21 +03:00
gameclient.h Fix readability-make-member-function-const 2023-12-14 23:38:03 +01:00
laser_data.cpp Add flag to ddnetlaser for enabling prediction, let server control starttick 2023-09-19 23:22:15 +02:00
laser_data.h Add flag to ddnetlaser for enabling prediction, let server control starttick 2023-09-19 23:22:15 +02:00
lineinput.cpp Fix various lineinput issues/regressions 2023-12-15 17:49:06 +01:00
lineinput.h Fix readability-make-member-function-const 2023-12-14 23:38:03 +01:00
pickup_data.cpp Add net netobjs for projectile and pickup, extend ddnetlaser, remove EntityEx server-side 2023-05-04 23:43:05 +02:00
pickup_data.h Add net netobjs for projectile and pickup, extend ddnetlaser, remove EntityEx server-side 2023-05-04 23:43:05 +02:00
projectile_data.cpp Add net netobjs for projectile and pickup, extend ddnetlaser, remove EntityEx server-side 2023-05-04 23:43:05 +02:00
projectile_data.h Add net netobjs for projectile and pickup, extend ddnetlaser, remove EntityEx server-side 2023-05-04 23:43:05 +02:00
race.cpp Use std::vector and std::deque instead of most std::lists 2023-07-01 15:44:35 +02:00
race.h Organize game-client includes 2022-05-29 21:24:43 +02:00
render.cpp CRenderTools: Mark some methods static and (some) const 2023-12-26 19:37:21 +03:00
render.h CRenderTools: Mark some methods static and (some) const 2023-12-26 19:37:21 +03:00
render_map.cpp Fix readability-make-member-function-const 2023-12-14 23:38:03 +01:00
skin.h Check for valid favorite skin name, add CSkin::IsValidName 2023-12-22 22:13:33 +01:00
ui.cpp Fix various lineinput issues/regressions 2023-12-15 17:49:06 +01:00
ui.h Fix readability-make-member-function-const 2023-12-14 23:38:03 +01:00
ui_listbox.cpp Make listbox scrollbar width and margin adjustable 2023-09-16 13:24:19 +02:00
ui_listbox.h Make listbox scrollbar width and margin adjustable 2023-09-16 13:24:19 +02:00
ui_rect.cpp Add CUIRect::Margin with vec2 argument 2023-10-06 18:08:03 +02:00
ui_rect.h Add CUIRect::Margin with vec2 argument 2023-10-06 18:08:03 +02:00
ui_scrollregion.cpp Small cleanup: simplify member type and computation 2023-11-19 17:36:17 +01:00
ui_scrollregion.h Small cleanup: simplify member type and computation 2023-11-19 17:36:17 +01:00