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
Out of curiosity, what actions did you test?
Re: Fixing the CTF flag object so it doesn't fall through me
I can't even find the code for the damn thing, hah ...
(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
I don't mean the code, I mean what did you try? Shooting at it? Throwing grenades at it? Pushing it with a jeep? etc.
Re: Fixing the CTF flag object so it doesn't fall through me
I think it atleast needs ObjectTemplate.mass # if its to interact with other objects
-
- Posts: 590
- Joined: Mon Oct 01, 2012 3:13 pm
- Location: Canada
- Contact:
Re: Fixing the CTF flag object so it doesn't fall through me
Not necessarily: http://bfmods.com/viewtopic.php?f=6&t=18076freddy wrote:I think it atleast needs ObjectTemplate.mass # if its to interact with other objects
See my Strasbourg map project here.
Re: Fixing the CTF flag object so it doesn't fall through me
give the flag a mass just for the sake of testing, you never know...Classical Modder wrote:Not necessarily: http://bfmods.com/viewtopic.php?f=6&t=18076freddy wrote:I think it atleast needs ObjectTemplate.mass # if its to interact with other objects
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
-
- Posts: 590
- Joined: Mon Oct 01, 2012 3:13 pm
- Location: Canada
- Contact:
Re: Fixing the CTF flag object so it doesn't fall through me
Fine lol, but I know it won't workSwaffy wrote:give the flag a mass just for the sake of testing, you never know...Classical Modder wrote:Not necessarily: http://bfmods.com/viewtopic.php?f=6&t=18076freddy wrote:I think it atleast needs ObjectTemplate.mass # if its to interact with other objects
See my Strasbourg map project here.
Re: Fixing the CTF flag object so it doesn't fall through me
SPOILER
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
-
- Posts: 590
- Joined: Mon Oct 01, 2012 3:13 pm
- Location: Canada
- Contact:
Re: Fixing the CTF flag object so it doesn't fall through me
So today I was looking at the Network.con file for the Flag object and I came across this:
(Taken from Objects/Items/Flag/Network.con):
The Flag object has different Network Info compared to a regular PCO. If we take the Jeep for example, this is what we get:
I am not sure, but I think the NetworkableInfo.setBasePriority c_NIGhostAlways line tells the Flag object to essentially be a ghost, i.e., it doesn't interact with the environment (except for the terrain). I will try to remove that line and change the PredictionMode to PMLinear and see if it changes anything. So far I think this is the best clue we have as to why the Flag object doesn't interact with anything.
(Taken from Objects/Items/Flag/Network.con):
Code: Select all
NetworkableInfo.createNewInfo FlagBodyInfo
NetworkableInfo.setHasOrientation 1
NetworkableInfo.setBasePriority c_NIGhostAlways
NetworkableInfo.setPredictionMode PMNone
Code: Select all
NetworkableInfo.createNewInfo WillyEngineInfo
NetworkableInfo.setPredictionMode PMLinear
See my Strasbourg map project here.
Re: Fixing the CTF flag object so it doesn't fall through me
Sorry man, it's hardcoded. The position of the flag gets set to the position of the "vehicle" that dropped it, and the height gets set to the height of the terrain at that point (plus 1.5). You might be able to combine it with some other object so it interacts after that, but there's nothing that can be done short of patching the executable that will change the drop position.