Skip to content

Commit

Permalink
Add PD Map Type
Browse files Browse the repository at this point in the history
  • Loading branch information
caxanga334 committed Oct 29, 2022
1 parent cce83b4 commit f430a48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions utils/RCBot2_meta/bot_mods.h
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,7 @@ typedef enum
TF_MAP_MVM,
TF_MAP_RD,
TF_MAP_BUMPERCARS,
TF_MAP_PD, // Player Destruction
TF_MAP_MAX
}eTFMapType;

Expand Down
2 changes: 2 additions & 0 deletions utils/RCBot2_meta/bot_tf2_mod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ void CTeamFortress2Mod :: mapInit ()
m_MapType = TF_MAP_MVM; // mann vs machine
else if ( strncmp(szmapname,"rd_",3) == 0 )
m_MapType = TF_MAP_RD; // robot destruction
else if ( strncmp(szmapname,"pd_",3) == 0 )
m_MapType = TF_MAP_PD; // player destruction
else
m_MapType = TF_MAP_DM;

Expand Down

0 comments on commit f430a48

Please sign in to comment.