Space Heroes

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
authraw
1st Lieutenant
1st Lieutenant
Posts: 445
Joined: Mon Jun 26, 2006 3:45 pm

Space Heroes

Post by authraw »

So I was thinking about space maps recently, and I was trying to think of some things that would make them more interesting. What I realized is that space maps don't get heroes, for several reasons. It doesn't seem like something that would be too hard to add, however.

In order to make space heroes fun, I'd have to find solutions to the following problems:
1. Space heroes need their own personal ships that only they can use
2. Ships killed while inside of a vehicle would have to count towards the hero's health bar

I have a few ideas about how to fix #1, but I'm not sure how to script them:
*One solution would be to script it so that any time the hero's ship is entered, it checks to make sure you are the hero and ejects you if not.
*Another solution would be to force the hero into his/her ship (which is created out in space somewhere) as soon as he/she spawns.

The second problem could be solved by making the hero a selectable unit that is unplayed by the AIs and with a max count of 1, but if there's a way to do it using the hero function, that would be better.

Could anyone suggest some solutions to these problems? Is there something that I missed?
computergeek
General
General
Posts: 770
Joined: Thu Jun 07, 2007 6:26 pm
Projects :: Halo Warthog vehicle for SWBF2
Games I'm Playing :: Bioware RPGs - Halo
xbox live or psn: No gamertag set
Location: Far Far away....

Re: Space Heroes

Post by computergeek »

there is a thread about forcing people into vehicles here
http://www.gametoast.com/forums/viewtop ... 27&t=12464
and you should be able to add heros regularly and by destroying a ship they are killing someone, so i will add to the heath
but the lightsaber will go over the normal health bar
Fingerfood
Sith
Sith
Posts: 1262
Joined: Fri Nov 30, 2007 9:40 pm

Re: Space Heroes

Post by Fingerfood »

You could always make them normal units, but you could put a HUGE region around the map, and change the heroes class to something unique, then make the big region a damage region for the heroes unit class.
User avatar
authraw
1st Lieutenant
1st Lieutenant
Posts: 445
Joined: Mon Jun 26, 2006 3:45 pm

Re: Space Heroes

Post by authraw »

Fingerfood wrote:You could always make them normal units, but you could put a HUGE region around the map, and change the heroes class to something unique, then make the big region a damage region for the heroes unit class.
Oh, that's something I never thought about--but then the hero won't recover when he/she kills enemy units.

I've been thinking about the hero ship thing, and I'm beginning to think that the first idea is the better solution, but I'm really not sure exactly how to code it in the LUA. I have a feeling it would look something like this:
OnVehcleEnter{
if vehicleClass == "imp_heroship" and playerClass != "imp_hero_vader" then
ejectFromVehicle(player)
end
}

Unfortunately, I don't know the real function calls and whatnot. Are there functions that would allow me to do this?
User avatar
Fluffy_the_ic
Hoth Battle Chief
Hoth Battle Chief
Posts: 3223
Joined: Thu Jan 24, 2008 7:03 pm
xbox live or psn: fluffytherc
Location: she/her
Contact:

Re: Space Heroes

Post by Fluffy_the_ic »

You could put a barrier around the ship that only, say HOVER can go through. Classify the heroes as HOVER and the units as anything else, but that will only prevent AI from getting in the ship.
User avatar
Blade
Captain
Captain
Posts: 496
Joined: Fri Apr 04, 2008 11:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Space Heroes

Post by Blade »

Fluffy_the_ic wrote:You could put a barrier around the ship that only, say HOVER can go through. Classify the heroes as HOVER and the units as anything else, but that will only prevent AI from getting in the ship.
In fact, I think I read somewhere (Have no idea where, sorry) that you can modify an invisible collision to let certain unit types through, (Something about SetCollisionType... er, probably not, but we'll see) I'll have to look at the odf and check it out. (Thinks, "Ah, how I love finally somewhat understanding the inner workings of odfs.")

EDIT: Hm... no idea where I got that idea, as I've just had a peep at the odf and found nothing of the sort. (Ok, I don't know 'that' much about odfs...) I'll keep a watch for it, and get back to you (if you want) when I figure out what the bloody "AGH" i was thinking about... :?

EDIT2: Eh, sorry, I was thinking of something completely different (actually, I've no right idea about what I was thinking, but I wouldn't publicly display that...). Anyway, I'm not sure if this will help, but this topic deals with a similar question (about the Only heroes entering a vehicle, not the whole thing): http://www.gametoast.com/forums/viewtop ... pe#p226605

Sorry I couldn't be of much help... I'll continue poking around a bit to see what I can discern from my mindless notes and ramblings...
Post Reply