Wall climbing?

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
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Wall climbing?

Post by skelltor »

is it possible to make a unit able to climb up wall and buildings? or some how make him a jet pack with no effect and just inetial push but that would work off walls to any ideas?
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: wall climbing

Post by Teancum »

Nope, not possible.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: wall climbing

Post by skelltor »

dang it :cry: oh well thx
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Wall climbing?

Post by [RDH]Zerted »

Assuming there was only one of this unit and the AI will never go up the wall:

Put a region over the area you want the player to be able to climb. When the player enters the region, give that character an invisible jet pack. When the player leaves the region, take the jet pack away. I don't know if the game would have problems if you take a jet pack away from someone when they're using it.

It might be best to just always have the unit have a jet back and just give/take away its fuel or its fuel regen.

In general, like Teancum, said: not possible.
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Wall climbing?

Post by [TFA]Padawan_Fighter »

[RDH]Zerted wrote:Assuming there was only one of this unit and the AI will never go up the wall:

Put a region over the area you want the player to be able to climb. When the player enters the region, give that character an invisible jet pack. When the player leaves the region, take the jet pack away. I don't know if the game would have problems if you take a jet pack away from someone when they're using it.


Hmmmmm...that's really interesting, I didn't know that could be done.

Could this possibly be used for underwater areas as well?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Wall climbing?

Post by Fiodis »

[RDH]Zerted wrote:It might be best to just always have the unit have a jet back and just give/take away its fuel or its fuel regen.
I asked once if you could manipulate jetpack fuel through SetProperty, like you do with shields [SetProperty(unit, "CurShield", #)] and the general concensus was that you couldn't. How could you add or take away specific amounts, then? Or would you have to work with changing FuelRechargeRate?
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Wall climbing?

Post by [RDH]Zerted »

I'm not sure what you mean by underwater. I don't think you can fly underwater, though I've never gone deep enough to find out.

Fake Console's Add Jet Packs important code:

Code: Select all

	local properties = {
		--ControlSpeed = "jet 1.85 1.85 2.00"
		{ name = "ControlSpeed", value = "jet 10.85 1.85 2.00"},
		{ name = "JetJump", 		value = "8.0" },
		{ name = "JetPush", 		value = "8.0" },
		{ name = "JetAcceleration", value = "20.0" },
		{ name = "JetEffect", 		value = "" },
		{ name = "JetType", 		value = "hover" },
		{ name = "JetFuelRechangeRate", value = "1" },
		{ name = "JetFuelCost", 	value = "0.0" },
		{ name = "JetFuelInitialCost", value = "0.0" },
		{ name = "JetFuelMinBorder", value = "0.0" },
	}
	uf_changeClassProperties( uf_classes, properties )
Fake Console's Remove jet Packs important code:

Code: Select all

local properties = {
				{ name = "ControlSpeed", value = "jet 0.01 0.01 0.01"},
			    { name = "JetJump", 		value = "0.1" },
			    { name = "JetPush", 		value = "0" },
			    { name = "JetAcceleration", value = "0" },
			    --{ name = "JetEffect", 		value = "0" },
			    { name = "JetType", 		value = "hover" },
			    { name = "JetFuelRechangeRate", value = "0" },
			    { name = "JetFuelCost", 	value = "50" },
			    { name = "JetFuelInitialCost", value = "50" },
			    { name = "JetFuelMinBorder", value = "50" },
			}
			uf_changeClassProperties( uf_classes, properties )
uf_classes is just a table with the unit classes to change. As an example: uf_classes = { "all_inf_rifleman", "imp_inf_rifleman" } Please use a variable name other than uf_classes as v1.3 uses that variable name to track all in-game units. The function uf_changeClassProperties() only exists in v1.3. It basically just does SetClassProperty() on each given unit class with all those name and value fields in the given properties table.

Look in the ODF property document to see just about everything that can be changed through SetClassProperty or SetProperty. Also, I forgot that something in the 'removing jet packs' code causes crashes to the non-hosts in MP games, so a map using it would have to be SP only.

As shown above, I messed with the fuel costs and recharge rates. Increasing the fuel costs is similar to removing fuel.
User avatar
[TFA]Padawan_Fighter
High General
High General
Posts: 806
Joined: Wed Mar 25, 2009 3:37 pm
Projects :: Ha - as if I will ever get back to them
Games I'm Playing :: SWBF2 ARK EliteDngrs
xbox live or psn: No gamertag set
Location: Lost at sea

Re: Wall climbing?

Post by [TFA]Padawan_Fighter »

Eh? Of course you can fly underwater. I do it all the time (of course, it would be called SWIMMING, not flying :P). I'm just saying whether it is possible or not to take this hypothesized 'jet region' and place it underwater to emulate swimming.
Post Reply