Jump to content

Strange collision problem


Gordon_G

Recommended Posts

Hello.

So, I've made a little building with 3ds max, dff and txd works fine but there is a bug in the collision file.

This is my code :

-- CLIENT 

_models = {
	{"mapA","mapA","mapA",1784}
}

for k,v in pairs( _models ) do
	local dff, txd, col, id = unpack( v )
	if col then
		local col_ = engineLoadCOL ( "models/"..col..".col" )
        engineReplaceCOL ( col_, id )
	end
	if txd then
		local txd_ = engineLoadTXD ( "models/"..txd..'.txd' )
        engineImportTXD ( txd_, id )
	end
	if dff then
		local dff_ = engineLoadDFF ( "models/"..dff..".dff"  )
        engineReplaceModel ( dff_, id )
	end
	engineSetModelLODDistance( id, 500 )
end

This is my meta.xml :

<meta>
    <info author="Gordon_G" name="modls" version="1.0" type="script" />
    <file src="models/mapA.dff" /> <file src="models/mapA.txd" /> <file src="models/mapA.col" />
    <script src="models/model.replace.lua" type="client" />
</meta>

Here, this is my collision file in coleditor : 

Spoiler

393786colfile.png

And, when I'm in game : 

Spoiler

276034mtascreen20170727182910.png

When I'm running in the arrow sense, it's like if there was an invisible wall. But, there is no wall in the coleditor. It's not a shift between the dff and col because the other walls has good collisions.

Any help ? I can upload my files if it can help.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...