Make rocket launcher only usable while crouching? [Solved]

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
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Make rocket launcher only usable while crouching? [Solved]

Post by jedimoose32 »

Hi. I'm trying to make it so that the rocket launcher can only be used while crouching. Would this kind of thing be made possible through a combo file, a new custom animation, or in the weapon's or character's odf? Thanks in advance.
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: Rocket Anims

Post by Xavious »

I'm not sure if that's possible, but you could edit the weapon's ODF to make the rocket launcher highly inaccurate while standing and much more accurate while crouching.
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: Rocket Anims

Post by Frisbeetarian »

jedimoose32 wrote:made possible through a combo file
Only melee weapons call for combo files if I'm not mistaken. I seriously doubt anything like this is possible. I sure haven't stumbled across a way to access the posture animation and use this to affect the possible weapons you can use.

If you can do this, the only way I see it working would be to add a rocket launcher to the unit upon crouching and take it away upon leaving crouch. Each time you did this, you would have to respawn the unit to have the weapon choice be affected, and then it would affect the whole class and not just a particular unit.

I'm going to go ahead and say no, not possible.
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: Rocket Anims

Post by Fiodis »

By creating a custom animset, it would be possible to put him in a permanent crouch, wouldn't it?

But to have it exactly the way you want it, probably not.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Rocket Anims

Post by Maveritchell »

Fiodis wrote:By creating a custom animset, it would be possible to put him in a permanent crouch, wouldn't it?

But to have it exactly the way you want it, probably not.
No. It would look like it, but the firepoints and collision of the unit wouldn't change when he was "standing."
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Rocket Anims

Post by jedimoose32 »

Xavious wrote:...you could edit the weapon's ODF to make the rocket launcher highly inaccurate while standing and much more accurate while crouching.
I like this. It may be possible to actually make the weapon not fire at all when standing.

Frisbeetarian: In "data_***/common/config" I saw a file that controlled all the regular soldier animations. Looked kinda like a combo file, just thought I'd throw it out there.
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: Rocket Anims

Post by Frisbeetarian »

jedimoose32 wrote:In "data_***/common/config" I saw a file that controlled all the regular soldier animations. Looked kinda like a combo file, just thought I'd throw it out there.
It looks like a combo file because it uses some of the same commands.
http://www.secretsociety.com/forum/downloads/BF2Docs/Animations/AnimationSystem.txt wrote:Data/Common/config/SoldierAnimation.SANM file
A config format file containing data controlling the looping, blending, and other animation properties of all standard high-res soldier animations. See combo.txt for formatting information - the format is the same as Animation tags from that combo config files.
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: Rocket Anims

Post by [RDH]Zerted »

Frisbeetarian wrote:...add a rocket launcher to the unit upon crouching...
I don't know of any way to detect someone crouching through Lua.

I like the accurate/inaccurate solution. Which ODF parameters do this?
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: Rocket Anims

Post by Xavious »

[RDH]Zerted wrote:I like the accurate/inaccurate solution. Which ODF parameters do this?
StandStillSpread, StandMoveSpread, CrouchStillSpread, and CrouchMoveSpread.
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Rocket Anims

Post by jedimoose32 »

Yep. I used the StandMoveSpread/StandStillSpread technique and made it hugely inaccurate while standing, walking, and crouch-walking. The only way you can get near-perfect accuracy is while sitting still and crouching. Thanks for the help, everyone!
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: Make rocket launcher only usable while crouching? [Solved]

Post by Tourny »

According to your quote, Frisbeetarian, it essentially is a combo file... And has anyone actually tried telling a non melee weapon to call for a combo?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Make rocket launcher only usable while crouching? [Solved]

Post by Maveritchell »

Tourny wrote:According to your quote, Frisbeetarian, it essentially is a combo file... And has anyone actually tried telling a non melee weapon to call for a combo?
It is not. And that is not a property of any weapon other than a melee weapon.
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: Make rocket launcher only usable while crouching? [Solved]

Post by Tourny »

Have you tried it?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Make rocket launcher only usable while crouching? [Solved]

Post by Maveritchell »

Tourny wrote:Have you tried it?
No, but neither have I tried starting my car with a banana.
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: Make rocket launcher only usable while crouching? [Solved]

Post by Tourny »

1. They are not nearly the same.

2. If my Grandpa can start his car with a pen and some chewing gum, than why not a banana?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Make rocket launcher only usable while crouching? [Solved]

Post by Maveritchell »

Do I really need to spell this out (not even delving into inane responses to the rhetorical)? An .sanm file uses some similar parameters to a .combo file, but that does not make them the same or interchangeable. Even then it is a huge jump to just guessing that you should try using a combo file in a different weapon, even though it is clearly documented as a melee-only property. Have you looked at a combo file recently? Have you ever looked at an .sanm file? All it does is define blendtimes.

While you were busy thinking up responses, there would have been plenty of time for you to check it yourself, had you really wanted to. The point of my tongue-in-cheek comparison to using fruit in a car's ignition was just to say that not everything needs to be empirically tested to be known. By all means, try, of course. Don't let anything I say stop you.
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Make rocket launcher only usable while crouching? [Solved]

Post by jedimoose32 »

Wow. :shock: Rocked!!

Anyway, thanks for trying, guys.
Post Reply