• kHares
    #393
    Tip to desactive camera centering when selecting a unit ( but let
    camera centers on it if you double click on its face)

    1) unpack system.xbg with Rick's tool (http://www.ufo-
    extraterrestrials.com/forum/viewtopic.php?t=1576)
    2) make a backup of data\man.xscr file
    3) edit data\man.xscr file with a decent text editor (vim for exemple)

    and remplace lignes 2728 and 2729 which are :
    Code:
    if (!isUnitVisible(unit))
    flyCameraTo(unit);

    by this :
    Code:
    //if (!isUnitVisible(unit))
    //flyCameraTo(unit);

    (or just suppress those 2 lines, it's the same thing...)
    _____________________________
    Another tip for camera : to impediatly centers camera on a selected
    unit instead of a slow scroll :
    1) still in data\man.xscr find the 2676 line and remplace
    Code:
    flyCameraTo(unit);
    by
    Code:
    centerCameraOnObj(unit, true);
    ______________________________
    yet another camera tip : if you don't want the camera follow a soldier
    when he is moving (and only for soldiers : when an alien is moving,
    camera will still follow him). Although, if a soldier encounter an
    alien, camera will center on him.
    1) backup and open soldiers.xscr
    2) find the line 200
    3) replace
    Code:
    bool center = true;
    by
    Code:
    bool center = false;

    látószög : Const.xscr-fileban átírni :
    const float SIGHT_H_ANGLE = PI/3.5;
    const float SIGHT_V_ANGLE = PI/3.5; na ezeket 2.5 vagy amire akarod átírni