Fix GRAPH_RENDER_FLAGS_SIZE + Add OBJ_FLAG_OCCLUDE_SILHOUETTE + name Bowser 1 painting dl's
This commit is contained in:
1 parent
3af946e2bd
commit
f8a9eaea4b
18 files changed
+104
-106
No files matched your search
@@ -58,25 +58,25 @@ void bhv_water_bomb_spawner_update(void) {
|
||||
}
|
||||
}
|
||||
|
||||
static struct SpawnParticlesInfo sWaterBombExplodeParticles = {
|
||||
/* behParam: */ 0,
|
||||
/* count: */ 5,
|
||||
/* model: */ MODEL_BUBBLE,
|
||||
/* offsetY: */ 20,
|
||||
/* forwardVelBase: */ 20,
|
||||
/* forwardVelRange: */ 60,
|
||||
/* velYBase: */ 10,
|
||||
/* velYRange: */ 10,
|
||||
/* gravity: */ -2,
|
||||
/* dragStrength: */ 0,
|
||||
/* sizeBase: */ 35.0f,
|
||||
/* sizeRange: */ 10.0f,
|
||||
};
|
||||
|
||||
/**
|
||||
* Spawn particles when the water bomb explodes.
|
||||
*/
|
||||
void water_bomb_spawn_explode_particles(s8 offsetY, s8 forwardVelRange, s8 velYBase) {
|
||||
static struct SpawnParticlesInfo sWaterBombExplodeParticles = {
|
||||
/* behParam: */ 0,
|
||||
/* count: */ 5,
|
||||
/* model: */ MODEL_BUBBLE,
|
||||
/* offsetY: */ 20,
|
||||
/* forwardVelBase: */ 20,
|
||||
/* forwardVelRange: */ 60,
|
||||
/* velYBase: */ 10,
|
||||
/* velYRange: */ 10,
|
||||
/* gravity: */ -2,
|
||||
/* dragStrength: */ 0,
|
||||
/* sizeBase: */ 35.0f,
|
||||
/* sizeRange: */ 10.0f,
|
||||
};
|
||||
|
||||
sWaterBombExplodeParticles.offsetY = offsetY;
|
||||
sWaterBombExplodeParticles.forwardVelRange = forwardVelRange;
|
||||
sWaterBombExplodeParticles.velYBase = velYBase;
|
||||
@@ -165,26 +165,25 @@ static void water_bomb_act_explode(void) {
|
||||
obj_mark_for_deletion(o);
|
||||
}
|
||||
|
||||
static struct SpawnParticlesInfo sWaterBombCannonParticle = {
|
||||
/* behParam: */ 0,
|
||||
/* count: */ 1,
|
||||
/* model: */ MODEL_BUBBLE,
|
||||
/* offsetY: */ 236,
|
||||
/* forwardVelBase: */ 20,
|
||||
/* forwardVelRange: */ 5,
|
||||
/* velYBase: */ 0,
|
||||
/* velYRange: */ 0,
|
||||
/* gravity: */ -2,
|
||||
/* dragStrength: */ 0,
|
||||
/* sizeBase: */ 20.0f,
|
||||
/* sizeRange: */ 5.0f,
|
||||
};
|
||||
|
||||
/**
|
||||
* Despawn after 100 frames.
|
||||
*/
|
||||
static void water_bomb_act_shot_from_cannon(void) {
|
||||
|
||||
static struct SpawnParticlesInfo sWaterBombCannonParticle = {
|
||||
/* behParam: */ 0,
|
||||
/* count: */ 1,
|
||||
/* model: */ MODEL_BUBBLE,
|
||||
/* offsetY: */ 236,
|
||||
/* forwardVelBase: */ 20,
|
||||
/* forwardVelRange: */ 5,
|
||||
/* velYBase: */ 0,
|
||||
/* velYRange: */ 0,
|
||||
/* gravity: */ -2,
|
||||
/* dragStrength: */ 0,
|
||||
/* sizeBase: */ 20.0f,
|
||||
/* sizeRange: */ 5.0f,
|
||||
};
|
||||
|
||||
if (o->oTimer > 100) {
|
||||
obj_mark_for_deletion(o);
|
||||
} else {
|
||||
|
||||
+1
-2
@@ -2713,8 +2713,7 @@ void set_camera_mode(struct Camera *c, s16 mode, s16 frames) {
|
||||
*/
|
||||
void update_lakitu(struct Camera *c) {
|
||||
struct Surface *floor = NULL;
|
||||
Vec3f newPos;
|
||||
Vec3f newFoc;
|
||||
Vec3f newPos, newFoc;
|
||||
f32 distToFloor;
|
||||
s16 newYaw;
|
||||
|
||||
|
||||
@@ -333,6 +333,12 @@ void geo_append_display_list(void *displayList, s32 layer) {
|
||||
case LAYER_ALPHA: layer = LAYER_SILHOUETTE_ALPHA; break;
|
||||
}
|
||||
}
|
||||
if (gCurGraphNodeObject->node.flags & GRAPH_RENDER_OCCLUDE_SILHOUETTE) {
|
||||
switch (layer) {
|
||||
case LAYER_OPAQUE: layer = LAYER_OCCLUDE_SILHOUETTE_OPAQUE; break;
|
||||
case LAYER_ALPHA: layer = LAYER_OCCLUDE_SILHOUETTE_ALPHA; break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
@@ -360,7 +366,7 @@ void inc_mat_stack() {
|
||||
|
||||
void append_dl_and_return(struct GraphNodeDisplayList *node) {
|
||||
if (node->displayList != NULL) {
|
||||
geo_append_display_list(node->displayList, node->node.flags >> 8);
|
||||
geo_append_display_list(node->displayList, GET_GRAPH_NODE_LAYER(node->node.flags));
|
||||
}
|
||||
if (node->node.children != NULL) {
|
||||
geo_process_node_and_siblings(node->node.children);
|
||||
|
||||
Reference in new issue
Block a user