mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Hook is renamed to HOOK_USEANIMOBJ.
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
#define HOOK_SETGLOBALVAR (29)
|
||||
#define HOOK_RESTTIMER (30)
|
||||
#define HOOK_GAMEMODECHANGE (31)
|
||||
#define HOOK_USEANIMOBJ (32)
|
||||
|
||||
//Valid arguments to list_begin
|
||||
#define LIST_CRITTERS (0)
|
||||
|
||||
@@ -509,13 +509,13 @@ int arg1 - event type: 1 - when the player exits the game, 0 - otherwise
|
||||
|
||||
-------------------------------------------
|
||||
|
||||
HOOK_USEOBJECTMAP (hs_useobjectmap.int)
|
||||
HOOK_USEANIMOBJ (hs_useanimobj.int)
|
||||
|
||||
Runs before the uses animation the map object (or walking/running animation if the player is at a distance from the object).
|
||||
Hook allows to override the usage animation.
|
||||
|
||||
Critter arg1 - critter that uses an object (usually dude_obj)
|
||||
Obj arg2 - the map object that is used
|
||||
int arg3 - animation code (see define.h)
|
||||
int arg3 - animation code (ANIM_* see Animcomd.h)
|
||||
|
||||
int ret1 - pass the animation code to override the animation, or pass -1 to skip the usage animation
|
||||
|
||||
Reference in New Issue
Block a user