Author Topic: Entry for Lives in TDM's Siege Gamemode  (Read 543 times)

it sounds fairly simple but i don't know how it would really work, be it just adding afield for it to the gui or actually having to move code around or even remake the gamemode. hopefully it's a simple enough matter that someone can make it soon enough.
if you're wondering what use this could possibly have, i intend to use it for the semi-stealthy build i'm making for the 1 vs all suggestion.

This made me think of an event that grants extra lives..

That would be cool.

That would also be interesting, yes.
I've been thinking and I think that lives are built into the TDM core mod, so it would only be a matter of having a field to change them in the siege minigame GUI?
I'll have to investigate tomorrow if I can, unless someone could clarify for me.

Variables maybe?
I'm sure there's a variable for the number of lives a player has.

well, first things first, i'd like to have lives in siege. .-.

It would probably be easier to add team randomizing to standard team deathmatch.

Wow, I never noticed that!

Strange that there's not a lives option.

If you look through the Gamemode_Deathmatch.cs code, though, you can pretty much copypasta the lives stuff over.

It would probably be easier to add team randomizing to standard team deathmatch.
naw, i need the siege part too.

If I remember right, all you have to do is some server-sided scriptwork. I'll see if I can dig up anymore information.

EDIT:

1) open Gamemode_Teamdeathmatch / Gamemode_Team Deathmatch.cs

2) open Gamemode_Siege / Gamemode_Siege.cs

3) copy and paste the "addGameModeRule("Team Deathmatch", "Lives", "int 0 10", 0);" line into Gamemode_Siege, at the top (BUT BELOW "addGameModeRule("Siege", "Time", "int 1 30", 10);")

4) replace "Team Deathmatch" in the copied line with "Siege".

5) Scroll to Gamemode_TDM_onMiniReset in both files

6) Copy and paste the following from Gamemode_TeamDeathmatch into Gamemode_Siege, both above the existing lines in Gamemode_TDM_onMiniReset, but still in the function

if(%mini.tdmModeRule[1] != 0)
   %mini.messageAll('',"\c5You have \c3" @ %mini.tdmModeRule[1] @ "\c5 " @ (%mini.tdmModeRule[1] == 1 ? "life" : "lives") @ " remaining.");

and

%mini.setLivesLimit(%mini.tdmModeRule[1]);





That should do it, unless I've overlooked something.
« Last Edit: May 30, 2011, 10:21:34 AM by rkynick »

I'll give that a shot later, thanks.


Works like a charm. I suppose it wouldn't be terrible to just post for anyone else that may want it, so here you go~:
http://www.box.net/shared/d0fo2sfz72