iamgreaser / iceball

Open-source rewrite of the VOXLAP version of Ace of Spades.
http://iceball.build
GNU General Public License v3.0
113 stars 32 forks source link

Added the action key. #213

Closed vuolen closed 9 years ago

vuolen commented 9 years ago

I'm imagining using the action key to maybe enter vehicles, open doors, push buttons, pull levers etc. Since there was an empty bit in the input byte, I decided to put it there for simplicity's sake. Maybe some actions don't need to be sent so often but I thought it would be overkill to make a new packet just for this.

rakiru commented 9 years ago

I don't think "action"/"use" really needs to be sent over the network. Anything that wanted to use this could be done client-side and a new interact packet sent with information on what was interacted with or something. It also seems extra useless since the server doesn't necessarily know exactly where you're looking when you click the button (I believe) and there is no lag compensation stuff in place either, meaning pressing "action" on moving entities would fail a lot if done server-side.