--
[ Picked text/plain from multipart/alternative ]
pff... This is one of the easiest things to change. Do you even have
programming experience at other areas?
Are you working on HL2DM-code or SDK-code? (did you got the code via Create
new Mod -> HL2DM?)

In CHL2MP_Player::EntSelectSpawnPoint a spawnpoint is selected. Add
something like:

if ( GetTeamNumber() == TEAM_HUMANS )
    {
        pSpawnpointName = "info_player_human";
    }
    else if ( GetTeamNumber() == TEAM_COMBINE )
    {
        pSpawnpointName = "info_player_combine";
    }

Also, around the top of the same file, you will find something like this:
LINK_ENTITY_TO_CLASS( info_player_combine, CPointEntity );
LINK_ENTITY_TO_CLASS( info_player_rebel, CPointEntity );

That should be enough.
Changing the fgd is easy. Just open the FGD of HL2DM, look for
info_player_combine and add it to your own FGD.

On 8/20/06, Greg Lindquist <[EMAIL PROTECTED]> wrote:
>
> --
> [ Picked text/plain from multipart/alternative ]
> Well, I want to set up the teams to be placable via seperete entities. I
> can
> select between 2 teams, but they both spawn at the same point right now. I
> want to create 2 different entities(one for the good guys, and one for the
> bad guys) to be placed by the level designer. So that I can control
> players
> spawning on the correct side of the map. Think of how counter-strike does
> their spawn points.  Does this clarify?
>
> On 8/20/06, Nathan Voge <[EMAIL PROTECTED]> wrote:
> >
> > This is a multi-part message in MIME format.
> > --
> > [ Picked text/plain from multipart/alternative ]
> >
> > Are you trying to make new code new teams or to make them selectable in
> > the hammer editor entity properties?
> >
> > I think this clarification will help solve the problem.
> >
> >   ----- Original Message -----
> >   From: Aaron Schiff<mailto:[EMAIL PROTECTED]>
> >   To: hlcoders@list.valvesoftware.com<mailto:
> > hlcoders@list.valvesoftware.com>
> >   Sent: Saturday, August 19, 2006 11:49 PM
> >   Subject: Re: [hlcoders] multiple spawn points
> >
> >
> >   --
> >   [ Picked text/plain from multipart/alternative ]
> >   The fgd is completely separate from game code.
> >
> >   --
> >   ts2do
> >   --
> >
> >   _______________________________________________
> >   To unsubscribe, edit your list preferences, or view the list archives,
> > please visit:
> >   http://list.valvesoftware.com/mailman/listinfo/hlcoders<
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders>
> >
> > --
> >
> >
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the list archives,
> > please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> >
> >
> --
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to