Page 2 of 3

Re: Weapon Pickup

Posted: Thu Sep 04, 2014 5:04 pm
by hi_leute_gll
U can do it with the bullets like Saavik described it. And then highlight the choosen bullet?

Re: Weapon Pickup

Posted: Thu Sep 04, 2014 7:31 pm
by Lady Saavik
it can be even one bullet, not full ammo
it's small, doesn't disturb
and only visible when you hold the weapon in freeze

it can't be more minimalist :D

Re: Weapon Pickup

Posted: Fri Sep 05, 2014 9:24 pm
by deen
From what I can see the client does not have any information about which weapons it has. That's also why rotating the scroll wheel takes so long with high ping. When you push 1-5 you just tell the server to change weapon if you happen to have it. Will not be implemented.

Re: Weapon Pickup

Posted: Fri Sep 05, 2014 9:33 pm
by Lady Saavik
Too bad.

Re: Weapon Pickup

Posted: Sat Sep 06, 2014 9:46 am
by imp
But can you implement that the cursor changes to the selected weapon when you are frozen and use the scroll wheel? It works when you are outside of freeze, so why shouldn't it work when you are frozen?

Re: Weapon Pickup

Posted: Sat Sep 06, 2014 11:14 am
by deen
imp wrote:But can you implement that the cursor changes to the selected weapon when you are frozen and use the scroll wheel? It works when you are outside of freeze, so why shouldn't it work when you are frozen?
It only works because the server tells you that you get that specific weapon. Try it on a high ping server and you will see that it takes long to switch. When you're frozen the server doesn't tell you what weapons you have.

Re: Weapon Pickup

Posted: Sat Sep 06, 2014 11:17 am
by imp
And. When you collect a weapon the server will recieve the message that you got rocket (etc.)..right? Maybe you can add that the cursor changes then?
"Autopickup in freeze"

Re: Weapon Pickup

Posted: Sat Sep 06, 2014 2:04 pm
by deen
I don't think so.

Re: Weapon Pickup

Posted: Sat Sep 06, 2014 6:25 pm
by HMH
Actually the client knows about the weapons it's got:
https://github.com/def-/ddnet/blob/DDRa ... s.cpp#L193
https://github.com/def-/ddnet/blob/DDRa ... rols.h#L25
And I think it's rather easy to implement this :)

Re: Weapon Pickup

Posted: Sat Sep 06, 2014 6:45 pm
by deen
HMH wrote:Actually the client knows about the weapons it's got:
https://github.com/def-/ddnet/blob/DDRa ... s.cpp#L193
https://github.com/def-/ddnet/blob/DDRa ... rols.h#L25
And I think it's rather easy to implement this :)
Nice. So you want to implement it?