gametype...


(nikita) #1

ok this is gonna be quite a pickle and i am not sure if everyone can help me but, if some1 can please post :slight_smile:

as i keep making my mode, i wish to make it an all vs all gameplay with fraglimit witch i define, will probebly add cvar for it later for easier use but, for exemple.

I want all vs all battle with the first person who reach 10 frags win.

is this possable? any1 can tell me where to start with the source code with , at what point?
and can someone can give me some pointers about how to do it, cause am not sure i can handle it myself… seems a bit complicated

thanks in advance.


reading this topic is 1 step
replying for it is the importent step :smiley:


(kamikazee) #2

Adding gametypes is fairly easy, just add a new value to the gametype_t struct in bg_public.h.
Now it needs some client code too to display the kill counter, but you can start with the server code.

For the kill counts some more work is needed. Take a look at the player die functions. (player_die in g_combat.c)
I’d need to take a closer look, but I don’t have the time right now so I hope this gets you started.


(nUllSkillZ) #3

You also could search the files for the other gametypes (like GT_WOLF_LMS for example).
If you’re creating a DM mod you want to use the LMS mapscriptfiles for example.


(nikita) #4

aye i was thinking bout it, i havent looked at the source myself, but i will now, thank you again null