Page 1 of 1

New gametype

Posted: Mon Feb 01, 2010 8:49 pm
by Whispere
I need to do new gametype as team deathmatch, I need only what files edit. I want duplicate TDM. One TDM for Zombie mod with some modifications and normal Team deathmatch.
Thanks... :up:

Re: New gametype

Posted: Tue Feb 02, 2010 12:02 am
by ^misantropia^
Two options spring to mind:

1. Add a flag to level_locals_t in game/g_public.h, or
2. Add an enum to gametype_t in game/bg_public.h

Option 1 is probably the easiest (set gametype to TDM, then check if the zombie mod flag is set) because you don't have to check for side-effects, a drawback option 2 suffers from.

Re: New gametype

Posted: Tue Feb 16, 2010 11:33 am
by Whispere
Ok, Do you know how on it? I need more information, I don“t want step by step tut, but I want more files, where I need edit.
For example: I want to do a new gametype as GT_TEAM with number of gametype.

Re: New gametype

Posted: Tue Feb 16, 2010 12:40 pm
by ^misantropia^
Option 2, create a new gametype? You'll have to search the source for GT_TEAM and check if you need to add your own code. If the differences between regular TDM and your zombie mod aren't that big, I'd go with option 1.

Re: New gametype

Posted: Tue Feb 16, 2010 1:28 pm
by Whispere
Before than I read your post I making on It. Now I can say - I have it.
Thanks for you time, which you spend on of my ideas.

Re: New gametype

Posted: Tue Feb 16, 2010 3:39 pm
by Whispere
How I do a round team deathmatch?