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

Ask questions, discuss ideas, get answers

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

Postby russ » Sun Feb 25, 2018 7:06 am

What makes you think it's falling through anything?
russ
 
Posts: 40
Joined: Sun Oct 29, 2017 8:12 am

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

Postby Classical Modder » Sun Feb 25, 2018 7:19 am

I've tested it.
{SoH} Clan Leader // http://sohclan.forumotion.com/
See my Strasbourg map project here.
GSC: diamondback67
Steam: diamondback67
Classical Modder
 
Posts: 412
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada

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

Postby russ » Sun Feb 25, 2018 7:23 pm

Interesting, did you manually place a flag at some altitude and watch it fall or something, not just seeing it appear on the ground?
russ
 
Posts: 40
Joined: Sun Oct 29, 2017 8:12 am

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

Postby Classical Modder » Sat Apr 21, 2018 1:14 am

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.
{SoH} Clan Leader // http://sohclan.forumotion.com/
See my Strasbourg map project here.
GSC: diamondback67
Steam: diamondback67
Classical Modder
 
Posts: 412
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada

Re: Re:

Postby Swaffy » Sat Apr 21, 2018 4:46 am

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

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

Postby russ » Sun Apr 22, 2018 7:26 am

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.
russ
 
Posts: 40
Joined: Sun Oct 29, 2017 8:12 am

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

Postby freddy » Mon Apr 23, 2018 2:26 am

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

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

Postby Classical Modder » Mon Apr 23, 2018 12:46 pm

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.
{SoH} Clan Leader // http://sohclan.forumotion.com/
See my Strasbourg map project here.
GSC: diamondback67
Steam: diamondback67
Classical Modder
 
Posts: 412
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada

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

Postby russ » Mon Apr 23, 2018 1:49 pm

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.
russ
 
Posts: 40
Joined: Sun Oct 29, 2017 8:12 am

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

Postby Classical Modder » Mon Apr 23, 2018 6:01 pm

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.
{SoH} Clan Leader // http://sohclan.forumotion.com/
See my Strasbourg map project here.
GSC: diamondback67
Steam: diamondback67
Classical Modder
 
Posts: 412
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada

PreviousNext

Return to 1942 Modding Discussion

Who is online

Users browsing this forum: No registered users and 15 guests

cron