<!--QuoteBegin-Kieron+--><div class='quotetop'>QUOTE(Kieron)</div><div class='quotemain'><!--QuoteEBegin-->oh <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/blush.gif" style="vertical-align:middle" emoid="

ops" border="0" alt="blush.gif" />:
is it definitely? it's just that i followed the code from controlsinitpc.c onwards, and found that the following function seems to be triggered by the control <b>ChrCamCameraSwitch</b>:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->void locCameraSwitch()
{
if(locCameraEnableFree == false) return;
string controlName = GetEventData();
if(controlName != "ChrCamCameraSwitch") return;
if(locCameraCurMode != LOCCAMERA_FREE)
{
locCameraFree();
}else{
locCameraFollow();
}
}<!--c2--></div><!--ec2-->
so it switches between locCameraFree and locCameraFollow, which made me think locCameraFree was the `1st-person` camera, despite the name.<!--QuoteEnd--></div><!--QuoteEEnd-->
Initially I drew the same conclusion, cause this codesection is in fact the only one connected to the "ChrCamCameraSwitch" which switches to FPV. But actually this codesection is a special case that runs only if the cheat "Free view" is enabled. It makes the "Change View Key" switch to the free birdview if locCameraEnableFree is true. You can easily check that if you outcomment this line:
// if(locCameraEnableFree == false) return;
FPV seems to be a special case of locCameraFollow cause every time you pass a door this section from characters_events.c runs, and the final locCameraFollow does NOT switch FPV off.
case "camdetector":
// CCC -->
if(LOC_CAMERA)
{
locAttr = "locators.camera." + locator;
if(CheckAttribute(loc, locAttr) != 0)
{
x = MakeFloat(loc.(locAttr).x);
y = MakeFloat(loc.(locAttr).y);
z = MakeFloat(loc.(locAttr).z);
locCameraToPos(x, y, z, false);
}
}
else { locCameraFollow(); }
// CCC <--
break;
But I have found so far no code dealing with FPV, neither by following the "Change View Key" code nor by the "Draw Sword Key" track. Both `dead-end` in SendMessage( commands which may lead to hardcoded sections <img src="http://www.piratesahoy.com/forum/style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid="

" border="0" alt="sad.gif" />