[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 » Mon Apr 23, 2018 10:01 pm

Out of curiosity, what actions did you test?
russ
 
Posts: 43
Joined: Sun Oct 29, 2017 8:12 am

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

Postby Swaffy » Tue Apr 24, 2018 5:42 am

I can't even find the code for the damn thing, hah ...
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Image
User avatar
Swaffy
 
Posts: 1705
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 » Tue Apr 24, 2018 5:55 am

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

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

Postby freddy » Wed Apr 25, 2018 2:14 am

I think it atleast needs ObjectTemplate.mass # if its to interact with other objects
User avatar
freddy
 
Posts: 1230
Joined: Sun Oct 18, 2009 4:58 pm

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

Postby Classical Modder » Wed Apr 25, 2018 2:45 am

freddy wrote:I think it atleast needs ObjectTemplate.mass # if its to interact with other objects


Not necessarily: viewtopic.php?f=6&t=18076
{SoH} Clan Leader // http://sohclan.forumotion.com/
See my Strasbourg map project here.
GSC: diamondback67
Steam: diamondback67
Classical Modder
 
Posts: 417
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada

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

Postby Swaffy » Thu Apr 26, 2018 2:38 am

Classical Modder wrote:
freddy wrote:I think it atleast needs ObjectTemplate.mass # if its to interact with other objects


Not necessarily: viewtopic.php?f=6&t=18076

give the flag a mass just for the sake of testing, you never know...
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Image
User avatar
Swaffy
 
Posts: 1705
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 Classical Modder » Thu Apr 26, 2018 3:36 am

Swaffy wrote:
Classical Modder wrote:
freddy wrote:I think it atleast needs ObjectTemplate.mass # if its to interact with other objects


Not necessarily: viewtopic.php?f=6&t=18076

give the flag a mass just for the sake of testing, you never know...


Fine lol, but I know it won't work
{SoH} Clan Leader // http://sohclan.forumotion.com/
See my Strasbourg map project here.
GSC: diamondback67
Steam: diamondback67
Classical Modder
 
Posts: 417
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada

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

Postby Swaffy » Thu Apr 26, 2018 10:16 pm

SPOILER
Image
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Image
User avatar
Swaffy
 
Posts: 1705
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 Classical Modder » Sun Oct 14, 2018 6:22 pm

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):

Code: Select all
NetworkableInfo.createNewInfo FlagBodyInfo
NetworkableInfo.setHasOrientation 1
NetworkableInfo.setBasePriority c_NIGhostAlways
NetworkableInfo.setPredictionMode PMNone


The Flag object has different Network Info compared to a regular PCO. If we take the Jeep for example, this is what we get:

Code: Select all
NetworkableInfo.createNewInfo WillyEngineInfo
NetworkableInfo.setPredictionMode PMLinear


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

Previous

Return to 1942 Modding Discussion

Who is online

Users browsing this forum: No registered users and 23 guests

cron