Fixing the CTF flag object so it doesn't fall through meshes

Ask questions, discuss ideas, get answers
russ
Posts: 73
Joined: Sun Oct 29, 2017 8:12 am

Re: Fixing the CTF flag object so it doesn't fall through me

Post by russ »

What makes you think it's falling through anything?
Diamondback
Posts: 589
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada
Contact:

Re: Fixing the CTF flag object so it doesn't fall through me

Post by Diamondback »

I've tested it.
See my Strasbourg map project here.
russ
Posts: 73
Joined: Sun Oct 29, 2017 8:12 am

Re: Fixing the CTF flag object so it doesn't fall through me

Post by russ »

Interesting, did you manually place a flag at some altitude and watch it fall or something, not just seeing it appear on the ground?
Diamondback
Posts: 589
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada
Contact:

Re: Fixing the CTF flag object so it doesn't fall through me

Post by Diamondback »

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.
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Re:

Post by Swaffy »

Classical Modder wrote:I hate BF1942's engine limitations. So frustrating.
You got that right, friend.

Time to make meme guns instead
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
russ
Posts: 73
Joined: Sun Oct 29, 2017 8:12 am

Re: Fixing the CTF flag object so it doesn't fall through me

Post by russ »

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.
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: Fixing the CTF flag object so it doesn't fall through me

Post by freddy »

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.
Diamondback
Posts: 589
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada
Contact:

Re: Fixing the CTF flag object so it doesn't fall through me

Post by Diamondback »

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.
See my Strasbourg map project here.
russ
Posts: 73
Joined: Sun Oct 29, 2017 8:12 am

Re: Fixing the CTF flag object so it doesn't fall through me

Post by russ »

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.
Diamondback
Posts: 589
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada
Contact:

Re: Fixing the CTF flag object so it doesn't fall through me

Post by Diamondback »

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.
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.

Crappy coding from EA yet again.
See my Strasbourg map project here.
Post Reply