Skip to content

Commit

Permalink
Merge pull request #523 from Michael0933/MONSTER_InitVertexColors
Browse files Browse the repository at this point in the history
[MONSTER]: Implement MONSTER_InitVertexColors
  • Loading branch information
Gh0stBlade authored Jan 27, 2024
2 parents 3538e06 + a773bca commit 0459ca4
Showing 1 changed file with 11 additions and 19 deletions.
30 changes: 11 additions & 19 deletions KAIN2/Game/MONSTER/MONSTER.C
Original file line number Diff line number Diff line change
Expand Up @@ -1586,28 +1586,20 @@ void ProcessBloodyMess(struct _Instance *instance, int vertidx, int segidx, int
}


// autogenerated function stub:
// void /*$ra*/ MONSTER_InitVertexColors(struct _Instance *instance /*$s1*/, struct _Model *model /*$s0*/)
void MONSTER_InitVertexColors(struct _Instance *instance, struct _Model *model)
{ // line 3017, offset 0x8008c030
/* begin block 1 */
// Start line: 3018
// Start offset: 0x8008C030
// Variables:
int i; // $s0
CVECTOR *ptr; // $v0
/* end block 1 */
// End offset: 0x8008C084
// End Line: 3027
void MONSTER_InitVertexColors(struct _Instance* instance, struct _Model* model) // Matching - 100%
{
int i;
CVECTOR* ptr;

/* begin block 2 */
// Start line: 6403
/* end block 2 */
// End Line: 6404
UNIMPLEMENTED();
instance->perVertexColor = (CVECTOR*)MEMPACK_Malloc(model->numVertices * 4, 33);
ptr = instance->perVertexColor;
for (i = model->numVertices; i != 0; i--)
{
*(long*)ptr = 0xFFFFFF;
ptr++;
}
}


// autogenerated function stub:
// int /*$ra*/ MONSTER_StartVertexBlood(struct _Instance *instance /*$s2*/, struct _SVector *location /*$s0*/, int amount /*$s4*/)
int MONSTER_StartVertexBlood(struct _Instance *instance, struct _SVector *location, int amount)
Expand Down

0 comments on commit 0459ca4

Please sign in to comment.