Jump to content

barry0033

Members
  • Posts

    8
  • Joined

  • Last visited

Community Answers

  1. barry0033's post in How to disable spectating a bot? was marked as the answer   
    Ok, so if anyone is interested in knowing, just add (the lines marked in yellow) this to g_cmds.c:
     
     
    ----------------------------------------------------------------------
    /*
    =================
    Cmd_FollowCycle_f
    =================
    */
    void Cmd_FollowCycle_f( gentity_t *ent, int dir ) {
        int        clientnum;
        int        original;
        qboolean    isBot;
     
    ...
     
            // can't follow bots
            if (!isBot) {
            return;
            }
            
            // can't follow another spectator
            if ( level.clients[ clientnum ].sess.sessionTeam == TEAM_SPECTATOR ) {
                continue;
            }
    --------------------------------------------------------------------------------------------------
×
×
  • Create New...