That isn't really a satisfying answer but anyway.
I answer you the last question, but please don't ping me anymore. I have better things to do to help random ppl in the internet explaining everything step by step:
Just look how ddnet does it:
https://github.com/ddnet/ddnet-maps
is there a command to make dummy not move while he holds a button? like so I can hold right, then press button and dummy still holding right but doesnt move
17:02
idk how to explain
17:03
like if you turn on cl_dummy_hammer when your dummy holds right he wont move and when you turn it off he goes right
6721
like if you turn on cl_dummy_hammer when your dummy holds right he wont move and when you turn it off he goes right