Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
SpyGuy.h
Go to the documentation of this file.
1#include "common.h"
2#include "sprite/npc/SpyGuy.h"
3
4#define SPY_GUY_DROPS \
5{ \
6 .dropFlags = NPC_DROP_FLAG_80, \
7 .itemDropChance = 5, \
8 .itemDrops = { \
9 { ITEM_FIRE_FLOWER, 2, 0 }, \
10 { ITEM_THUNDER_RAGE, 2, 0 }, \
11 { ITEM_THUNDER_BOLT, 2, 0 }, \
12 { ITEM_DUSTY_HAMMER, 2, 0 }, \
13 { ITEM_PEBBLE, 2, 0 }, \
14 }, \
15 .heartDrops = STANDARD_HEART_DROPS(3), \
16 .flowerDrops = STANDARD_FLOWER_DROPS(2), \
17 .minCoinBonus = 0, \
18 .maxCoinBonus = 3, \
19}
20
21#define SPY_GUY_ANIMS \
22{ \
23 .idle = ANIM_SpyGuy_Anim02, \
24 .walk = ANIM_SpyGuy_Anim04, \
25 .run = ANIM_SpyGuy_Anim05, \
26 .chase = ANIM_SpyGuy_Anim04, \
27 .anim_4 = ANIM_SpyGuy_Anim02, \
28 .anim_5 = ANIM_SpyGuy_Anim02, \
29 .death = ANIM_SpyGuy_Anim0B, \
30 .hit = ANIM_SpyGuy_Anim0B, \
31 .anim_8 = ANIM_SpyGuy_Anim15, \
32 .anim_9 = ANIM_SpyGuy_Anim16, \
33 .anim_A = ANIM_SpyGuy_Anim02, \
34 .anim_B = ANIM_SpyGuy_Anim02, \
35 .anim_C = ANIM_SpyGuy_Anim02, \
36 .anim_D = ANIM_SpyGuy_Anim02, \
37 .anim_E = ANIM_SpyGuy_Anim02, \
38 .anim_F = ANIM_SpyGuy_Anim02, \
39}
40
41#define SPY_GUY_ROCK_ANIMS \
42{ \
43 .idle = ANIM_SpyGuy_Anim10, \
44 .walk = ANIM_SpyGuy_Anim10, \
45 .run = ANIM_SpyGuy_Anim10, \
46 .chase = ANIM_SpyGuy_Anim10, \
47 .anim_4 = ANIM_SpyGuy_Anim10, \
48 .anim_5 = ANIM_SpyGuy_Anim10, \
49 .death = ANIM_SpyGuy_Anim10, \
50 .hit = ANIM_SpyGuy_Anim10, \
51 .anim_8 = ANIM_SpyGuy_Anim10, \
52 .anim_9 = ANIM_SpyGuy_Anim10, \
53 .anim_A = ANIM_SpyGuy_Anim10, \
54 .anim_B = ANIM_SpyGuy_Anim10, \
55 .anim_C = ANIM_SpyGuy_Anim10, \
56 .anim_D = ANIM_SpyGuy_Anim10, \
57 .anim_E = ANIM_SpyGuy_Anim10, \
58 .anim_F = ANIM_SpyGuy_Anim10, \
59}
60
61#define SPY_GUY_ROCK_HITBOX(npcID) \
62{ \
63 .id = npcID, \
64 .settings = &N(NpcSettings_SpyGuyRock), \
65 .pos = { NPC_DISPOSE_LOCATION }, \
66 .yaw = 90, \
67 .flags = ENEMY_FLAG_IGNORE_WORLD_COLLISION | ENEMY_FLAG_IGNORE_ENTITY_COLLISION | ENEMY_FLAG_FLYING | ENEMY_FLAG_NO_DROPS, \
68 .drops = NO_DROPS, \
69 .territory = { \
70 .wander = { \
71 .isFlying = TRUE, \
72 .moveSpeedOverride = NO_OVERRIDE_MOVEMENT_SPEED, \
73 .wanderShape = SHAPE_CYLINDER, \
74 .centerPos = { NPC_DISPOSE_LOCATION }, \
75 .wanderSize = { 0 }, \
76 .detectShape = SHAPE_CYLINDER, \
77 .detectPos = { NPC_DISPOSE_LOCATION }, \
78 .detectSize = { 0 }, \
79 } \
80 }, \
81 .animations = SPY_GUY_ROCK_ANIMS, \
82}