static VOID RA3_UnitInit( ra3UNIT_BALL *Uni, ra3ANIM *Ani ) { Uni->Pos = VecSet(Rnd0() * 1024, Rnd0() * 768, 0); Uni->TimerShift = Rnd1() * 59; Uni->TimerSpeed = Rnd1() * 8; Uni->Color = RGB (0, 12, 12); } /* End of 'RA3_UnitInit' function */
static VOID RA3_UnitInit( ra3UNIT_LUIGI *Uni, ra3ANIM *Ani ) { Uni->Pos = VecSet( Rnd1() * 2, Rnd1() * 2, Rnd1() * 2); Uni->TimerShift = Rnd1() * 30; Uni->TimerSpeed = 0; RA3_RndObjLoad(&Uni->Luigi, "mario\\luigi.g3d"); } /* End of 'RA3_UnitInit' function */
/* Unit cube initialization function. * ARGUMENTS: * - self-pointer to unit object: * sa2UNIT_CUBE *Uni; * - animation context: * sa2ANIM *Ani; * RETURNS: None. */ static VOID SA2_UnitInit( sa2UNIT_CUBE *Uni, sa2ANIM *Ani ) { Uni->Pos = VecSet(/*Rnd0() * 5, Rnd0() * 5, Rnd0() * 5*/0, 0, -5); Uni->TimerShift = Rnd1() * 59; Uni->TimerSpeed = Rnd1() * 8; SA2_RndObjLoad(&Uni->Obj, "modela\\dodge.g3d"); } /* End of 'SA2_UnitInit' function */
/* Unit cube initialization function. * ARGUMENTS: * - self-pointer to unit object: * vk3UNIT_CUBE *Uni; * - animation context: * vk3ANIM *Ani; * RETURNS: None. */ static VOID VK3_UnitInit( vk3UNIT_CUBE *Uni, vk3Anim *Ani ) { Uni->Pos = VecSet(Rnd0() * 5, Rnd0() * 5, Rnd0() * 5); Uni->TimerShift = Rnd1() * 59; Uni->TimerSpeed = Rnd1() * 8; } /* End of ‘VK3_UnitInit' function */
/* Unit cube initialization function. * ARGUMENTS: * - self-pointer to unit object: * ra3UNIT_CUBE *Uni; * - animation context: * ra3ANIM *Ani; * RETURNS: None. */ static VOID RA3_UnitInit( ra3UNIT_CUBE *Uni, ra3ANIM *Ani ) { Uni->Pos = VecSet(Rnd0() * 5, Rnd0() * 5, Rnd0() * 5); Uni->TimerShift = Rnd1() * 59; Uni->TimerSpeed = Rnd1() * 8; } /* End of 'RA3_UnitInit' function */