Hook is renamed to HOOK_USEANIMOBJ.

This commit is contained in:
Mr.Stalin
2018-06-20 21:21:46 +03:00
parent 35a94b5418
commit d4a501d813
6 changed files with 11 additions and 10 deletions
+1
View File
@@ -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)
+2 -2
View File
@@ -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