Page 1 of 1
Problem With Dispensing Prop
Posted: Sun Jun 14, 2009 3:54 pm
by YTF
Hey, I was trying to make my unit dispense a destructable prop, but whenever I dispense it, it seems to be hovering in the air.
When you dispense a mine, you sort of "throw" it a little bit before it lands on the ground. I think the problem here is that it isn't doing that "throw" action, thus spawning it on top of my head. Is there anything I can do in the ODF to change this?
Re: Problem With Dispensing Prop
Posted: Sun Jun 14, 2009 5:29 pm
by EA711
Maybe you could try a different object?
Re: Problem With Dispensing Prop
Posted: Sun Jun 14, 2009 6:40 pm
by MileHighGuy
well i also have this problem with one of my maps, when i used the mine classlabel it had no collsion, so i think you may have to use a weapon model with a far away hp fire [like a sniper or launcher] and just make the prop the ordance, so it doesnt get stuck ontop the guys head. but i have never tried it with something like that.
i would also look in the odf giude for a dispensable classlabel that supports
Velocity
Gravity
Rebound
Friction
and doesnt make the object have no collsion
Re: Problem With Dispensing Prop
Posted: Sun Jun 14, 2009 7:17 pm
by MasterFang1
hey YTF, i had this same problem. I was trying to dispense a a bespin prop and it was rotated a weird way, and hovered in middair. I would like a fix for this too.
Re: Problem With Dispensing Prop
Posted: Sun Jun 14, 2009 11:47 pm
by Pelt
*THEORY*
I think this occurs because props are hard-coded as being stationary and "inanimate", as opposed to other classes of objects which can be interacted with, e.g. vehicles. When the prop is spawned, the physics calculations for the prop to move would be ignored by the game engine, since the "prop" class of objects is not programmed to respond to such an input.
Re: Problem With Dispensing Prop
Posted: Mon Jun 15, 2009 7:43 am
by jango
actually you can make it hit the ground. You just have to look down just right.
Re: Problem With Dispensing Prop
Posted: Mon Jun 15, 2009 11:15 am
by YTF
@ Pelt -- The object class is actually "destructableobject", but I think the same rules would apply (if your theory is correct). However, I found that when I modified the recon droid ODF so that the droid's MSH was changed to the box, it landed on the ground the way I wanted it to (however, it could also move around, even though I changed the speed factors and such in the ODF

).
I'll try a couple different object classes and see what I can do. Until then, any more advice is much appreciated. Thanks ^^
Re: Problem With Dispensing Prop
Posted: Mon Jun 15, 2009 2:05 pm
by Maveritchell
YTF wrote:@ Pelt -- The object class is actually "destructableobject", but I think the same rules would apply (if your theory is correct). However, I found that when I modified the recon droid ODF so that the droid's MSH was changed to the box, it landed on the ground the way I wanted it to (however, it could also move around, even though I changed the speed factors and such in the ODF

).
I'll try a couple different object classes and see what I can do. Until then, any more advice is much appreciated. Thanks ^^
Is "portableturret" a valid SWBF1 classlabel? If so, use that.
Re: Problem With Dispensing Prop
Posted: Mon Jun 15, 2009 3:14 pm
by YTF
Nope, it crashed. I guess it wasn't introduced until BF2. Isn't there a list of SWBF1 object class labels somewhere?
Re: Problem With Dispensing Prop
Posted: Mon Jun 15, 2009 3:19 pm
by MileHighGuy
its in the odf guide in the documentaion as stated above
Re: Problem With Dispensing Prop
Posted: Tue Jun 16, 2009 1:15 pm
by YTF
Well, I guess I'm getting there.
I changed the recon droid dispenser from a "remote" classlabel to a "dispenser" classlabel to dispense the actual recon droids (with the box MSH). The boxes now drop to the ground instead of just floating in the air, which is what I wanted all along. However, I apparently need to tweak the ODFs a little, since the boxes seem hellbent on following me around.

Re: Problem With Dispensing Prop
Posted: Tue Jun 16, 2009 2:05 pm
by MileHighGuy
they folow you around!

you might be able to make a pikmin map with that
and thanks for solving
edit: i just tried this and wow, the crates have good physics, hmm (has swbf gmod idea)
Re: Problem With Dispensing Prop
Posted: Tue Jun 16, 2009 4:49 pm
by YTF
Well, I wouldn't say that my problem is exactly "solved", but it is an improvement (as well as a rather interesting discovery). What I want is a dispensible prop that doesn't move at all (think Lego blocks). However, no matter what I change in the ODFs (speed factors, etc), they still seem to follow me around.
Perhaps posting my ODFs will help.
can_weap_inf_remotedroid (the dispenser):
can_weap_inf_remotedroid_ord (the dispensible object):
Re: Problem With Dispensing Prop
Posted: Tue Jun 16, 2009 5:04 pm
by ANDEWEGET
if you want to have only a prop, then i would use the healthammo pack odf, an call for a prop odf, which you have in your side folder.
Re: Problem With Dispensing Prop
Posted: Tue Jun 16, 2009 5:31 pm
by MileHighGuy
SwitchImmediately = "1"
change this to 0
and when i did it i kept pilot type "remote" and it still worked
@ adnewedget no that wouldnt work
and may i ask, what is the weapon for?
Re: Problem With Dispensing Prop
Posted: Tue Jun 16, 2009 6:06 pm
by YTF
Thanks, that worked like a charm! It's not really for anything special, I just wanted to see if it was possible. It would be neat to be able to dispense barriers and stuff like that, though.
Thanks to all who could help!