ClassLabel = "sticky"... Oh great...

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
Tourny
Command Sergeant Major
Command Sergeant Major
Posts: 289
Joined: Sat Sep 27, 2008 5:58 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Crifton
Contact:

ClassLabel = "sticky"... Oh great...

Post by Tourny »

Hi, I'm trying to make a bow and arrow (I know skyhammer already did this, but I like to make my own stuff if possible) but that's irrelevant. I want to know how I could make the Ewok Spear (which I will use as the arrow) stick forever. If it is not possible in this way does anybody know how I could do it?
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: ClassLabel = "sticky"... Oh great...

Post by Deviss »

Tourny wrote:Hi, I'm trying to make a bow and arrow (I know skyhammer already did this, but I like to make my own stuff if possible) but that's irrelevant. I want to know how I could make the Ewok Spear (which I will use as the arrow) stick forever. If it is not possible in this way does anybody know how I could do it?
on the ordenance file change stick to 1 i think
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: ClassLabel = "sticky"... Oh great...

Post by Maveritchell »

You can give the ordnance a high lifespan, but then you wouldn't do any damage. You could also theoretically make an explosion .fx with the spear as a mesh, and just have its lifetime be infinite, but that would be goofy because then you'd have a bunch of spears all over the place and eventually you'd just overload the game with particle effects.
User avatar
Tourny
Command Sergeant Major
Command Sergeant Major
Posts: 289
Joined: Sat Sep 27, 2008 5:58 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Crifton
Contact:

Re: ClassLabel = "sticky"... Oh great...

Post by Tourny »

Uh-oh. Now I'm confused. Was Deviss right or wrong?
Commander_Fett
High General
High General
Posts: 847
Joined: Fri Oct 17, 2008 9:59 pm
Projects :: No Mod project currently.

Re: ClassLabel = "sticky"... Oh great...

Post by Commander_Fett »

I think Deviss was right on sticking, but Mav was right about how making the "arrows" last forever could overload the game.
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: ClassLabel = "sticky"... Oh great...

Post by Teancum »

I think I know why you feel this'd be neat, but trust me when I say it wouldn't be worth the effort.
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: ClassLabel = "sticky"... Oh great...

Post by Sky_216 »

Well forever would be a bit silly (for reasons above), but its not hard to do:

StickPerson = 1
StickAnimal = 1
StickDroid = 1
StickVehicle = 1
StickBuilding = 1
StickBuildingDead = 1
StickBuildingUnbuilt= 1
StickTerrain = 1

This will make it stick to everything except props.

These values will control various things:

LifeSpan = "0.4" //how long the arrows last. If you want them to stick in people, just put it up to like 8.
Velocity = "34.0" //arrow speed
Gravity = "1.37" //arrow gravity. Combine with speed to control the 'arc' in which the arrow is fired

TrailEffect = "com_sfx_contrail" //I personally didn't use this, but vyse did for hyrule field and it looks good + helps you aim.
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: ClassLabel = "sticky"... Oh great...

Post by Frisbeetarian »

Do mind that, overtaxing the game aside, all the arrows would be horizontal, since the engine only moves a point, not a line.
User avatar
Tourny
Command Sergeant Major
Command Sergeant Major
Posts: 289
Joined: Sat Sep 27, 2008 5:58 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Crifton
Contact:

Re: ClassLabel = "sticky"... Oh great...

Post by Tourny »

Thanks, Sky. But what firstbeetarian said I didn't understand fully. All arrows will be horizontal. Do you mean that even if I aim striaght up it will go forward?
bokkenblader56
Private First Class
Posts: 85
Joined: Mon Aug 04, 2008 7:20 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: South Carolina
Contact:

Re: ClassLabel = "sticky"... Oh great...

Post by bokkenblader56 »

I think he means that when the arrows would stick, the stick angle would always be parallel to the ground.
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: ClassLabel = "sticky"... Oh great...

Post by Frisbeetarian »

I suppose I wasn't too clear. I meant horizontal to the barrel of the gun. If you shoot at a 45 degree angle, the shaft would stay at a 45 degree angle throughout it's flight and thus land that way, without the point into whatever it hit.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: ClassLabel = "sticky"... Oh great...

Post by Maveritchell »

Frisbeetarian wrote:I suppose I wasn't too clear. I meant horizontal to the barrel of the gun. If you shoot at a 45 degree angle, the shaft would stay at a 45 degree angle throughout it's flight and thus land that way, without the point into whatever it hit.
That's not true, certain ordnances can be assigned gravity and will react by rotating the ordnance mesh as it follows the line. See Vyse's "Hyrule Field" as an example.
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: ClassLabel = "sticky"... Oh great...

Post by Frisbeetarian »

I stand corrected, that's good to know.
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: ClassLabel = "sticky"... Oh great...

Post by Sky_216 »

Just remembered: you need to use this line in your weapons ord odf. (I think)

AlignVertical = "0"

Setting it to 1 makes the arrows fly out sideways (ie not point first) which looks ridiculous.
User avatar
Tourny
Command Sergeant Major
Command Sergeant Major
Posts: 289
Joined: Sat Sep 27, 2008 5:58 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Crifton
Contact:

Re: ClassLabel = "sticky"... Oh great...

Post by Tourny »

ROTFLMOB!!! :funny2: :funny2: That just saved alot of problems. Thanks, SKy.
Post Reply