Skip to content

Commit

Permalink
remove gametype system and most of the logic
Browse files Browse the repository at this point in the history
  • Loading branch information
themuffinator committed Sep 14, 2024
1 parent 021a535 commit d52948b
Show file tree
Hide file tree
Showing 20 changed files with 294 additions and 3,008 deletions.
6 changes: 0 additions & 6 deletions src/bots/bot_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,6 @@ static void Item_UpdateState(gentity_t *item) {
}
}

const item_id_t itemID = item->item->id;
if (itemID == IT_FLAG_RED || itemID == IT_FLAG_BLUE) {
item->sv.ent_flags |= SVFL_IS_OBJECTIVE;
// TODO: figure out if the objective is dropped/carried/home...
}

// always need to update these for items, since random item spawning
// could change them at any time...
item->sv.classname = item->classname;
Expand Down
4 changes: 0 additions & 4 deletions src/g_chase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,6 @@ void FollowCycle(gentity_t *ent, int dir) {
gclient_t *cl = ent->client;
gentity_t *follow_ent = nullptr;

// if they are playing a duel game, count as a loss
if (GT(GT_DUEL) && ent->client->sess.team == TEAM_FREE)
ent->client->sess.losses++;

// first set them to spectator
if (cl->sess.spectator_state == SPECTATOR_NOT && !cl->eliminated)
SetTeam(ent, TEAM_SPECTATOR, false, false, false);
Expand Down
Loading

0 comments on commit d52948b

Please sign in to comment.