Page 1 of 1
Make rocket launcher only usable while crouching? [Solved]
Posted: Fri Jul 10, 2009 3:16 pm
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.
Re: Rocket Anims
Posted: Fri Jul 10, 2009 3:21 pm
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.
Re: Rocket Anims
Posted: Fri Jul 10, 2009 3:29 pm
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.
Re: Rocket Anims
Posted: Fri Jul 10, 2009 4:36 pm
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.
Re: Rocket Anims
Posted: Fri Jul 10, 2009 6:50 pm
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."
Re: Rocket Anims
Posted: Fri Jul 10, 2009 11:23 pm
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.
Re: Rocket Anims
Posted: Sat Jul 11, 2009 12:53 am
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.
Re: Rocket Anims
Posted: Sat Jul 11, 2009 7:21 am
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?
Re: Rocket Anims
Posted: Sat Jul 11, 2009 10:55 am
by Xavious
[RDH]Zerted wrote:I like the accurate/inaccurate solution. Which ODF parameters do this?
StandStillSpread, StandMoveSpread, CrouchStillSpread, and CrouchMoveSpread.
Re: Rocket Anims
Posted: Sat Jul 11, 2009 2:18 pm
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!
Re: Make rocket launcher only usable while crouching? [Solved]
Posted: Sat Jul 11, 2009 9:55 pm
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?
Re: Make rocket launcher only usable while crouching? [Solved]
Posted: Sat Jul 11, 2009 10:10 pm
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.
Re: Make rocket launcher only usable while crouching? [Solved]
Posted: Sat Jul 11, 2009 10:33 pm
by Tourny
Have you tried it?
Re: Make rocket launcher only usable while crouching? [Solved]
Posted: Sat Jul 11, 2009 10:39 pm
by Maveritchell
Tourny wrote:Have you tried it?
No, but neither have I tried starting my car with a banana.
Re: Make rocket launcher only usable while crouching? [Solved]
Posted: Sat Jul 11, 2009 10:45 pm
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?
Re: Make rocket launcher only usable while crouching? [Solved]
Posted: Sat Jul 11, 2009 10:55 pm
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.
Re: Make rocket launcher only usable while crouching? [Solved]
Posted: Sun Jul 12, 2009 3:59 pm
by jedimoose32
Wow.

Rocked!!
Anyway, thanks for trying, guys.