Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 4.90 KB | None | 0 0
  1.  
  2. ACTION tb_actions1[2] =  {
  3.                             {
  4.                                 NULL,                           // fire_plan
  5.  
  6.                                 {0, 0.0f},                      // change_direction
  7.                                 {0, 0.0f},                      // change_speed
  8.                                 {0.0f, 0.00f, 0.0f},            // direction_speed
  9.  
  10.                                 1.0f,                           // wait
  11.                                 0,                              // repeat
  12.                                 0                               // vanish
  13.                             },
  14.                             {
  15.                                 NULL,
  16.  
  17.                                 {0, 0.0f},
  18.                                 {0, 0.0f},
  19.                                 {0.0f, 0.0f, 0.0f},
  20.  
  21.                                 0.0f,
  22.                                 0,
  23.                                 1
  24.                             }
  25.                         };
  26.  
  27. BULLET tb1 =    {
  28.                     &shot00,                            //mesh
  29.                     0,                                  //active
  30.  
  31.                     {0.0f, 0.0f, 0.0f},                 //position
  32.                     {0.0f, 0.0f, 0.0f},                 //force
  33.  
  34.                     {0.0f, 0.0f, 0.0f},                 //direction_speed
  35.                     {0.0f, 0.0f, 0.0f},                 //add_direction_speed
  36.  
  37.                     2,                                  //actions_count
  38.                     tb_actions1,                        //actions
  39.                     NULL,                               //action_now
  40.  
  41.                     NULL,                               //params_counter
  42.                     0,                                  //action_counter
  43.                     0,                                  //repeat_counter
  44.  
  45.                     NULL                                //ml_reference
  46.                 };
  47.  
  48. FIRE_PLAN t_fp =    {
  49.                         2,                                      // mode
  50.                         10, 20,                                 // inc_count | azi_count
  51.                         HALF_PI/30.0f, TWO_PI/20.0f,            // inc_add | azi_add
  52.                         10.0f, 0.0f,                            // inc_spd_add | azi_spd_add
  53.  
  54.                         TRUE,                                   // confirm_rotate
  55.                         -HALF_PI/2.0f, HALF_PI,                 // inc_rotate | azi_rotation
  56.  
  57.                         &tb1                                    // bullet_reference
  58.                     };
  59.  
  60. ACTION tb_actions[3] =  {
  61.                             {
  62.                                 NULL,                           // fire_plan
  63.  
  64.                                 {0, 0.0f},                      // change_direction
  65.                                 {0, 0.0f},                      // change_speed
  66.                                 {0.0f, 0.00f, 0.0f},            // direction_speed
  67.  
  68.                                 1.0f,                           // wait
  69.                                 0,                              // repeat
  70.                                 0                               // vanish
  71.                             },
  72.                             {
  73.                                 &t_fp,
  74.  
  75.                                 {2, 0.0f},
  76.                                 {0, 0.0f},
  77.                                 {0.0, 0.0f, 0.0f},
  78.  
  79.                                 8.0f,
  80.                                 0,
  81.                                 1
  82.                             },
  83.                             {
  84.                                 NULL,
  85.  
  86.                                 {0, 0.0f},
  87.                                 {0, 0.0f},
  88.                                 {0.0f, 0.0f, 0.0f},
  89.  
  90.                                 0.0f,
  91.                                 0,
  92.                                 1
  93.                             }
  94.                         };
  95.  
  96. BULLET tb =     {
  97.                     &shot01,                            //mesh
  98.                     0,                                  //active
  99.  
  100.                     {0.0f, 0.0f, 0.0f},                 //position
  101.                     {0.0f, 0.0f, 0.0f},                 //force
  102.  
  103.                     {0.0f, 0.0f, 50.0f},                //direction_speed
  104.                     {0.0f, 0.0f, 0.0f},                 //add_direction_speed
  105.  
  106.                     3,                                  //actions_count
  107.                     tb_actions,                         //actions
  108.                     NULL,                               //action_now
  109.  
  110.                     NULL,                               //params_counter
  111.                     0,                                  //action_counter
  112.                     0,                                  //repeat_counter
  113.  
  114.                     NULL                                //ml_reference
  115.                 };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement