Docs menu · Hook points: Ratchet & Clank+

    Reference · SDK 1.11.0

    Hook points

    Functions of Ratchet & Clank your mod can take over: 685 in all, 48 of them stable

    Hook points

    Start with: · · · · ·

    48 hook points

    rac1.player.take_damage

    Takes hit points off the hero's health: at most one a call, none for 0, then the HUD's health bank. Every hit the hero takes goes through it but the instant kills (falls, crushers), which set his health to 0.

    void take_damage(int32_t amount)

    Also named Hero_TakeDamage · Discs: PAL, NTSC

    Start a mod with it

    Do something, call the original, maybe do more after.

    main.luau
    openrac.hook("rac1.player.take_damage", function(original, amount)
        -- before: change an argument, count a call, ...
        original(amount)
        -- after
    end)

    Name it in your manifest too: "hooks": ["rac1.player.take_damage"]. Open it in the manifest builder

    Fields

    Game state a script reads and writes by name: openrac.fields.hero.position.x. Experimental: these name the game's internals and follow the decompilation.

    NameTypeWhat it is
    hero.position.xf32Where the hero is (gHeroPos).
    hero.position.yf32
    hero.position.zf32
    hero.facingf32The way he faces (rot.z), in radians.
    hero.move_yawf32Where the stick moves him: the stick's angle plus the camera's yaw.
    hero.statei32read-onlyHis state: 0 standing, 2 running, 7 jumping, ...
    boltsi32The player's bolts.

    Generated from sdk/bindings/rac1.json at sdk-v1.11.0. Edit this page or report a problem.