New gametype

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

New gametype

Post 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:
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: New gametype

Post 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.
Whispere
Posts: 25
Joined: Sun Jan 17, 2010 5:22 pm

Re: New gametype

Post 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.
Last edited by Whispere on Tue Feb 16, 2010 1:26 pm, edited 2 times in total.
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: New gametype

Post 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.
Whispere
Posts: 25
Joined: Sun Jan 17, 2010 5:22 pm

Re: New gametype

Post 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.
Whispere
Posts: 25
Joined: Sun Jan 17, 2010 5:22 pm

Re: New gametype

Post by Whispere »

How I do a round team deathmatch?
Locked