ubi.com    Forums  Hop To Forum Categories  Far Cry  Hop To Forums  Far Cry Community Creativity Forum    Changing Water Buoyancy?
Go
New
Find
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Posted
I'm making a mod which takes place underwater in the far cry engine. My biggest problem thus far is that every entity in the game has a natural tendency to float to the top! I tried the built in shark entity, along with other built in entities, and they all float to the top of the water in my map, no matter where their starting position is.

So I dug into the code, which I have become somewhat familiar with over the course of developing my mod. First instinct told me to change the mass of my fish entity, since that's what effects buoyancy in real life. I went into SCRIPTS\Default\Entities\AI and changed it in my entity AI script where the mass setting resides. To make a long story short, it didn't work!

Then I came across this code at line 205 in SCRIPTS\Default\Entities\PLAYER\BasicPlayer.lua

 
Posts: 0 | Registered: Sun November 26 2006Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

ubi.com    Forums  Hop To Forum Categories  Far Cry  Hop To Forums  Far Cry Community Creativity Forum    Changing Water Buoyancy?

Terms of Use