OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: jaksa on 19 Jun 2005, 15:46:21
-
How can i change animation for weapons like LAW? What for? I want to do portable light mortar. Soldier with this kind of weapon need always the same position (animation), because you cant fire with mortar in Your hands. operator must be always crouching or lying. As i suppouse, LAW class is the best for it, isn't it?
-
ok, lets go other way
can i force a soldier to use the weapon only in lying position by EventHandler? If yes, how?
-
You mean like the WW2 Japanese Knee Mortar?
(http://www.nps.gov/wapa/indepth/extContent/usmc/pcn-190-003117-00/images/fig60.jpg)
AFAIK it's all done in the configs, take a look in the configs at how they defined the Law launcher. If you base it on the same class and add your own animation, you should be able to get the results your after?
Alternatively make the mortar a vehicle, that can be deployed and entered based on a user action. As you can still move and fire with a law, so this might be a better solution? I think LAW launchers are kind of hardcoded into the configs, so I'm not sure how easy it will be to override them.
But either way I think you will need a custom animation.
-
Yes, exactly, this kind of mortar. Weapon like that was used in nearly all armies, and now it's coming back (usually as an commando mortars).It gives quite good fire support. In defend - doesn't matter, but in assault it need to be portable. Quick position changing is a key to successful support.
1. If it will be a vehicle (created by user actions), can AI use it succesfully, without inmission waypoints or triggers (whatever)? AI should be free to use it.
2. there are many vehicles with special animations, but i didn't see any riffle, law or whatever with added anim. One can change whole animations (anims.pbo), but how do that with specifed addon?
3.Custom animation - i'll do that. i hope so :)
-
Yes, exactly, this kind of mortar. Weapon like that was used in nearly all armies, and now it's coming back (usually as an commando mortars).
Yeah, I had a good pic of a WW2 British Commando mortar, can't find it now :( I think the Japanese version, at the time, stood out from the rest. You could vary the range with an adjustable ring and fire regular grenades over a limited distance. Because it used a trigger system, you could carry it with a round loaded, ready to fire.
I think the best way would be to config it the same way OFP does the Mortar (fired from a rifle)? That would work best for the AI, but you would probably need a custom animation.
The only way I'm familiar with is as a vehicle. You could probably use one of the default animations, to get something close. But yeah, would be a pain trying to get the AI to use that.