Team spawns

Locked
Whispere
Posts: 25
Joined: Sun Jan 17, 2010 5:22 pm

Team spawns

Post by Whispere »

Hi, :)
I have new (next?) idea.
I need that in TDM players had their own spawns as in CTF. (they are not spawn in info_player deathmatch)
Thanks.
Whispere
Posts: 25
Joined: Sun Jan 17, 2010 5:22 pm

Re: Team spawns

Post by Whispere »

I need that in TDM the players of red team spawn on red_ctf_spawn as in CTF mode and players of blue team spawn on blue_ctf_spawn.
Thx
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Team spawns

Post by ^misantropia^ »

Just to be sure, how would you describe your competence level as a C coder? More specifically, do you just need some pointers as to where to start hacking or are you looking for step-by-step instructions?
Whispere
Posts: 25
Joined: Sun Jan 17, 2010 5:22 pm

Re: Team spawns

Post by Whispere »

I´m moderately advanced with coding, but in team models I want step by step instruction (is it faster :) ), but suffice me any advice. Here me suffice ,,where I start´´.

Thank for you time with my asks.
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Team spawns

Post by ^misantropia^ »

Good to know. The spawning thing is actually pretty simple: in ClientSpawn() in game/g_client.c, change this:

Code: Select all

        } else if (g_gametype.integer >= GT_CTF ) {
To this:

Code: Select all

        } else if (g_gametype.integer >= GT_TEAM ) {
I suppose this turned out to be step-by-step instructions after all but there you go.
Whispere
Posts: 25
Joined: Sun Jan 17, 2010 5:22 pm

Re: Team spawns

Post by Whispere »

Thanks.
Locked