~swag/armagetronad/0.2.9-sty+ct+ap-fork

« back to all changes in this revision

Viewing changes to src/engine/eVoter.cpp

  • Committer: SwagTron
  • Date: 2019-03-24 05:43:34 UTC
  • Revision ID: swagtron-20190324054334-dhst2s4vcdpuehhd
Allowed show_position to be used made it more accurate. Was kind of odd the show_position definition wasnt also if debug, so the command was in the game just didnt do anything. 
Added /info to get general information about players. Stuff /players and /colors wouldnt show. Displays: Colored Name, Position, Direction, Used Rubber out of max, Speed, Spectating / Playing, Chatting, Sometimes Alive / Dead
Usage: /info - Returns own information
       /info playername - Returns that players name. (or more depending if the search word is found in more than one player) 
Fixed the /colors command a bit, also moved the function to a proper spot and made the output editable (added player_colors_text)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1957
1957
            : uMenuItemAction( m, tOutput(""),tOutput("$kick_player_help" ) )
1958
1958
    {
1959
1959
        this->name_.Clear();
1960
 
        this->name_.SetTemplateParameter(1, p->GetColoredName() );
 
1960
        this->name_.SetTemplateParameter(1, p->GetName() );
1961
1961
        this->name_ << "$kick_player_text";
1962
1962
        player_ = p;
1963
1963
    }