Added new HOOK_CARTRAVEL #90

This commit is contained in:
phobos2077
2017-04-15 21:59:18 +07:00
parent 0af8010861
commit 629641eb96
7 changed files with 97 additions and 19 deletions
+1
View File
@@ -48,6 +48,7 @@
#define HOOK_INVENWIELD (25)
#define HOOK_ADJUSTFID (26)
#define HOOK_COMBATTURN (27)
#define HOOK_CARTRAVEL (28)
//Valid arguments to list_begin
#define LIST_CRITTERS (0)
+14
View File
@@ -464,3 +464,17 @@ int arg3 - unknown boolean argument
int ret1 - pass 1 at the start of turn to skip the turn, pass -1 at the end of turn to force end of combat
-------------------------------------------
HOOK_CARTRAVEL (hs_cartravel.int)
Runs continously during worldmap travel on car.
int arg1 - vanilla car speed (between 3 and 8 "steps")
int arg2 - vanilla fuel consumption (100 and below)
int ret1 - car speed override (pass -1 if you just want to override fuel consumption)
int ret2 - fuel consumption override