Skip to content

Commit

Permalink
exposing more vitrual functions and hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Auto committed Sep 12, 2024
1 parent c417296 commit b9acb98
Show file tree
Hide file tree
Showing 9 changed files with 236 additions and 120 deletions.
10 changes: 10 additions & 0 deletions docs/game_data/lua_enums.txt
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,14 @@ ENTITY_OVERRIDE = {
ACTIVATE = 25,
APPLY_FRICTION = 84,
APPLY_METADATA = 28,
APPLY_MOVEMENT = 71,
APPLY_VELOCITY = 42,
ATTACK = 46,
BREAK_BLOCK = 86,
CALCULATE_JUMP_VELOCITY = 40,
CAN_BE_PICKED_UP_BY = 68,
CAN_BE_PUSHED = 10,
CAN_BREAK_BLOCK = 85,
CAN_ENTER = 46,
CAN_JUMP = 37,
CHECK_OUT_OF_BOUNDS = 58,
Expand All @@ -353,6 +358,7 @@ ENTITY_OVERRIDE = {
FLOOR_UPDATE = 38,
FREEZE = 52,
FRICTION = 19,
GENERATE_FALL_POOF_PARTICLES = 82,
GENERATE_STOMP_DAMAGE_PARTICLES = 8,
GET_COLLISION_INFO = 38,
GET_DAMAGE = 43,
Expand All @@ -362,8 +368,10 @@ ENTITY_OVERRIDE = {
HIDE_HUD = 41,
INIT = 36,
INITIALIZE = 75,
INSTAKILL_DEATH = 92,
IS_IN_LIQUID = 12,
IS_ON_FIRE = 45,
IS_POWERUP_CAPABLE = 74,
IS_UNLOCKED = 45,
KILL = 3,
LEDGE_GRAB = 31,
Expand All @@ -377,6 +385,7 @@ ENTITY_OVERRIDE = {
PICKED_UP_BY = 68,
PICK_UP = 67,
PROCESS_INPUT = 78,
RELEASE = 81,
REMOVE_ITEM = 21,
RESET_DRAW_DEPTH = 18,
SET_AS_SOUND_SOURCE = 20,
Expand All @@ -391,6 +400,7 @@ ENTITY_OVERRIDE = {
STOOD_ON = 32,
STUN = 51,
THROWN_BY = 62,
THROWN_INTO = 47,
TRIGGER_ACTION = 24,
UPDATE_STATE_MACHINE = 2,
WALKED_OFF = 30,
Expand Down
99 changes: 72 additions & 27 deletions docs/game_data/spel2.lua

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion docs/src/includes/_enums.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ Name | Data | Description
[APPLY_VELOCITY](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.APPLY_VELOCITY) | 42 |
[GET_DAMAGE](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.GET_DAMAGE) | 43 |
[IS_ON_FIRE](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.IS_ON_FIRE) | 45 |
[ATTACK](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.ATTACK) | 46 |
[THROWN_INTO](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.THROWN_INTO) | 47 |
[DAMAGE](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.DAMAGE) | 48 |
[ON_HIT](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.ON_HIT) | 49 |
[GET_DAMAGE_SOUND](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.GET_DAMAGE_SOUND) | 50 |
Expand All @@ -277,15 +279,22 @@ Name | Data | Description
[THROWN_BY](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.THROWN_BY) | 62 |
[CLONED_TO](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.CLONED_TO) | 63 |
[PICK_UP](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.PICK_UP) | 67 |
[PICKED_UP_BY](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.PICKED_UP_BY) | 68 |
[CAN_BE_PICKED_UP_BY](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.CAN_BE_PICKED_UP_BY) | 68 |
[DROP](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.DROP) | 69 |
[COLLECT_TREASURE](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.COLLECT_TREASURE) | 70 |
[APPLY_MOVEMENT](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.APPLY_MOVEMENT) | 71 |
[IS_POWERUP_CAPABLE](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.IS_POWERUP_CAPABLE) | 74 |
[INITIALIZE](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.INITIALIZE) | 75 |
[PROCESS_INPUT](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.PROCESS_INPUT) | 78 |
[PICKED_UP](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.PICKED_UP) | 80 |
[RELEASE](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.RELEASE) | 81 |
[GENERATE_FALL_POOF_PARTICLES](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.GENERATE_FALL_POOF_PARTICLES) | 82 |
[FALL](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.FALL) | 83 |
[APPLY_FRICTION](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.APPLY_FRICTION) | 84 |
[CAN_BREAK_BLOCK](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.CAN_BREAK_BLOCK) | 85 |
[BREAK_BLOCK](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.BREAK_BLOCK) | 86 |
[CRUSH](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.CRUSH) | 90 |
[INSTAKILL_DEATH](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.INSTAKILL_DEATH) | 92 |
[FLOOR_UPDATE](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.FLOOR_UPDATE) | 38 |
[ENTER_ATTEMPT](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.ENTER_ATTEMPT) | 40 |
[HIDE_HUD](https://github.com/spelunky-fyi/overlunky/search?l=Lua&q=ENTITY_OVERRIDE.HIDE_HUD) | 41 |
Expand Down
Loading

0 comments on commit b9acb98

Please sign in to comment.