Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: thehsvdude on February 26, 2014, 02:22:42 pm

Title: [QUESTION] TDM Battleground
Post by: thehsvdude on February 26, 2014, 02:22:42 pm
How hard would it be to implement team deathmatch Battlegrounds into trinity 3.3.5a i've already Made the BG
Title: Re: [QUESTION] TDM Battleground
Post by: schlumpf on February 26, 2014, 02:55:31 pm
That's an arena. Just copy a script & db entries for one of them.
Title: Re: [QUESTION] TDM Battleground
Post by: thehsvdude on February 26, 2014, 02:58:26 pm
but with Respawning...
Title: Re: [QUESTION] TDM Battleground
Post by: Ascathos on February 26, 2014, 03:37:58 pm
Quote from: "thehsvdude"
but with Respawning...
Change the respawn system for the arena/bg ? Look into the code. Find what you need, see if you understand or get help (e.g. #trinity on rizonchat. Don't expect too much though). Do not attempt such projects with mundane skills - because that's a huge piece of modification you attempt there.

That being said. It's possible. But I'd grad it hard.
Title: Re: [QUESTION] TDM Battleground
Post by: schlumpf on February 26, 2014, 06:10:05 pm
deathmatch implies no respawning for me.
With respawning, this is just a normal bg, without additional scripting? Copy a bg script, remove everything objective related?

This is not hard at all, but just a copy + deletion.
Title: Re: [QUESTION] TDM Battleground
Post by: XxXGenesisXxX on February 26, 2014, 10:08:16 pm
Done this in the past personally and as Schlumpf said, you just copy a base script (WSG for example). Remove or comment out the objective stuff (flags). Modify the OnKill function so that when you get a kill it also adds to the team score. Can't remember if you need to modify the victory conditions outside of score limit.

As for respawning... It's a BG that already has graveyards, it already uses the basic WoW respawn system. You don't need to change anything to do with it, what were you going for with respawns that's different?

After all that, you need to modify the UI a bit, I never got round to doing that though, so you will have to figure that out more on your own.

Other than that, you need to make it so the Battleground shows up in the Battlemaster Battlegrounds list. From memory this is done with DBC and the database. Can't remember if more serverside is needed...

You may also need to make it so the script can be activated in the first place, but again I can't remember. Sorry it's been almost 2 years and I had a look on one of my storage hard drives, but can't find the script anywhere. I stop and start things a lot, so I clear files out a fair bit.
Title: Re: [QUESTION] TDM Battleground
Post by: thehsvdude on February 27, 2014, 12:52:24 pm
no respawning could be cool tho
Title: Re: [QUESTION] TDM Battleground
Post by: thehsvdude on February 27, 2014, 12:56:33 pm
Would there be a way to implement a spectating system?
Title: Re: [QUESTION] TDM Battleground
Post by: XxXGenesisXxX on February 27, 2014, 01:24:28 pm
Firstly, for the love of god, please stop double posting, there is an edit button for a reason. It really helps keep the forums cleaner and makes it easier to navigate threads.

However on-topic: Depends on how you want to do it?

You could do it with cameras, but good luck with that lol. Would be a nightmare.
You could do something using vision control, as in similar to mind control spells, but without having the control. And the spectator switches between players they are viewing.

The method I would say is easiest and would recommend though, would probably be through the use of Phases. Have it so the players are in the default Phase, while the spectators are in another Phase. For examples sake (and lack of memory), we'll say the default Phase is 1 and the spectator Phase is 2. You would make it so that Phase 1 is active on players, and Phase 2 is active on spectators. Then you would make is so people in Phase 2 can see people in Phase 1, but Phase 1 people can only see people in Phase 1 and not Phase 2. Afterward you have to make it so that while in Phase 2, objects are non-intractable.

The problem with all of these is whether or not without a delay on the spectator mode, will people cheat or not? As in have a friend spectate and relay information to the enemy team.

No matter what you do, it won't be that small of a task, but these are some basic ideas to go on.
Title: Re: [QUESTION] TDM Battleground
Post by: deep6ixed on February 27, 2014, 06:07:56 pm
Is there a way to cast a specific spell on a player when they die in a specific battleground?  You could always make a spell that pacifies / silences once they die that gets removed at the end of the match.  I know there is a ghost spell effect in the spell system.
Title: Re: [QUESTION] TDM Battleground
Post by: schlumpf on February 27, 2014, 06:22:43 pm
Quote from: "deep6ixed"
Is there a way to cast a specific spell on a player when they die in a specific battleground?  You could always make a spell that pacifies / silences once they die that gets removed at the end of the match.  I know there is a ghost spell effect in the spell system.

Well, that's.. Arenas? All these scripts already exist!