mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-08-17 21:03:21 -04:00
Discover play_music_continuously AI command
This commit is contained in:
@@ -3747,11 +3747,15 @@
|
||||
0x00, \
|
||||
u2,
|
||||
|
||||
// Only called in AF1 with param 0x35.
|
||||
// Calls some functions and stores the value at 800840c8.
|
||||
#define cmd01da(u1) \
|
||||
/**
|
||||
* Unsure exactly how this works. I think it replaces the main level theme with
|
||||
* the one specified.
|
||||
*
|
||||
* Track is expected to be a MUSIC constant.
|
||||
*/
|
||||
#define play_music_continuously(track) \
|
||||
mkshort(0x01da), \
|
||||
u1,
|
||||
track,
|
||||
|
||||
/**
|
||||
* Kills the given chr.
|
||||
|
||||
@@ -324,6 +324,9 @@
|
||||
#define CHRHFLAG_40000000 0x40000000 // Air Base and AF1
|
||||
#define CHRHFLAG_PSYCHOSISED 0x80000000
|
||||
|
||||
// chr->hidden2
|
||||
#define CHRH2FLAG_0001 0x0001
|
||||
|
||||
// chr->chrflags
|
||||
#define CHRCFLAG_00000001 0x00000001 // Villa takers, Attack Ship Cass and skedar - both set at end of intros
|
||||
#define CHRCFLAG_00000002 0x00000002 // Seems to be set on guards who can spawn clones?
|
||||
|
||||
@@ -437,7 +437,7 @@
|
||||
/*0x01d7*/ bool aiIfDistanceToTarget2LessThan(void);
|
||||
/*0x01d8*/ bool aiIfDistanceToTarget2GreaterThan(void);
|
||||
/*0x01d9*/ bool ai01d9(void);
|
||||
/*0x01da*/ bool ai01da(void);
|
||||
/*0x01da*/ bool aiPlayMusicContinuously(void);
|
||||
/*0x01db*/ bool aiChrKill(void);
|
||||
/*0x01dc*/ bool aiRemoveWeaponFromInventory(void);
|
||||
/*0x01dd*/ bool ai01dd(void);
|
||||
|
||||
Reference in New Issue
Block a user