Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
surfaces.h File Reference

Go to the source code of this file.

Enumerations

enum  SurfaceWalkEffect { SURFACE_WALK_FX_STANDARD , SURFACE_WALK_FX_SPARKLE }
 

Functions

void player_surface_spawn_fx (void)
 
void surface_set_walk_effect (s32 effect)
 Select the type of surface effect spawned by the player while moving The effect is reset between maps, so include this in the Main script for every map you wish to change.
 

Enumeration Type Documentation

◆ SurfaceWalkEffect

Enumerator
SURFACE_WALK_FX_STANDARD 
SURFACE_WALK_FX_SPARKLE 

Definition at line 6 of file surfaces.h.

6 {
7 SURFACE_WALK_FX_STANDARD, // puffs of dust follow the player
8 SURFACE_WALK_FX_SPARKLE, // trail of sparkles follow the player, only used in hos_02 in vanilla
9};
@ SURFACE_WALK_FX_STANDARD
Definition surfaces.h:7
@ SURFACE_WALK_FX_SPARKLE
Definition surfaces.h:8

Function Documentation

◆ player_surface_spawn_fx()

void player_surface_spawn_fx ( void )

Definition at line 42 of file surfaces.c.

42 {
43 s32 surfaceType = SURFACE_TYPE_DEFAULT;
44
46 surfaceType = PrevSurfaceType;
47 }
48
50
52 surfaceType = PrevSurfaceType;
53 }
54
57 }
58
60
61 switch (surfaceType) {
64 break;
67 break;
70 break;
73 break;
76 break;
77 default:
79 break;
80 }
81}
@ SURFACE_TYPE_HEDGES
used within hedge maze in flo_11
Definition enums.h:4679
@ SURFACE_TYPE_DEFAULT
Definition enums.h:4670
@ SURFACE_TYPE_SNOW
Definition enums.h:4678
@ SURFACE_TYPE_WATER
Definition enums.h:4671
@ SURFACE_TYPE_CLOUD
used with clouds in flo_19 and flo_21
Definition enums.h:4677
@ SURFACE_TYPE_FLOWERS
Definition enums.h:4676
@ PS_FLAG_ACTION_STATE_CHANGED
Definition enums.h:3084
@ COLLIDER_FLAGS_SURFACE_TYPE_MASK
Definition enums.h:4693
@ ACTION_STATE_JUMP
Definition enums.h:2430
@ ACTION_STATE_LAND
Definition enums.h:2437
s32 get_collider_flags(s32 colliderID)
Definition collision.c:481
void player_surface_spawn_water_fx(void)
Definition surfaces.c:348
void player_surface_spawn_cloud_fx(void)
Definition surfaces.c:240
void player_surface_spawn_hedges_fx(void)
Definition surfaces.c:322
BSS s32 PrevTimeInAir
Definition surfaces.c:11
void player_surface_spawn_flower_fx(void)
Definition surfaces.c:195
BSS s32 LandedTimeInAir
Definition surfaces.c:12
void player_surface_spawn_snow_fx(void)
Definition surfaces.c:294
s32 PrevSurfaceType
Definition surfaces.c:14
void player_surface_spawn_basic_fx(void)
Definition surfaces.c:83
CollisionStatus gCollisionStatus
Definition 7BB60.c:6
PlayerStatus gPlayerStatus
Definition 77480.c:39

◆ surface_set_walk_effect()

void surface_set_walk_effect ( s32 effect)

Select the type of surface effect spawned by the player while moving The effect is reset between maps, so include this in the Main script for every map you wish to change.

Parameters
typeenum value from SurfaceWalkEffect

Definition at line 18 of file surfaces.c.

18 {
19 SurfaceWalkEffectType = effect;
20}
s32 SurfaceWalkEffectType
Definition surfaces.c:16

Referenced by load_map_by_IDs().