Raptor007 / aq2-tng

Action Quake 2: The Next Generation. Raptor007's sandbox for testing changes. When verified stable, this code is pushed to the official aq2-tng repo:
https://github.com/aq2-tng/aq2-tng/tree/bots
4 stars 2 forks source link

Ignoring #59

Closed dynamic0 closed 7 years ago

dynamic0 commented 7 years ago

When Player1 ignores Player2, Player1 should not see Player2's name changing messages nor hear his radiosounds. I also think that the notify that 'Player ignores you' is redundant.

Raptor007 commented 7 years ago

For name changes, this broadcast will have to be changed to a loop over the list of possible message recipients: https://github.com/Raptor007/aq2-tng/blob/12e0a2d09b406133804aadc9c942be16e74db2d7/source/p_client.c#L2535

That means I could also prevent live players from seeing dead player name changes if deadtalk is turned off.

Radio should be easy, just need to add if( ! IsInIgnoreList(ent,from) ) here: https://github.com/Raptor007/aq2-tng/blob/12e0a2d09b406133804aadc9c942be16e74db2d7/source/a_radio.c#L242

I think it should let you know when someone ignores you, as long as you aren't already ignoring them.

Raptor007 commented 7 years ago

I think this should do the trick: https://github.com/Raptor007/aq2-tng/commit/92c419178e95ee67cd1412c6e601a7a9694abf56

Raptor007 commented 7 years ago

The fix has been pushed upstream. Reopen the issue if you find any problems with it.