Skip to content
VTrider edited this page Aug 1, 2025 · 10 revisions

This page details the provided enums with Extra Utilities (symbolic constants to be used with certain functions to make the code clearer)

DO NOT USE THE RAW VALUES, your code will be unreadable, they are only here for transparency

Camera

exu.CAMERA = {
    -- Camera types
    FIRST_PERSON = 0x100, 
    THIRD_PERSON = 0x101,

    -- View modes
    COCKPIT = 1, -- F1
    NO_COCKPIT = 2, -- F2
    CHASE = 4, -- F3
    ORBIT = 5, -- F4
    NO_HUD = 3, -- F5
    EDITOR = 6, -- F9
    CHEAT_SATELLITE = 7, -- F10
    FREECAM = 9, -- F11

    TOGGLE_SATELLITE = 8, -- this code is used when satellite is activated with the 9 key
    TERRAIN_EDIT = 0x2A, -- CTRL+E
}

Defaults

exu.DEFAULTS = {
    CAMERA_MIN_ZOOM = 0.99,
    CAMERA_MAX_ZOOM = 1.6,
    COEFF_BALLISTIC = 4.9,
    GRAVITY_VECTOR = SetVector(0, -9.8, 0),
    RETICLE_RANGE = 200,
    SAT_MAX_ZOOM = 8,
    SAT_MIN_ZOOM = 2,
    SAT_PAN_SPEED = 1250
}

Difficulty

exu.DIFFICULTY = {
    VERY_EASY = 0,
    EASY = 1,
    MEDIUM = 2,
    HARD = 3,
    VERY_HARD = 4
}

Ogre

exu.OGRE = {
    HEADLIGHT_COLOR = {
        R = 1.0,
        G = 1.0,
        B = 1.0
    },
    HEADLIGHT_RANGE = {
        INNER_ANGLE = 0.1745,
        OUTER_ANGLE = 0.3490,
        FALLOFF = 1.0
    }
}

Ordnance

exu.ORDNANCE = {
    ODF: string = 0,            -- The odf that corresponds to the ordnance
    TRANSFORM: matrix = 1,      -- The current transform of the ordnance
    INIT_TRANSFORM: matrix = 2, -- The initial transform of the ordnance when it was spawned/shot
    OWNER: handle = 3,          -- The handle of the ordnance's owner (usually who shot it unless it's been spawned manually, then it could be anything)
    INIT_TIME: number = 4,      -- The time that the ordnance was spawned/shot
}

Radar

exu.RADAR= {
    MINIMAP = 0,
    RADAR = 1
}

Satellite

exu.SATELLITE = {
    DISABLED = 0,
    ENABLED = 1
}

Clone this wiki locally