Freedom Reborn Archive

Freedom Force Forums => Scripting Forum => Topic started by: Conduit on March 13, 2007, 05:02:56 PM

Title: Turning off SKx Camera
Post by: Conduit on March 13, 2007, 05:02:56 PM
I recently upgraded ffx on a mod I'm working on.  As a result, Skx camera is automatically used in all of the cutscenes.  It looks really cool, but I really don't think it fits the mod.  So, how do I turn it off?
Title: Re: Turning off SKx Camera
Post by: catwhowalksbyhimself on March 13, 2007, 05:08:15 PM
Yea, I've had that same issue.

It's called only in m25ai related files.  You'll have to look and find the references, but I think it's called ones in the main file and once in a different one.  Why it's called twice, I don't know.
Title: Re: Turning off SKx Camera
Post by: M25 on March 13, 2007, 05:33:56 PM
It's imported in m25ai.py and in m25cutscene.py which are completely different files with different uses. 
You can disable the imports and then disable the initialization in m25ai.InitScripts()


Alternately, I believe you can go into the skXcamera2.py file and disable the overrides.

comment out


speakInternal = fSkXCameraspeakInternal
ff.speakInternal = fSkXCameraspeakInternal

lookAtObject = fSkXCameralookAtObject
ff.lookAtObject = fSkXCameralookAtObject

lookAtMarker = fSkXCameralookAtMarker
ff.lookAtMarker = fSkXCameralookAtMarker

lookAtPos = fSkXCameralookAtPos
ff.lookAtPos = fSkXCameralookAtPos

endCS = fSkXCameraendCS
ff.endCS = fSkXCameraendCS

try:
ff.cshelper.speakInternal = fSkXCameraspeakInternal
ff.cshelper.lookAtObject = fSkXCameralookAtObject
ff.cshelper.lookAtMarker = fSkXCameralookAtMarker
ff.cshelper.lookAtPos = fSkXCameralookAtPos
ff.cshelper.endCS = fSkXCameraendCS
except:
pass

[\code]
Title: Re: Turning off SKx Camera
Post by: Conduit on March 13, 2007, 06:10:14 PM
That worked for me.  Thanks.