Advertisement
Guest User

PiNE Snake UpSmash

a guest
Oct 20th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.02 KB | None | 0 0
  1. ACMD("BATTLE_OBJECT_CATEGORY_FIGHTER", "FIGHTER_KIND_SNAKE", "attack_hi4", "game_attackhi4",
  2.          [](ACMD *acmd) -> void {
  3.              if (acmd->is_excute())
  4.              {
  5.                  ArticleModule::remove_exist(acmd->module_accessor, 0, FIGHTER_SNAKE_GENERATE_ARTICLE_TRENCHMORTAR);
  6.              }
  7.              acmd->frame(4);
  8.              if (acmd->is_excute())
  9.              {
  10.                  //friction_off(acmd->module_accessor);
  11.                  //KineticModule::set_consider_ground_friction(acmd->module_accessor, false, 0);
  12.                  ArticleModule::generate_article(acmd->module_accessor, FIGHTER_SNAKE_GENERATE_ARTICLE_TRENCHMORTAR, false, 0);
  13.                  //acmd->wrap(as_hash__const, { L2CValue(FIGHTER_SNAKE_GENERATE_ARTICLE_TRENCHMORTAR), L2CValue(hash40("start")) });
  14.                  ArticleModule::change_motion(acmd->module_accessor, hash40("start"), acmd->module_accessor, false, 0.0);
  15.              }
  16.              acmd->frame(11);
  17.              if (acmd->is_excute())
  18.              {
  19.                  acmd->ATTACK(yadda yadda);
  20.                  acmd->ATTACK(bla bla bla);
  21.                  
  22.              }
  23.              acmd->wait(2);
  24.              if (acmd->is_excute())
  25.              {
  26.                  AttackModule::clear_all(acmd->module_accessor);
  27.              }
  28.              acmd->frame(25);
  29.              if (acmd->is_excute())
  30.              {
  31.                  WorkModule::on_flag(acmd->module_accessor, /*Flag*/ FIGHTER_STATUS_ATTACK_FLAG_START_SMASH_HOLD);
  32.              }
  33.              acmd->frame(30);
  34.              if (acmd->is_excute())
  35.              {
  36.                  //acmd->wrap(as_hash__const, { L2CValue(FIGHTER_SNAKE_GENERATE_ARTICLE_TRENCHMORTAR), L2CValue(hash40("shoot")) });
  37.                  ArticleModule::generate_article(acmd->module_accessor, FIGHTER_SNAKE_GENERATE_ARTICLE_TRENCHMORTAR, false, 0);
  38.                  ArticleModule::change_motion(acmd->module_accessor, hash40("shoot"), acmd->module_accessor, false, 0.0);
  39.              }
  40.              acmd->frame(57);
  41.              if (acmd->is_excute())
  42.              {
  43.                  ArticleModule::remove_exist(acmd->module_accessor, 0, FIGHTER_SNAKE_GENERATE_ARTICLE_TRENCHMORTAR);
  44.                  //friction_on(acmd->module_accessor);
  45.                  //KineticModule::set_consider_ground_friction(acmd->module_accessor, true, 1);
  46.              }
  47.          }),
  48.  
  49.     ACMD("BATTLE_OBJECT_CATEGORY_FIGHTER", "FIGHTER_KIND_SNAKE", "attack_hi4charge", "game_attackhi4charge",
  50.          [](ACMD *acmd) -> void {
  51.              if (acmd->is_excute())
  52.              {
  53.                 ArticleModule::generate_article(acmd->module_accessor, FIGHTER_SNAKE_GENERATE_ARTICLE_TRENCHMORTAR, false, 0);
  54.                 ArticleModule::change_motion(acmd->module_accessor, hash40("hold"), acmd->module_accessor, false, 0.0);
  55.                  //acmd->wrap(as_hash__const, {L2CValue(FIGHTER_SNAKE_GENERATE_ARTICLE_TRENCHMORTAR), L2CValue(hash40("hold"))});
  56.                  //ArticleModule::change_motion(acmd->module_accessor);
  57.              }
  58.          })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement