Fixing the CTF flag object so it doesn't fall through meshes
Re: Fixing the CTF flag object so it doesn't fall through me
What makes you think it's falling through anything?
-
- Posts: 601
- Joined: Mon Oct 01, 2012 3:13 pm
- Location: Canada
- Contact:
Re: Fixing the CTF flag object so it doesn't fall through me
I've tested it.
See my Strasbourg map project here.
Re: Fixing the CTF flag object so it doesn't fall through me
Interesting, did you manually place a flag at some altitude and watch it fall or something, not just seeing it appear on the ground?
-
- Posts: 601
- Joined: Mon Oct 01, 2012 3:13 pm
- Location: Canada
- Contact:
Re: Fixing the CTF flag object so it doesn't fall through me
The CTF flag object doesn't have network info to begin with. I don't think this problem has a solution unfortunately. It's a shame because on maps like DC Sea Rigs I would like to prevent the CTF flag from falling through the rigs, and it can't be done.
See my Strasbourg map project here.
Re: Re:
You got that right, friend.Classical Modder wrote:I hate BF1942's engine limitations. So frustrating.
Time to make meme guns instead
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Re: Fixing the CTF flag object so it doesn't fall through me
Fun fact, since the flag just warps to the surface of the terrain, if you kill someone who has the flag while standing next to them but you are on the upper floor of a building you don't return the flag.
Re: Fixing the CTF flag object so it doesn't fall through me
About flag radius, there is one for snatching it from the flagpole, and one for returning it. I had flags in Coral Sea, so it made the "return flag" bubble larger and lifted the seafloor a bit so it could be returned if it fell in the water. Worked out ok, only thing was the carriers didnt sink as they used to becasue they got stuck on the raised seafloor.
-
- Posts: 601
- Joined: Mon Oct 01, 2012 3:13 pm
- Location: Canada
- Contact:
Re: Fixing the CTF flag object so it doesn't fall through me
This is just an idea but if the flag object only interacts with the terrain, then changing the Mat ID of a mesh so that it matches a "terrain Mat ID" could in theory make the flag stay on the mesh no?
It's worth giving it a shot.
It's worth giving it a shot.
See my Strasbourg map project here.
Re: Fixing the CTF flag object so it doesn't fall through me
When the flag is dropped, it doesn't do any interacting. Take a look at dice::ref2::world::Flag::handleDrop. It gets the position of the player's "vehicle", then gets the terrain height and normal at that position. It then sets the flag position to 1.5 meters above the terrain. drop is not a very good description of what is happening.
Once the flag is there, it might be possible for it to interact. Maybe if you add some physics, and/or maybe add a floating bundle.
Once the flag is there, it might be possible for it to interact. Maybe if you add some physics, and/or maybe add a floating bundle.
-
- Posts: 601
- Joined: Mon Oct 01, 2012 3:13 pm
- Location: Canada
- Contact:
Re: Fixing the CTF flag object so it doesn't fall through me
Adding physics is something I tried but to no avail. The Flag object is a different class of object which doesn't respond to normal geometry and response commands.russ wrote:When the flag is dropped, it doesn't do any interacting. Take a look at dice::ref2::world::Flag::handleDrop. It gets the position of the player's "vehicle", then gets the terrain height and normal at that position. It then sets the flag position to 1.5 meters above the terrain. drop is not a very good description of what is happening.
Once the flag is there, it might be possible for it to interact. Maybe if you add some physics, and/or maybe add a floating bundle.
Crappy coding from EA yet again.
See my Strasbourg map project here.