Browse Source

Add compatibility with dmq2 sctf maps.

dmc
Night Owl 7 years ago
parent
commit
774e537a50
  1. 9
      dlls/3wave/threewave_gamerules.cpp
  2. 25
      dlls/subs.cpp

9
dlls/3wave/threewave_gamerules.cpp

@ -2096,6 +2096,7 @@ class CItemFlagTeam1 : public CItemFlag @@ -2096,6 +2096,7 @@ class CItemFlagTeam1 : public CItemFlag
{
void Spawn( void )
{
pev->classname = MAKE_STRING( "item_flag_team1" );
pev->team = RED;
CItemFlag::Spawn( );
}
@ -2105,14 +2106,16 @@ class CItemFlagTeam2 : public CItemFlag @@ -2105,14 +2106,16 @@ class CItemFlagTeam2 : public CItemFlag
{
void Spawn( void )
{
pev->classname = MAKE_STRING( "item_flag_team2" );
pev->team = BLUE;
CItemFlag::Spawn( );
}
};
LINK_ENTITY_TO_CLASS( item_flag_team1, CItemFlagTeam1 );
LINK_ENTITY_TO_CLASS( item_flag_team2, CItemFlagTeam2 );
LINK_ENTITY_TO_CLASS( item_flag_team1, CItemFlagTeam1 )
LINK_ENTITY_TO_CLASS( ctf_redflag, CItemFlagTeam1 )
LINK_ENTITY_TO_CLASS( item_flag_team2, CItemFlagTeam2 )
LINK_ENTITY_TO_CLASS( ctf_blueflag, CItemFlagTeam2 )
void CCarriedFlag ::Spawn()
{

25
dlls/subs.cpp

@ -67,8 +67,29 @@ private: @@ -67,8 +67,29 @@ private:
LINK_ENTITY_TO_CLASS( info_player_deathmatch, CBaseDMStart )
LINK_ENTITY_TO_CLASS( info_player_start, CPointEntity )
LINK_ENTITY_TO_CLASS( info_landmark, CPointEntity )
LINK_ENTITY_TO_CLASS( info_player_team1, CPointEntity )
LINK_ENTITY_TO_CLASS( info_player_team2, CPointEntity )
class CCTFRedSpawnPoint : public CPointEntity
{
public:
void Spawn()
{
pev->classname = MAKE_STRING( "info_player_team1" );
}
};
LINK_ENTITY_TO_CLASS( info_player_team1, CCTFRedSpawnPoint )
LINK_ENTITY_TO_CLASS( ctf_redspawn, CCTFRedSpawnPoint )
class CCTFBlueSpawnPoint : public CPointEntity
{
public:
void Spawn()
{
pev->classname = MAKE_STRING( "info_player_team2" );
}
};
LINK_ENTITY_TO_CLASS( info_player_team2, CCTFBlueSpawnPoint )
LINK_ENTITY_TO_CLASS( ctf_bluespawn, CCTFBlueSpawnPoint )
void CBaseDMStart::KeyValue( KeyValueData *pkvd )
{

Loading…
Cancel
Save