Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsJedi Knight and Mysteries of the Sith Editing Forum → Simple Problem
Simple Problem
2005-07-21, 5:07 PM #1
How you you keep projectiles from curving when they enter water? :confused:
visit my project

"I wonder to myself. Why? Simply why? Why why? Why do I ask why? Why do I need to find out why? Why do I have to ask why as a question? Why is why always used to find out why? Why is the answer to why always why? Why is there no final answer to why? Simply why not? Holy cow, this is pretty deep, meaningful **** I wrote. Glad I wrote it down. Oh man."
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ [slog], Echoman
2005-07-21, 5:33 PM #2
The problem, if fixable, lies in the template, perhaps buoyancy [buoyancy is not in the bryarbolt template, so unlikely it is the problem] or mass, or maybe a thing/type flag (maybe the 'creates splash' thing flag?)
If nothing else, it can be fixed through a cog pulse (setThingLVec() and SetThingVel() )
May the mass times acceleration be with you.
2005-07-21, 11:16 PM #3
[QUOTE=Darth Slaw]The problem, if fixable, lies in the template, perhaps buoyancy [buoyancy is not in the bryarbolt template, so unlikely it is the problem] or mass, or maybe a thing/type flag (maybe the 'creates splash' thing flag?)
If nothing else, it can be fixed through a cog pulse (setThingLVec() and SetThingVel() )[/QUOTE]
I think it is indeed buoyancy. It's just not in the bryarbolt template, because the bryarbolt takes it from it's parent (_weapon). Try to overwrite it in your own template and see if it has any effect.
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2005-07-22, 1:06 AM #4
I set buoyancy to 0.000001 and 0.000000 and it didn't seem to change anything.
visit my project

"I wonder to myself. Why? Simply why? Why why? Why do I ask why? Why do I need to find out why? Why do I have to ask why as a question? Why is why always used to find out why? Why is the answer to why always why? Why is there no final answer to why? Simply why not? Holy cow, this is pretty deep, meaningful **** I wrote. Glad I wrote it down. Oh man."
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ [slog], Echoman
2005-07-22, 3:55 AM #5
Is it something to do with the splash: message perhaps?
That is triggered when an object enters the water if it has the object flag of 0x20000000 set. You could either check the cog for the bryar bolt for that message, or check the bryarbolt template for that flag.
2005-07-22, 3:56 AM #6
Bouyancy to me suggests it controls whether or not it will sink. The bending under the water isn't to do with bouyancy, as it's a refraction effect upon entering the water, not a constant upthrust.
2005-07-22, 4:19 AM #7
Originally posted by Giraffe:
Bouyancy to me suggests it controls whether or not it will sink. The bending under the water isn't to do with bouyancy, as it's a refraction effect upon entering the water, not a constant upthrust.

You are right. It's similar to airdrag, just for water sectors.
I'm not sure about correcting the bending through cog, though. Projectiles usually have to be synchronized, so you'd have to use c/s coding to do the trick.
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2005-07-22, 9:08 AM #8
Originally posted by zagibu:
I think it is indeed buoyancy. It's just not in the bryarbolt template, because the bryarbolt takes it from it's parent (_weapon). Try to overwrite it in your own template and see if it has any effect.

No, buoyancy is not in the bryarbolt template nor the _weapon template.

Another note -- I was observing the bryarbolt fired down in the water, and its lookvector didn't change, only the downward velocity (which was reduced)... :confused:

Maybe there's some JK-determined buoyancy determined by JK based on mass... or maybe not, since there's no problems if you fire the bolt while you are underwater... hmmm...
May the mass times acceleration be with you.
2005-07-22, 9:44 AM #9
Isn't it great when you come home and notice that all your posts during the day were complete nonsense? C/S coding is not needed, because the bolts are in sync before the calculation. So, as long as the same calculations are used on every client, the bolts will remain in sync.
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)

↑ Up to the top!