ClassLabel = "sticky"... Oh great...
Moderator: Moderators
- Tourny
- Command Sergeant Major

- Posts: 289
- Joined: Sat Sep 27, 2008 5:58 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Crifton
- Contact:
ClassLabel = "sticky"... Oh great...
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

- Posts: 3772
- Joined: Tue Aug 12, 2008 7:59 pm
- Projects :: Clone Wars Extended
Re: ClassLabel = "sticky"... Oh great...
on the ordenance file change stick to 1 i thinkTourny 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?
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: ClassLabel = "sticky"... Oh great...
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.
- Tourny
- Command Sergeant Major

- Posts: 289
- Joined: Sat Sep 27, 2008 5:58 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Crifton
- Contact:
Re: ClassLabel = "sticky"... Oh great...
Uh-oh. Now I'm confused. Was Deviss right or wrong?
-
Commander_Fett
- High General

- Posts: 847
- Joined: Fri Oct 17, 2008 9:59 pm
- Projects :: No Mod project currently.
Re: ClassLabel = "sticky"... Oh great...
I think Deviss was right on sticking, but Mav was right about how making the "arrows" last forever could overload the game.
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: ClassLabel = "sticky"... Oh great...
I think I know why you feel this'd be neat, but trust me when I say it wouldn't be worth the effort.
- Sky_216
- Droid Pilot Assassin

- Posts: 2086
- Joined: Mon Feb 13, 2006 3:28 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: ClassLabel = "sticky"... Oh great...
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.
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.
- Frisbeetarian
- Jedi

- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: ClassLabel = "sticky"... Oh great...
Do mind that, overtaxing the game aside, all the arrows would be horizontal, since the engine only moves a point, not a line.
- Tourny
- Command Sergeant Major

- Posts: 289
- Joined: Sat Sep 27, 2008 5:58 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Crifton
- Contact:
Re: ClassLabel = "sticky"... Oh great...
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.
- xbox live or psn: No gamertag set
- Location: South Carolina
- Contact:
Re: ClassLabel = "sticky"... Oh great...
I think he means that when the arrows would stick, the stick angle would always be parallel to the ground.
- Frisbeetarian
- Jedi

- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: ClassLabel = "sticky"... Oh great...
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.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: ClassLabel = "sticky"... Oh great...
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.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.
- Frisbeetarian
- Jedi

- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: ClassLabel = "sticky"... Oh great...
I stand corrected, that's good to know.
- Sky_216
- Droid Pilot Assassin

- Posts: 2086
- Joined: Mon Feb 13, 2006 3:28 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: ClassLabel = "sticky"... Oh great...
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.
AlignVertical = "0"
Setting it to 1 makes the arrows fly out sideways (ie not point first) which looks ridiculous.
- Tourny
- Command Sergeant Major

- Posts: 289
- Joined: Sat Sep 27, 2008 5:58 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Crifton
- Contact:
Re: ClassLabel = "sticky"... Oh great...
ROTFLMOB!!!
That just saved alot of problems. Thanks, SKy.
