Make rocket launcher only usable while crouching? [Solved]
Moderator: Moderators
-
jedimoose32
- 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]
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

- Posts: 2783
- Joined: Mon Jun 12, 2006 3:46 pm
Re: Rocket Anims
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.
- Frisbeetarian
- Jedi

- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Rocket Anims
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.jedimoose32 wrote:made possible through a combo file
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.
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Rocket Anims
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.
But to have it exactly the way you want it, probably not.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Rocket Anims
No. It would look like it, but the firepoints and collision of the unit wouldn't change when he was "standing."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.
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: Rocket Anims
I like this. It may be possible to actually make the weapon not fire at all when standing.Xavious wrote:...you could edit the weapon's ODF to make the rocket launcher highly inaccurate while standing and much more accurate while crouching.
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.
- Frisbeetarian
- Jedi

- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Rocket Anims
It looks like a combo file because it uses some of the same commands.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.
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.
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Rocket Anims
I don't know of any way to detect someone crouching through Lua.Frisbeetarian wrote:...add a rocket launcher to the unit upon crouching...
I like the accurate/inaccurate solution. Which ODF parameters do this?
-
Xavious
- Sith Master

- Posts: 2783
- Joined: Mon Jun 12, 2006 3:46 pm
Re: Rocket Anims
StandStillSpread, StandMoveSpread, CrouchStillSpread, and CrouchMoveSpread.[RDH]Zerted wrote:I like the accurate/inaccurate solution. Which ODF parameters do this?
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: Rocket Anims
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!
- 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: Make rocket launcher only usable while crouching? [Solved]
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?
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Make rocket launcher only usable while crouching? [Solved]
It is not. And that is not a property of any weapon other than a melee weapon.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?
- 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: Make rocket launcher only usable while crouching? [Solved]
Have you tried it?
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Make rocket launcher only usable while crouching? [Solved]
No, but neither have I tried starting my car with a banana.Tourny wrote:Have you tried it?
- 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: Make rocket launcher only usable while crouching? [Solved]
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?
2. If my Grandpa can start his car with a pen and some chewing gum, than why not a banana?
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Make rocket launcher only usable while crouching? [Solved]
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.
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

- 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]
Wow.
Rocked!!
Anyway, thanks for trying, guys.
Anyway, thanks for trying, guys.
