MantisBT - Zandronum
View Issue Details
0001912Zandronum[All Projects] Suggestionpublic2014-08-10 11:432018-09-30 22:03
Dark-Assassin 
Dusk 
normalminorN/A
closedfixed 
 
3.03.0 
0001912: Rename kickfromgame to forcespec.
As seen from this post:'http://zandronum.com/tracker/view.php?id=918#c10155 [^]'
But for the normal console command, not just the callvote command.
Although this may confuse users who are unaware of the change, I have come up with a simple temporary idea and doesn't involve duplicating entries in the source or have an alias on that level.

Add an alias to zandronum.pk3/keyconf.txt
Alias kickfromgame "forcespec;echo "This command is deprecated. Please use the forcespec command instead."
Just an example.
No tags attached.
Issue History
2014-08-10 11:43Dark-AssassinNew Issue
2014-08-10 15:35ZzZomboNote Added: 0010160
2014-08-10 15:53MazterQyoun-aeNote Added: 0010161
2014-08-10 15:53MazterQyoun-aeNote Edited: 0010161bug_revision_view_page.php?bugnote_id=10161#r5504
2014-08-10 15:54Dark-AssassinNote Added: 0010162
2016-02-10 13:14KorshunNote Added: 0014410
2016-02-11 15:14DuskAssigned To => Dusk
2016-02-11 15:14DuskStatusnew => assigned
2016-02-11 15:15DuskNote Added: 0014420
2016-02-11 17:04EmpyreNote Added: 0014422
2016-02-13 13:34cobaltStatusassigned => needs testing
2016-02-13 13:34cobaltTarget Version => 3.0
2016-02-13 13:34cobaltDescription Updatedbug_revision_view_page.php?rev_id=8717#r8717
2016-02-13 13:34cobaltAdditional Information Updatedbug_revision_view_page.php?rev_id=8719#r8719
2016-02-13 13:34cobaltNote Added: 0014428
2016-03-01 21:14Ru5tK1ngNote Added: 0014523
2016-03-01 21:14Ru5tK1ngStatusneeds testing => resolved
2016-03-01 21:14Ru5tK1ngResolutionopen => fixed
2016-03-01 21:14Ru5tK1ngFixed in Version => 3.0
2016-03-01 21:14Ru5tK1ngDescription Updatedbug_revision_view_page.php?rev_id=8791#r8791
2016-03-01 21:14Ru5tK1ngAdditional Information Updatedbug_revision_view_page.php?rev_id=8792#r8792
2018-09-30 22:03Blzut3Statusresolved => closed

Notes
(0010160)
ZzZombo   
2014-08-10 15:35   
You alias doesn't do anything useful, you need to pass arguments to the actual command.
(0010161)
MazterQyoun-ae   
2014-08-10 15:53   
But the suggestion is good. Before K6 told me, I would have never guessed this is force spectating a player, so I thought ST/Zan doesn't even have such command.
EDIT: don't forget about forcespec_idx, too.

(0010162)
Dark-Assassin   
2014-08-10 15:54   
@ZzZombo: The alias was just a quick example. Didn't have to work.
(0014410)
Korshun   
2016-02-10 13:14   
I had been confused that there is no forcespec command until somebody told me that there is this very oddly named "kickfromgame" command. It sounds like an equivalent of "kick", not like a forcespec command.
(0014420)
Dusk   
2016-02-11 15:15   
Might as well... this inconsistency has lived on long enough.
(0014422)
Empyre   
2016-02-11 17:04   
I like the alias idea. That would allow the use of either command, to not confuse those who are used to kickfromgame.
(0014428)
cobalt   
2016-02-13 13:34   
Issue addressed by commit e5e5dd3a6dfd: Renamed kickfromgame and friends to forcespec for consistency, with compatibility aliases, addresses 1912
Committed by Teemu Piippo [Dusk] on Wednesday 31 December 1969 23:59:57

Changes in files:

 docs/zandronum-history.txt | 1 +
 src/callvote.cpp | 8 ++++----
 src/callvote.h | 2 +-
 src/p_acs.cpp | 6 +++---
 src/sv_main.cpp | 37 ++++++++++++++++++++++++++-----------
 src/sv_main.h | 2 +-
 6 files changed, 36 insertions(+), 20 deletions(-)

(0014523)
Ru5tK1ng   
2016-03-01 21:14   
Tried out the command with the latest build. Forcespec and forcespec_idx work as intended.