Batch #17140 by ragnarok-clanker: 250 byte-identical, 218 confirmed by peer review. - fn_03093 EffectResourceSwitcher::SetNames: logic confirmed by peer review - fn_03097 EffectResourceSwitcher::OnProcess: logic confirmed by peer review - fn_03154 CSkillAction_DamageWereRaptorForm::SpawnAttack02Effect: logic confirmed by peer review - fn_03155 CSkillAction_DamageWereRaptorForm::PlayFormAttackEffect: logic confirmed by peer review (already on main) - fn_03156 CSkillAction_DamageWereWolfForm::PlayFormAttackEffect: logic confirmed by peer review (already on main) - fn_03157 CSkillAction_Icing::SpawnIcing: logic confirmed by peer review (already on main) - fn_03158 CSkillAction_ThunderingBasic::PlayThunderEffect: logic confirmed by peer review (already on main) - fn_03159 CSkillAction_ThunderingExpand::PlayThunderEffect: logic confirmed by peer review (already on main) - fn_03160 CSkillAction_DamageWereRaptorForm::SpawnDirectionalEffect: logic confirmed by peer review - fn_03177 CEfstAction_BasicAction::OnEfstBegin: logic confirmed by peer review - fn_03179 CSkillAction_Icing::OnSkillCast: byte-identical - fn_03180 CSkillAction_Thundering::OnSkillCast: logic confirmed by peer review (already on main) - fn_03185 CEfstAction_AnimalForm::ResetAnimalForm: logic confirmed by peer review (already on main) - fn_03188 CSkillAction_AT_ALPHA_CLAW::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03192 CSkillAction_AT_PULSE_OF_MADNESS::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03196 CSkillAction_AT_FRENZY_FANG::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03200 CSkillAction_AT_PINION_SHOT::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03205 CSkillAction_AT_QUILL_SPEAR::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03206 CSkillAction_AT_QUILL_SPEAR_S::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03210 CSkillAction_AT_NATURE_HARMONY::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03217 CSkillAction_AT_GRAVITY_HOLE::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03219 CSkillAction_AT_CHILLING_BLAST::OnSkillEffect: logic confirmed by peer review - fn_03222 CSkillObjectAction_AT_GLACIER_MONOLITH::OnSkillObjectCreate: logic confirmed by peer review - fn_03223 CSkillObjectAction_AT_GLACIER_MONOLITH::OnSkillObjectRemove: logic confirmed by peer review - fn_03225 CSkillAction_AT_GLACIER_NOVA::OnGroundSkillEffect: logic confirmed by peer review (already on main) - fn_03226 CSkillAction_AT_GLACIER_SHARD::OnGroundSkillCast: logic confirmed by peer review (already on main) - fn_03227 CSkillAction_AT_GLACIER_SHARD::OnSkillEffect: logic confirmed by peer review - fn_03229 CSkillAction_AT_GLACIER_STOMP::OnSkillEffect: logic confirmed by peer review - fn_03231 CSkillAction_AT_ROARING_CHARGE::OnSkillEffect: logic confirmed by peer review - fn_03233 CSkillAction_AT_ROARING_CHARGE_S::OnSkillEffect: logic confirmed by peer review - fn_03234 CSkillAction_AT_ROARING_PIERCER::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03235 CSkillAction_AT_ROARING_PIERCEER_S::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03237 CSkillAction_AT_FURIOS_STORM::OnSkillEffect: logic confirmed by peer review - fn_03243 CSkillAction_AT_ALPHA_PHASE::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03247 CSkillAction_AT_APEX_PHASE::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03251 CSkillAction_AT_FLIP_FLAP::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03256 CSkillAction_AT_AERO_SYNC::OnSkillEffect: logic confirmed by peer review - fn_03259 CEfstAction_FLIP_FLAP_TARGET::OnEfstBegin: logic confirmed by peer review (already on main) - fn_03261 CSkillAction_AT_SAVAGE_LUNGE::OnSkillEffect: logic confirmed by peer review - fn_03264 CSkillAction_AT_TEMPEST_FLAP::OnSkillCast: logic confirmed by peer review (already on main) - fn_03265 CSkillAction_AT_TEMPEST_FLAP::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03267 CSkillAction_AT_TERRA_HARVEST::OnSkillEffect: logic confirmed by peer review - fn_03268 CSkillAction_AT_TERRA_WAVE::OnGroundSkillEffect: logic confirmed by peer review (already on main) - fn_03270 CSkillAction_AT_SOLID_STOMP::OnSkillEffect: logic confirmed by peer review - fn_03274 CEfstAction_ZEPHYR_LINK::OnEfstBegin: logic confirmed by peer review - fn_03277 CEfstAction_INSANE::OnEfstBegin: logic confirmed by peer review - fn_03280 CEfstAction_INSANE2::OnEfstBegin: logic confirmed by peer review - fn_03281 CEfstAction_INSANE3::OnEfstBegin: logic confirmed by peer review - fn_03327 CSkillAction_AT_PRIMAL_CLAW::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03329 CSkillAction_AT_FERAL_CLAW::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03341 CSkillAction_KR_DOUBLE_SLASH::OnSkillEffect: logic confirmed by peer review - fn_03343 CSkillAction_KR_NASTY_SLASH::OnSkillEffect: logic confirmed by peer review - fn_03347 CSkillAction_KR_CLAW_WAVE::OnGroundSkillEffect: logic confirmed by peer review - fn_03349 CSkillAction_KR_EARTH_DRILL::OnSkillHit: logic confirmed by peer review - fn_03351 CSkillAction_KR_EARTH_STAMP::OnGroundSkillEffect: logic confirmed by peer review - fn_03354 CSkillAction_KR_GROUND_BLOOM::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03355 CSkillAction_KR_THUNDERING_CALL::OnSkillEffect: logic confirmed by peer review - fn_03356 CSkillAction_KR_THUNDERING_CALL_S::OnSkillEffect: logic confirmed by peer review - fn_03358 CSkillAction_KR_THUNDERING_FOCUS::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03360 CSkillAction_KR_THUNDERING_FOCUS_S::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03361 CSkillAction_KR_THUNDERING_ORB::OnGroundSkillEffect: logic confirmed by peer review - fn_03362 CSkillAction_KR_THUNDERING_ORB_S::OnGroundSkillEffect: logic confirmed by peer review - fn_03363 CSkillAction_KR_ICE_SPLASH::OnSkillEffect: logic confirmed by peer review - fn_03366 CSkillObjectAction_KR_ICE_PILLAR::OnSkillObjectCreate: logic confirmed by peer review - fn_03369 CSkillAction_KR_FEATHER_SPRINKLE::OnSkillEffect: logic confirmed by peer review - fn_03374 CSkillAction_KR_SHARPEN_GUST::OnSkillEffect: logic confirmed by peer review - fn_03378 CSkillAction_KR_SHARPEN_HAIL::OnSkillCast: logic confirmed by peer review - fn_03379 CSkillAction_KR_SHARPEN_HAIL::OnSkillEffect: logic confirmed by peer review - fn_03384 CSkillAction_KR_IRON_HOWLING::OnSkillEffect: logic confirmed by peer review - fn_03390 CSkillAction_KR_TYPHOON_WING::OnGroundSkillEffect: logic confirmed by peer review - fn_03396 CEfstAction_WIND_VEIL::OnEfstBegin: logic confirmed by peer review - fn_03400 CSkillAction_SKID_KR_CHOP_CHOP::OnSkillEffect: logic confirmed by peer review (already on main) - fn_03436 CMapSkyMgr::CreateClouds: logic confirmed by peer review (already on main) - fn_04459 CSkillAction_DR_WERERAPTOR::OnSkillEffect: logic confirmed by peer review - fn_04466 CSkillAction_DR_ENRAGE_WOLF::OnSkillEffect: logic confirmed by peer review - fn_04472 CSkillAction_DR_BLOOD_HOWLING::OnSkillEffect: logic confirmed by peer review - fn_04476 CSkillAction_DR_NOMERCY_CLAW::OnSkillEffect: logic confirmed by peer review - fn_04478 CSkillAction_DR_HUNGER::OnSkillEffect: logic confirmed by peer review - fn_04479 CSkillAction_DR_HUNGER::OnSkillHit: logic confirmed by peer review - fn_04481 CSkillAction_DR_CRUEL_BITE::OnSkillEffect: logic confirmed by peer review - fn_04485 CSkillAction_DR_ENRAGE_RAPTOR::OnSkillEffect: logic confirmed by peer review - fn_04491 CSkillAction_DR_PREENING::OnSkillEffect: logic confirmed by peer review - fn_04495 CSkillAction_DR_SHOOTING_FEATHER::OnSkillEffect: logic confirmed by peer review (already on main) - fn_04498 CSkillAction_DR_FLICKING_TONADO::OnSkillEffect: logic confirmed by peer review - fn_04500 CSkillAction_DR_LOW_FLIGHT::OnSkillEffect: logic confirmed by peer review - fn_04504 CSkillAction_DR_NATURE_SHIELD::OnSkillEffect: logic confirmed by peer review - fn_04522 CSkillAction_DR_TRUTH_OF_EARTH::OnSkillEffect: logic confirmed by peer review - fn_04528 CSkillAction_DR_TRUTH_OF_ICE::OnSkillEffect: logic confirmed by peer review (already on main) - fn_04534 CSkillAction_DR_TRUTH_OF_WIND::OnSkillEffect: logic confirmed by peer review - fn_04540 CSkillAction_DR_CUTTING_WIND::OnSkillEffect: logic confirmed by peer review - fn_04541 CSkillAction_DR_CUTTING_WIND::OnSkillDamage: logic confirmed by peer review - fn_04545 CSkillAction_DR_WIND_BOMB::OnSkillEffect: logic confirmed by peer review - fn_04546 CSkillAction_DR_WIND_BOMB::OnSkillDamage: logic confirmed by peer review - fn_04547 CSkillAction_DR_AROUND_FLOWER::OnSkillEffect: logic confirmed by peer review - fn_04548 CSkillAction_DR_EARTH_FLOWER::OnSkillEffect: logic confirmed by peer review (already on main) - fn_04549 CSkillAction_DR_ICE_CLOUD::OnSkillEffect: logic confirmed by peer review - fn_04550 CSkillAction_DR_ICE_TOTEM::OnSkillEffect: logic confirmed by peer review - fn_04552 CSkillAction_DR_WEREWOLF::OnSkillEffect: logic confirmed by peer review - fn_05551 CEnchantMgr::HandleEnchantResult: logic confirmed by peer review - fn_07446 CShowEffect::Add: logic confirmed by peer review - fn_08326 CEfstAction_ChangeSize::OnEfstBegin: byte-identical (already on main) - fn_08329 CEfstAction_GenderChange::OnEfstBegin: byte-identical - fn_08330 CEfstAction_GenderChange::OnEfstEnd: logic confirmed by peer review - fn_08332 CEfstAction_ShowEffect::OnEfstBegin: byte-identical (already on main) - fn_08336 CSkillAction_RA_UNLIMIT::OnSkillEffect: byte-identical - fn_08337 CEfstAction_UNLIMIT::OnEfstBegin: logic confirmed by peer review - fn_08340 CSkillAction_AG_ENERGY_CONVERSION::OnSkillCast: logic confirmed by peer review - fn_08341 CSkillAction_AG_ENERGY_CONVERSION::OnSkillEffect: byte-identical - fn_08342 CSkillAction_CD_DIVINUS_FLOS::OnSkillCast: byte-identical - fn_08343 CSkillAction_CD_DIVINUS_FLOS::OnSkillEffect: byte-identical - fn_08344 CSkillAction_CD_DIVINUS_FLOS::OnSkillDamage: logic confirmed by peer review - fn_08345 CSkillAction_SHC_ENCHANTING_SHADOW::OnSkillCast: byte-identical - fn_08349 CSkillAction_SHC_IMPACT_CRATER::OnSkillEffect: byte-identical - fn_08350 CSkillAction_SHC_IMPACT_CRATER::OnSkillDamage: byte-identical - fn_08352 CSkillAction_SHC_CROSS_SLASH::OnSkillEffect: byte-identical - fn_08353 CSkillAction_SHC_CROSS_SLASH::OnSkillDamage: byte-identical - fn_08355 CSkillAction_SHC_DANCING_KNIFE::OnSkillCast: byte-identical - fn_08356 CSkillAction_SHC_DANCING_KNIFE::OnSkillDamage: byte-identical - fn_08357 CEfstAction_DANCING_KNIFE::OnEfstBegin: byte-identical - fn_08361 CSkillAction_SHC_SHADOW_STAB::OnSkillEffect: byte-identical - fn_08362 CSkillAction_SHC_SHADOW_STAB::OnSkillDamage: logic confirmed by peer review - fn_08363 CSkillAction_SHC_SHADOW_EXCEED::OnSkillCast: byte-identical - fn_08364 CSkillAction_SHC_SHADOW_EXCEED::OnSkillEffect: byte-identical - fn_08372 CSkillAction_ABC_CHASING_BREAK::OnSkillEffect: logic confirmed by peer review (already on main) - fn_08373 CSkillAction_ABC_CHASING_BREAK::OnSkillDamage: byte-identical - fn_08376 CSkillAction_ABC_CHASING_SHOT::OnSkillCast: byte-identical - fn_08377 CSkillAction_ABC_CHASING_SHOT::OnSkillEffect: logic confirmed by peer review (already on main) - fn_08378 CSkillAction_ABC_CHASING_SHOT::OnSkillHit: byte-identical - fn_08379 CSkillAction_ABC_CHASING_SHOT::OnSkillDamage: byte-identical - fn_08381 CSkillAction_ABC_HIT_AND_SLIDING::OnSkillDamage: byte-identical - fn_08382 CSkillAction_ABC_ABYSS_FLAME::OnSkillCast: byte-identical - fn_08383 CSkillAction_ABC_ABYSS_FLAME::OnSkillEffect: byte-identical - fn_08384 CSkillAction_ABC_ABYSS_FLAME::OnSkillDamage: byte-identical - fn_08386 CSkillAction_ABC_ABYSS_FLAME_ATK::OnSkillEffect: byte-identical - fn_08387 CSkillAction_ABC_ABYSS_FLAME_ATK::OnSkillDamage: byte-identical - fn_08388 CSkillAction_EM_PSYCHIC_STREAM::OnSkillCast: byte-identical - fn_08389 CSkillAction_EM_PSYCHIC_STREAM::OnSkillEffect: byte-identical - fn_08390 CSkillAction_EM_PSYCHIC_STREAM::OnSkillDamage: byte-identical - fn_08392 CSkillAction_IQ_BLAZING_FLAME_BLAST::OnSkillCast: byte-identical - fn_08393 CSkillAction_IQ_BLAZING_FLAME_BLAST::OnSkillEffect: byte-identical - fn_08394 CSkillAction_IQ_BLAZING_FLAME_BLAST::OnSkillDamage: logic confirmed by peer review - fn_08437 CSkillAction_BO_MAYHEMIC_THORNS::OnSkillCast: byte-identical (already on main) - fn_08438 CSkillAction_BO_MAYHEMIC_THORNS::OnSkillEffect: byte-identical - fn_08440 CSkillAction_BO_EXPLOSIVE_POWDER::OnSkillEffect: byte-identical - fn_08442 CSkillAction_BO_MYSTERY_POWDER::OnSkillEffect: byte-identical - fn_08443 CSkillAction_BO_MYSTERY_POWDER::OnSkillDamage: byte-identical - fn_08444 CEfstAction_MYSTERY_POWDER::OnEfstBegin: byte-identical - fn_08448 CSkillAction_BO_DUST_EXPLOSION::OnSkillDamage: byte-identical - fn_08449 DustExplosionSpawner::operator(): logic confirmed by peer review - fn_08450 CSkillAction_DK_VIGOR::OnSkillEffect: byte-identical - fn_08451 CEfstAction_VIGOR::OnEfstBegin: byte-identical - fn_08456 CSkillAction_DK_SERVANTWEAPON_ATK::OnSkillHit: byte-identical - fn_08457 CSkillAction_DK_SERVANTWEAPON_ATK::OnSkillDamage: byte-identical - fn_08461 CSkillAction_DK_SERVANT_W_PHANTOM::OnSkillDamage: logic confirmed by peer review - fn_08462 CEfstAction_SERVANT_SIGN::OnEfstBegin: byte-identical - fn_08468 CSkillAction_DK_SERVANT_W_PHANTOM::OnSkillHit: logic confirmed by peer review (already on main) - fn_08470 CSkillAction_DK_SERVANT_W_DEMOL::OnSkillHit: logic confirmed by peer review - fn_08471 CSkillAction_DK_SERVANT_W_DEMOL::OnSkillDamage: byte-identical - fn_08473 CSkillAction_DK_STORMSLASH::OnSkillEffect: logic confirmed by peer review - fn_08477 CSkillAction_DK_MADNESS_CRUSHER::OnSkillDamage: byte-identical - fn_08479 CSkillAction_DK_DRAGONIC_PIERCE::OnSkillCast: byte-identical - fn_08480 CSkillAction_DK_DRAGONIC_PIERCE::OnSkillEffect: logic confirmed by peer review (already on main) - fn_08481 CSkillAction_DK_DRAGONIC_PIERCE::OnSkillDamage: byte-identical - fn_08484 CSkillAction_DK_DRAGONIC_BREATH::OnSkillEffect: byte-identical - fn_08485 CSkillAction_DK_DRAGONIC_BREATH::OnSkillHit: logic confirmed by peer review - fn_08488 CSkillAction_DK_CHARGINGPIERCE::OnSkillEffect: byte-identical - fn_08490 CEfstAction_CHARGINGPIERCE_COUNT::OnEfstBegin: logic confirmed by peer review - fn_08493 CSkillAction_DK_HACKANDSLASHER::OnSkillEffect: byte-identical - fn_08494 CSkillAction_DK_HACKANDSLASHER::OnSkillDamage: byte-identical - fn_08496 CSkillAction_DK_HACKANDSLASHER_ATK::OnSkillDamage: byte-identical - fn_08498 CSkillAction_NPC_BLOCK_EXPLOSION::OnSkillEffect: byte-identical - fn_08500 CSkillAction_NPC_FROST_FIELD::OnSkillEffect: logic confirmed by peer review - fn_08501 CSkillAction_NPC_FROST_FIELD::OnSkillDamage: byte-identical - fn_08502 CEfstAction_FROST_STORM::OnEfstBegin: byte-identical - fn_08506 CSkillAction_NPC_LIGHTNING_JUDGEMENT::OnSkillEffect: logic confirmed by peer review - fn_08507 CSkillAction_NPC_LIGHTNING_JUDGEMENT::OnSkillDamage: byte-identical - fn_08508 CEfstAction_GROGGY::OnEfstBegin: byte-identical - fn_08511 CSkillAction_NPC_RESET_EFST::OnSkillEffect: logic confirmed by peer review - fn_08512 CEfstAction_TARGET_MARKER::OnEfstBegin: byte-identical - fn_08517 CSkillAction_NPC_AIMED_SHOWER::OnSkillEffect: logic confirmed by peer review - fn_08518 CSkillAction_NPC_AIMED_SHOWER::OnSkillDamage: byte-identical - fn_08520 CSkillAction_NPC_BLAZING_ERUPTION::OnSkillEffect: logic confirmed by peer review - fn_08522 CEfstAction_BLOCK_SEAL::OnEfstBegin: byte-identical - fn_08527 CSkillAction_HN_DOUBLEBOWLINGBASH::OnSkillEffect: byte-identical - fn_08530 CSkillAction_HN_MEGA_SONIC_BLOW::OnSkillEffect: byte-identical - fn_08533 CSkillAction_HN_SHIELD_CHAIN_RUSH::OnSkillEffect: byte-identical - fn_08536 CSkillAction_HN_SPIRAL_PIERCE_MAX::OnSkillEffect: logic confirmed by peer review - fn_08539 CSkillAction_HN_METEOR_STORM_BUSTER::OnGroundSkillEffect: logic confirmed by peer review (already on main) - fn_08544 CSkillAction_HN_JUPITEL_THUNDER_STORM::OnSkillEffect: byte-identical - fn_08547 CSkillAction_HN_JACK_FROST_NOVA::OnSkillCast: logic confirmed by peer review - fn_08550 CSkillObjectAction_HN_JACK_FROST_NOVA::OnSkillObjectCreate: byte-identical - fn_08551 CSkillObjectAction_HN_JACK_FROST_NOVA::OnSkillObjectRemove: byte-identical - fn_08554 CSkillAction_HN_HELLS_DRIVE::OnSkillEffect: logic confirmed by peer review - fn_08558 CSkillObjectAction_HN_GROUND_GRAVITATION::OnSkillObjectCreate: byte-identical - fn_08562 CSkillAction_HN_NAPALM_VULCAN_STRIKE::OnSkillHit: byte-identical - fn_08565 CSkillAction_HN_BREAKINGLIMIT::OnSkillEffect: byte-identical - fn_08566 CEfstAction_BREAKINGLIMIT::OnEfstBegin: byte-identical - fn_08571 CSkillAction_HN_RULEBREAK::OnSkillEffect: byte-identical - fn_08572 CEfstAction_RULEBREAK::OnEfstBegin: byte-identical - fn_08575 CSkillAction_HN_OVERCOMING_CRISIS::OnSkillEffect: byte-identical - fn_08579 CSkillAction_IG_CROSS_RAIN::OnSkillCast: byte-identical - fn_08581 CSkillObjectAction_IG_CROSS_RAIN::OnSkillObjectCreate: logic confirmed by peer review - fn_08583 CSkillAction_IG_GRAND_JUDGEMENT::OnSkillCast: byte-identical - fn_08584 CSkillAction_IG_GRAND_JUDGEMENT::OnSkillEffect: logic confirmed by peer review - fn_08585 CEfstAction_IG_GRAND_JUDGEMENT::OnEfstBegin: byte-identical - fn_08590 CSkillAction_IG_GUARDIAN_SHIELD::OnSkillEffect: byte-identical - fn_08591 CEfstAction_IG_GUARDIAN_SHIELD::OnEfstBegin: byte-identical - fn_08596 CSkillAction_IG_HOLY_SHIELD::OnSkillCast: byte-identical - fn_08597 CSkillAction_IG_HOLY_SHIELD::OnSkillEffect: byte-identical - fn_08598 CEfstAction_IG_HOLY_SHIELD::OnEfstBegin: byte-identical - fn_08604 CSkillAction_IG_JUDGEMENT_CROSS::OnSkillCast: byte-identical - fn_08605 CSkillAction_IG_JUDGEMENT_CROSS::OnSkillEffect: logic confirmed by peer review - fn_08606 CSkillAction_IG_JUDGEMENT_CROSS::OnSkillHit: byte-identical - fn_08607 CSkillAction_IG_JUDGEMENT_CROSS::OnSkillDamage: logic confirmed by peer review - fn_08609 CSkillAction_IG_OVERSLASH::OnSkillCast: byte-identical - fn_08610 CSkillAction_IG_OVERSLASH::OnSkillEffect: byte-identical - fn_08611 CSkillAction_IG_OVERSLASH::OnSkillDamage: byte-identical - fn_08612 CSkillAction_IG_REBOUND_SHIELD::OnSkillCast: byte-identical - fn_08613 CSkillAction_IG_REBOUND_SHIELD::OnSkillEffect: byte-identical - fn_08617 CSkillAction_IG_ULTIMATE_SACRIFICE::OnSkillEffect: byte-identical - fn_08618 CEfstAction_IG_ULTIMATE_SACRIFICE::OnEfstBegin: logic confirmed by peer review - fn_08622 CSkillAction_IG_IMPERIAL_CROSS::OnSkillEffect: byte-identical - fn_08623 CSkillAction_IG_IMPERIAL_CROSS::OnSkillDamage: byte-identical - fn_08625 CSkillAction_IG_RADIANT_SPEAR::OnSkillCast: byte-identical - fn_08626 CSkillAction_IG_RADIANT_SPEAR::OnSkillEffect: logic confirmed by peer review - fn_08627 CSkillAction_IG_RADIANT_SPEAR::OnSkillDamage: byte-identical - fn_08628 CSkillAction_IG_IMPERIAL_PRESSURE::OnSkillCast: byte-identical - fn_08629 CSkillAction_IG_IMPERIAL_PRESSURE::OnSkillEffect: byte-identical - fn_08630 CSkillAction_IG_IMPERIAL_PRESSURE::OnSkillDamage: byte-identical - fn_08632 CSkillAction_IG_SHIELD_SHOOTING::OnSkillCast: byte-identical - fn_08633 CSkillAction_IG_SHIELD_SHOOTING::OnSkillEffect: logic confirmed by peer review - fn_08634 CSkillAction_IG_SHIELD_SHOOTING::OnSkillDamage: byte-identical - fn_08636 CSkillAction_IG_ATTACK_STANCE::OnSkillCast: byte-identical - fn_08637 CSkillAction_IG_ATTACK_STANCE::OnSkillEffect: byte-identical - fn_08638 CEfstAction_IG_ATTACK_STANCE::OnEfstBegin: byte-identical - fn_08644 CSkillAction_IG_GUARD_STANCE::OnSkillCast: byte-identical - fn_08645 CSkillAction_IG_GUARD_STANCE::OnSkillEffect: byte-identical - fn_08646 CEfstAction_IG_GUARD_STANCE::OnEfstBegin: byte-identical - fn_08653 CSkillAction_MT_SPARK_BLASTER::OnSkillEffect: byte-identical - fn_08657 CSkillAction_MT_TRIPLE_LASER::OnSkillHit: byte-identical - fn_08659 CSkillAction_MT_MIGHTY_SMASH::OnSkillEffect: byte-identical - fn_08662 CSkillAction_MT_ENERGY_CANNONADE::OnSkillCast: byte-identical - fn_08663 CSkillAction_MT_ENERGY_CANNONADE::OnSkillEffect: byte-identical - fn_08664 CSkillAction_MT_ENERGY_CANNONADE::OnSkillHit: byte-identical - fn_08665 CSkillAction_MT_ENERGY_CANNONADE::OnSkillDamage: byte-identical - fn_08667 CSkillAction_MT_RUSH_STRIKE::OnSkillEffect: logic confirmed by peer review - fn_08668 CSkillAction_MT_RUSH_STRIKE::OnSkillDamage: byte-identical - fn_08670 CSkillAction_MT_POWERFUL_SWING::OnSkillEffect: logic confirmed by peer review - fn_08671 CSkillAction_MT_POWERFUL_SWING::OnSkillDamage: byte-identical - fn_08676 CSkillAction_NW_INTENSIVE_AIM::OnSkillEffect: byte-identical - fn_08677 CEfstAction_INTENSIVE_AIM_COUNT::OnEfstBegin: logic confirmed by peer review - fn_08680 CSkillAction_NW_GRENADE_FRAGMENT::OnSkillEffect: logic confirmed by peer review - fn_08683 CSkillAction_NW_THE_VIGILANTE_AT_NIGHT_GUN_GATLING::OnSkillEffect: logic confirmed by peer review - fn_08685 CSkillAction_NW_THE_VIGILANTE_AT_NIGHT_GUN_SHOTGUN::OnSkillEffect: logic confirmed by peer review - fn_08688 CSkillAction_NW_ONLY_ONE_BULLET::OnTargetSkillCast: byte-identical - fn_08689 CSkillAction_NW_ONLY_ONE_BULLET::OnSkillDamage: byte-identical - fn_08692 CSkillAction_NW_SPIRAL_SHOOTING::OnSkillEffect: byte-identical - fn_08695 CSkillAction_NW_MAGAZINE_FOR_ONE::OnSkillEffect: byte-identical - fn_08698 CSkillAction_NW_WILD_FIRE::OnGroundSkillEffect: logic confirmed by peer review (already on main) - fn_08702 CSkillAction_NW_BASIC_GRENADE::OnGroundSkillEffect: logic confirmed by peer review (already on main) - fn_08707 CSkillAction_NW_HASTY_FIRE_IN_THE_HOLE::OnGroundSkillEffect: logic confirmed by peer review - fn_08713 CSkillObjectAction_NW_GRENADES_DROPPING::OnSkillObjectCreate: byte-identical - fn_08716 CSkillAction_NW_AUTO_FIRING_LAUNCHER::OnSkillEffect: byte-identical - fn_08719 CSkillAction_NW_HIDDEN_CARD::OnSkillEffect: byte-identical - fn_08720 CEfstAction_HIDDEN_CARD::OnEfstBegin: byte-identical - fn_08727 CSkillObjectAction_NW_MISSION_BOMBARD::OnSkillObjectCreate: byte-identical - fn_08729 CSkillAction_NW_WILD_SHOT::OnSkillCast: byte-identical - fn_08730 CSkillAction_NW_WILD_SHOT::OnSkillEffect: logic confirmed by peer review - fn_08731 CSkillAction_NW_WILD_SHOT::OnSkillDamage: byte-identical - fn_08734 CSkillAction_NW_MIDNIGHT_FALLEN::OnSkillCast: byte-identical - fn_08735 CSkillAction_NW_MIDNIGHT_FALLEN::OnGroundSkillEffect: logic confirmed by peer review (already on main) - fn_08736 CSkillAction_NW_MIDNIGHT_FALLEN::OnSkillDamage: byte-identical - fn_08738 CEfstAction_NIGHTMARE::OnEfstBegin: byte-identical - fn_08741 CEfstAction_SHADOW_CLOCK::OnEfstBegin: byte-identical - fn_08744 CSkillObjectAction_SS_SBUNSHIN::OnSkillObjectCreate: byte-identical - fn_08745 CSkillObjectAction_SS_SBUNSHIN::OnSkillObjectRemove: byte-identical - fn_08746 CSkillObjectAction_SS_KUNAITRAP::OnSkillObjectCreate: byte-identical - fn_08747 CSkillObjectAction_SS_KUNAITRAP::OnSkillObjectRemove: byte-identical - fn_08748 CSkillAction_SS_TOKEDASU::OnGroundSkillEffect: logic confirmed by peer review - fn_08752 CSkillAction_SS_AKUMUKESU::OnSkillEffect: byte-identical - fn_08755 CSkillAction_SS_SHINKIROU::OnSkillCast: byte-identical (already on main) - fn_08756 CSkillAction_SS_KAGEGARI::OnGroundSkillEffect: logic confirmed by peer review (already on main) - fn_08759 CSkillAction_SS_KAGENOMAI::OnSkillEffect: byte-identical - fn_08762 CSkillAction_SS_KAGEGISSEN::OnSkillEffect: byte-identical - fn_08764 CSkillAction_SS_FUUMASHOUAKU::OnSkillCast: byte-identical - fn_08765 CSkillObjectAction_NPC_FUUMA::OnSkillObjectCreate: byte-identical - fn_08767 CSkillAction_SS_FUUMAKOUCHIKU::OnSkillCast: byte-identical - fn_08768 CSkillAction_SS_FUUMAKOUCHIKU::OnGroundSkillEffect: logic confirmed by peer review (already on main) - fn_08769 CSkillAction_SS_FUUMASHOUAKU_HIT::OnSkillHit: byte-identical - fn_08771 CSkillAction_SS_KUNAIWAIKYOKU::OnSkillCast: byte-identical - fn_08772 CSkillAction_SS_KUNAIWAIKYOKU::OnGroundSkillEffect: logic confirmed by peer review (already on main) - fn_08774 CSkillAction_SS_KUNAIKAITEN::OnSkillEffect: logic confirmed by peer review - fn_08776 CSkillAction_SS_KUNAIKUSSETSU::OnSkillCast: byte-identical - fn_08777 CSkillAction_SS_KUNAIKUSSETSU::OnSkillEffect: logic confirmed by peer review - fn_08781 CSkillAction_SS_SEKIENHOU::OnSkillEffect: logic confirmed by peer review (already on main) - fn_08785 CSkillAction_SS_REIKETSUHOU::OnGroundSkillEffect: logic confirmed by peer review (already on main) - fn_08788 CSkillAction_SS_RAIDENPOU::OnSkillCast: byte-identical - fn_08789 CSkillAction_SS_RAIDENPOU::OnSkillEffect: byte-identical - fn_08790 CSkillAction_SS_RAIDENPOU::OnSkillDamage: byte-identical - fn_08794 CSkillAction_SS_KINRYUUHOU::OnSkillEffect: byte-identical - fn_08795 CSkillAction_SS_KINRYUUHOU::OnSkillDamage: byte-identical - fn_08799 CSkillAction_SS_ANTENPOU::OnSkillEffect: byte-identical - fn_08803 CSkillAction_SS_KAGEAKUMU::OnSkillHit: byte-identical - fn_08807 CSkillAction_SS_HITOUAKUMU::OnSkillEffect: logic confirmed by peer review - fn_08811 CSkillAction_SS_ANKOKURYUUAKUMU::OnSkillEffect: byte-identical - fn_08812 CSkillAction_SS_ANKOKURYUUAKUMU::OnSkillHit: byte-identical - fn_08813 CSkillAction_SS_FOUR_CHARM::OnSkillEffect: logic confirmed by peer review - fn_08815 CSkillObjectAction_SKE_STAR_CANNON::OnSkillObjectCreate: byte-identical - fn_08818 CSkillAction_SKE_ALL_IN_THE_SKY::OnTargetSkillCast: byte-identical - fn_08820 CEfstAction_SKY_ENCHANT::OnEfstBegin: byte-identical - fn_08822 CEfstAction_SKY_ENCHANT::OnEfstUpdate: byte-identical - fn_08824 CSkillAction_SKE_SKY_SUN::OnSkillEffect: logic confirmed by peer review - fn_08825 CSkillAction_SKE_SKY_SUN::OnSkillDamage: byte-identical - fn_08827 CSkillAction_SKE_SKY_MOON::OnSkillCast: logic confirmed by peer review - fn_08828 CSkillAction_SKE_SKY_MOON::OnSkillEffect: byte-identical - fn_08829 CSkillAction_SKE_SKY_MOON::OnSkillDamage: byte-identical - fn_08830 CSkillAction_SKE_STAR_LIGHT_KICK::OnSkillEffect: byte-identical - fn_08831 CSkillAction_SKE_STAR_LIGHT_KICK::OnSkillDamage: byte-identical - fn_08833 CEfstAction_RISING_SUN::OnEfstBegin: logic confirmed by peer review - fn_08835 CEfstAction_RISING_SUN::OnEfstUpdate: byte-identical - fn_08836 CEfstAction_NOON_SUN::OnEfstBegin: logic confirmed by peer review - fn_08838 CEfstAction_NOON_SUN::OnEfstUpdate: byte-identical - fn_08839 CEfstAction_SUNSET_SUN::OnEfstBegin: logic confirmed by peer review - fn_08841 CEfstAction_SUNSET_SUN::OnEfstUpdate: byte-identical - fn_08843 CSkillAction_SKE_NOON_BLAST::OnSkillEffect: byte-identical - fn_08845 CSkillAction_SKE_SUNSET_BLAST::OnSkillEffect: logic confirmed by peer review - fn_08847 CEfstAction_RISING_MOON::OnEfstBegin: byte-identical - fn_08849 CEfstAction_RISING_MOON::OnEfstUpdate: byte-identical - fn_08850 CEfstAction_MIDNIGHT_MOON::OnEfstBegin: byte-identical - fn_08852 CEfstAction_MIDNIGHT_MOON::OnEfstUpdate: byte-identical - fn_08853 CEfstAction_DAWN_MOON::OnEfstBegin: byte-identical - fn_08855 CEfstAction_DAWN_MOON::OnEfstUpdate: byte-identical - fn_08858 CSkillAction_SKE_MIDNIGHT_KICK::OnSkillEffect: byte-identical - fn_08861 CSkillAction_SKE_DAWN_BREAK::OnSkillEffect: byte-identical - fn_08865 CSkillObjectAction_SKE_TWINKLING_GALAXY::OnSkillObjectCreate: byte-identical - fn_08868 CEfstAction_STAR_BURST::OnEfstBegin: byte-identical - fn_08876 CSkillAction_SOA_TALISMAN_OF_FIVE_ELEMENTS::OnSkillEffect: byte-identical - fn_08879 CSkillAction_SOA_TALISMAN_OF_SOUL_STEALING::OnSkillHit: logic confirmed by peer review - fn_08881 CSkillAction_SOA_EXORCISM_OF_MALICIOUS_SOUL::OnSkillEffect: byte-identical - fn_08883 CSkillAction_SOA_TALISMAN_OF_BLUE_DRAGON::OnSkillEffect: logic confirmed by peer review - fn_08884 CEfstAction_T_FIRST_GOD::OnEfstBegin: byte-identical - fn_08888 CSkillAction_SOA_TALISMAN_OF_WHITE_TIGER::OnSkillEffect: logic confirmed by peer review - fn_08889 CEfstAction_T_SECOND_GOD::OnEfstBegin: byte-identical - fn_08893 CSkillAction_SOA_TALISMAN_OF_RED_PHOENIX::OnSkillEffect: byte-identical - fn_08894 CEfstAction_T_THIRD_GOD::OnEfstBegin: byte-identical - fn_08898 CSkillAction_SOA_TALISMAN_OF_BLACK_TORTOISE::OnGroundSkillEffect: logic confirmed by peer review (already on main) - fn_08900 CEfstAction_T_FOURTH_GOD::OnEfstBegin: byte-identical - fn_08904 CSkillAction_SOA_TALISMAN_OF_FOUR_BEARING_GOD::OnSkillEffect: byte-identical - fn_08906 CSkillAction_SOA_CIRCLE_OF_DIRECTIONS_AND_ELEMENTALS::OnSkillEffect: byte-identical - fn_08907 CEfstAction_T_FIVETH_GOD::OnEfstBegin: byte-identical - fn_08912 CSkillAction_SOA_SOUL_OF_HEAVEN_AND_EARTH::OnSkillEffect: byte-identical - fn_08913 CEfstAction_HEAVEN_AND_EARTH::OnEfstBegin: byte-identical - fn_08918 CSkillAction_SOA_TALISMAN_OF_PROTECTION::OnSkillEffect: byte-identical - fn_08921 CSkillAction_SOA_TALISMAN_OF_WARRIOR::OnSkillEffect: byte-identical - fn_08924 CSkillAction_SOA_TALISMAN_OF_MAGICIAN::OnSkillEffect: byte-identical - fn_08926 CSkillAction_SOA_SOUL_GATHERING::OnSkillEffect: byte-identical - fn_08929 CSkillObjectAction_SOA_TOTEM_OF_TUTELARY::OnSkillObjectCreate: byte-identical - fn_08930 CSkillObjectAction_SOA_TOTEM_OF_TUTELARY::OnSkillObjectRemove: byte-identical - fn_08932 CSkillAction_SH_CHUL_HO_SONIC_CLAW::OnSkillEffect: logic confirmed by peer review - fn_08935 CSkillAction_SH_HOWLING_OF_CHUL_HO::OnSkillEffect: byte-identical - fn_08936 CEfstAction_HOGOGONG::OnEfstBegin: byte-identical - fn_08941 CSkillAction_SH_HOGOGONG_STRIKE::OnSkillHit: byte-identical - fn_08943 CSkillAction_SH_KI_SUL_WATER_SPRAYING::OnSkillEffect: byte-identical - fn_08945 CSkillAction_SH_MARINE_FESTIVAL_OF_KI_SUL::OnSkillEffect: byte-identical - fn_08946 CEfstAction_MARINE_FESTIVAL::OnEfstBegin: byte-identical - fn_08948 CSkillAction_SH_SANDY_FESTIVAL_OF_KI_SUL::OnSkillEffect: byte-identical - fn_08949 CEfstAction_SANDY_FESTIVAL::OnEfstBegin: byte-identical - fn_08951 CSkillAction_SH_KI_SUL_RAMPAGE::OnSkillEffect: byte-identical - fn_08953 CSkillAction_SH_COLORS_OF_HYUN_ROK::OnSkillEffect: logic confirmed by peer review - fn_08957 CSkillObjectAction_SH_HYUN_ROKS_BREEZE::OnSkillObjectCreate: byte-identical - fn_08959 CSkillAction_SH_HYUN_ROK_CANNON::OnSkillEffect: byte-identical - fn_08961 CSkillAction_SH_TEMPORARY_COMMUNION::OnSkillEffect: byte-identical - fn_08962 CEfstAction_TEMPORARY_COMMUNION::OnEfstBegin: logic confirmed by peer review - fn_08967 CSkillAction_SH_BLESSING_OF_MYSTICAL_CREATURES::OnSkillEffect: byte-identical - fn_08969 CSkillAction_SH_CHUL_HO_BATTERING::OnSkillCast: byte-identical - fn_08970 CSkillAction_SH_CHUL_HO_BATTERING::OnSkillEffect: byte-identical - fn_08971 CSkillAction_SH_CHUL_HO_BATTERING::OnSkillDamage: logic confirmed by peer review - fn_08972 CSkillAction_SH_HYUN_ROK_SPIRIT_POWER::OnSkillCast: byte-identical - fn_08973 CSkillAction_SH_HYUN_ROK_SPIRIT_POWER::OnSkillEffect: byte-identical - fn_08974 CSkillAction_SH_HYUN_ROK_SPIRIT_POWER::OnSkillDamage: byte-identical - fn_08976 CSkillAction_TR_ROSEBLOSSOM::OnSkillDamage: byte-identical - fn_08977 CSkillAction_TR_ROSEBLOSSOM_ATK::OnSkillDamage: byte-identical - fn_08978 CSkillAction_TR_KVASIR_SONATA::OnSkillCast: byte-identical - fn_08979 CSkillAction_TR_KVASIR_SONATA::OnSkillEffect: byte-identical - fn_08982 CSkillAction_TR_PRON_MARCH::OnSkillCast: logic confirmed by peer review - fn_08983 CSkillAction_TR_PRON_MARCH::OnSkillEffect: byte-identical - fn_08987 CSkillAction_TR_JAWAII_SERENADE::OnSkillCast: byte-identical - fn_08988 CSkillAction_TR_JAWAII_SERENADE::OnSkillEffect: byte-identical - fn_08992 CSkillAction_TR_AIN_RHAPSODY::OnSkillCast: byte-identical - fn_08993 CSkillAction_TR_AIN_RHAPSODY::OnSkillEffect: byte-identical - fn_08997 CSkillAction_TR_GEF_NOCTURN::OnSkillCast: byte-identical - fn_08998 CSkillAction_TR_GEF_NOCTURN::OnSkillEffect: logic confirmed by peer review - fn_09002 CSkillAction_TR_RHYTHMICAL_WAVE::OnSkillCast: logic confirmed by peer review - fn_09003 CSkillAction_TR_RHYTHMICAL_WAVE::OnSkillEffect: byte-identical - fn_09004 CSkillAction_TR_RHYTHMICAL_WAVE::OnSkillDamage: byte-identical - fn_09006 CSkillAction_TR_METALIC_FURY::OnSkillEffect: byte-identical - fn_09007 CSkillAction_TR_MYSTIC_SYMPHONY::OnSkillCast: byte-identical - fn_09008 CSkillAction_TR_MYSTIC_SYMPHONY::OnSkillEffect: byte-identical - fn_09009 CEfstAction_MYSTIC_SYMPHONY::OnEfstBegin: byte-identical - fn_09015 CSkillAction_TR_RHYTHMSHOOTING::OnSkillCast: byte-identical - fn_09016 CSkillAction_TR_RHYTHMSHOOTING::OnSkillHit: byte-identical - fn_09017 CSkillAction_TR_RHYTHMSHOOTING::OnSkillDamage: byte-identical - fn_09018 CSkillAction_TR_ROKI_CAPRICCIO::OnSkillCast: byte-identical - fn_09019 CSkillAction_TR_ROKI_CAPRICCIO::OnSkillEffect: byte-identical - fn_09020 CSkillAction_TR_ROSEBLOSSOM::OnSkillCast: byte-identical - fn_09021 CSkillAction_TR_ROSEBLOSSOM::OnSkillEffect: byte-identical - fn_09023 CSkillAction_WH_GALESTORM::OnSkillCast: logic confirmed by peer review - fn_09024 CSkillAction_WH_GALESTORM::OnSkillEffect: byte-identical - fn_09025 CSkillAction_WH_GALESTORM::OnSkillDamage: byte-identical - fn_09026 CSkillAction_WH_CALAMITYGALE::OnSkillCast: byte-identical - fn_09027 CSkillAction_WH_CALAMITYGALE::OnSkillEffect: byte-identical - fn_09028 CEfstAction_CALAMITYGALE::OnEfstBegin: byte-identical - fn_09037 CSkillAction_WH_CRESCIVE_BOLT::OnSkillCast: byte-identical - fn_09038 CSkillAction_WH_CRESCIVE_BOLT::OnSkillDamage: byte-identical - fn_09039 CSkillAction_WH_WILD_WALK::OnSkillCast: byte-identical - fn_09040 CSkillAction_WH_WILD_WALK::OnSkillEffect: byte-identical - fn_09041 CSkillAction_WH_WILD_WALK::OnSkillDamage: logic confirmed by peer review - fn_10225 UIRuneSystemWnd::SendMsg: logic confirmed by peer review - fn_17682 CWorld::LoadMapEffects: logic confirmed by peer review (already on main) - fn_17955 CChampionMonsterMgr::ApplyEffects: logic confirmed by peer review (already on main) - fn_20087 CRagEffect::OnProcess3: logic confirmed by peer review - fn_21019 CGameActor::SetHatEffect: logic confirmed by peer review (already on main) - fn_21020 CGameActor::SetEffectState: byte-identical (already on main) - fn_21021 CGameActor::SetEffectInstance: byte-identical - fn_21112 CGameActor::SendMsg: logic confirmed by peer review - fn_21156 CGameActor::SetCharm: logic confirmed by peer review - fn_21166 CGameActor::SetTetraBall: logic confirmed by peer review (already on main) - fn_21194 CGameActor::PlayGroundSkillEffect: logic confirmed by peer review (already on main) - fn_21196 CGameActor::ProcessSkillMessage: logic confirmed by peer review - fn_21296 CGameMode::LaunchTargetEffect: logic confirmed by peer review - fn_21312 LaunchBulletSpriteEffect: byte-identical - fn_21314 CGameMode::PlayItemUseEffect: logic confirmed by peer review - fn_21953 CGameMode::ApplyStatusChange: logic confirmed by peer review - fn_21963 CGameMode::NotifySkillCasting: logic confirmed by peer review - fn_21965 LaunchSkillActorEffect: logic confirmed by peer review - fn_21967 LaunchSkillCastEffect: logic confirmed by peer review - fn_21970 CGameMode::ReceiveActorStatusValue: logic confirmed by peer review - fn_22008 CGameMode::SpawnSkillWarningPlanes: logic confirmed by peer review (already on main) - fn_22013 CGameMode::ReceiveRuneRewardPacket: logic confirmed by peer review - fn_22027 CGameMode::ReceiveRuneGradeResult: logic confirmed by peer review (already on main) - fn_22037 CGameMode::ReceiveGradeEnchantResult: logic confirmed by peer review (already on main) - fn_22038 CGameMode::ReceiveAchievementUpdate: logic confirmed by peer review - fn_22128 CGameMode::ReceiveWindow348Result: logic confirmed by peer review - fn_22140 CGameMode::ReceiveStatusChangeNotice: logic confirmed by peer review - fn_22143 CGameMode::ReceiveNotifyEffect: logic confirmed by peer review (already on main) - fn_22147 CGameMode::ReceiveNotifyGroundSkill: logic confirmed by peer review (already on main) - fn_22149 CGameMode::ReceiveNotifySkill: logic confirmed by peer review (already on main) - fn_22189 CGameMode::ReceiveSoulEnergy: logic confirmed by peer review (already on main) - fn_22192 CGameMode::UpdateActorSpiritCount: logic confirmed by peer review (already on main) - fn_22208 CGameMode::ReceiveSkillUse: logic confirmed by peer review (already on main) - fn_22252 CItem::SendMsg: logic confirmed by peer review (already on main) - fn_22670 CPlayer::ReapplySkillEffects: logic confirmed by peer review (already on main) - fn_23895 CSession::PlaySkillEffect: logic confirmed by peer review - fn_23896 CSession::PlaySkillTargetEffect: byte-identical - fn_23901 CSession::PlaySkillGroundEffect: logic confirmed by peer review - fn_24271 CSkill::LaunchGroundEffects: logic confirmed by peer review - fn_24287 CSkill::OnProcess: logic confirmed by peer review - fn_24296 CDummyEffectLauncher::SendMsg: logic confirmed by peer review - fn_24302 CSkill::SendMsg: logic confirmed by peer review - fn_45483 LaunchLuaSkillEffect: logic confirmed by peer review - fn_45492 CSkillAction_WH_CRESCIVE_BOLT::OnSkillHit: logic confirmed by peer review - fn_18774 EffectLists::Spawn: logic confirmed by peer review - fn_21763 CGameMode::ReceiveBroadcast: logic confirmed by peer review (already on main) - fn_21777 CGameMode::ReceiveZoneServerChange: logic confirmed by peer review (already on main) - fn_22566 CPc::RenderBodyOutline: logic confirmed by peer review (already on main) - fn_22594 CGrannyPc::Render: logic confirmed by peer review (already on main) - fn_22597 CGrannyPc::RenderCached: logic confirmed by peer review (already on main) - fn_19253 SetWindEffectInfo: logic confirmed by peer review (already on main) Reviewed-by: ragnarok-clanker
1813 lines
59 KiB
C++
1813 lines
59 KiB
C++
#include "Contents/Skills/SkillUnitId.h"
|
|
#include "Client/Mode/ModeMessage.h"
|
|
#include "Client/Mode/GameModeEnums.h"
|
|
#include "Contents/Actors/ActorEnums.h"
|
|
#include "Contents/Effects/Core/MsgEffect.h"
|
|
|
|
#include "Client/Mode/CGameMode.h"
|
|
#include "Client/Mode/ModeMgr.h"
|
|
#include "Client/Session/Session.h"
|
|
#include "Contents/Actors/GameActor.h"
|
|
#include "Contents/Actors/GroundScope.h"
|
|
#include "Contents/Actors/Skill.h"
|
|
#include "Contents/Actors/Pc.h"
|
|
#include "Contents/Camera/Camera.h"
|
|
#include "Contents/Configuration/ServiceOptions.h"
|
|
#include "Contents/Effects/Core/EffectLists.h"
|
|
#include "Contents/Effects/Core/EffectTypes.h"
|
|
#include "Contents/Effects/Particles/Particle.h"
|
|
#include "Contents/Effects/Core/RagEffect.h"
|
|
#include "Contents/Map/MapSkyMgr.h"
|
|
#include "Contents/Sound/SoundMgr.h"
|
|
#include "Contents/World/World.h"
|
|
#include "Resource/ResourceMgr.h"
|
|
#include "Resource/Sprites/ActionResource.h"
|
|
#include "Resource/World/TerrainResource.h"
|
|
#include "Utility/Math/AffineMatrix.h"
|
|
#include "Utility/Text/FormatString.h"
|
|
|
|
#include <cstdint>
|
|
#include <cstdlib>
|
|
#include <windows.h>
|
|
#include <timeapi.h>
|
|
|
|
|
|
// GLOBAL: gl_24975
|
|
bool g_msgEffectShowSpecial = true;
|
|
|
|
// INLINED
|
|
static void ClearVector(vector3d& vector) {
|
|
vector.x = 0.0f;
|
|
vector.y = 0.0f;
|
|
vector.z = 0.0f;
|
|
}
|
|
|
|
// OFFSET: 0x00E4A550
|
|
// FUNCTION: fn_24255
|
|
CMsgEffect::CMsgEffect() {
|
|
this->m_drift.x = 0.0f;
|
|
this->m_drift.y = 0.0f;
|
|
this->m_drift.z = 0.0f;
|
|
this->origin.x = 0.0f;
|
|
this->origin.y = 0.0f;
|
|
this->origin.z = 0.0f;
|
|
this->m_velocity.x = 0.0f;
|
|
this->m_owner = nullptr;
|
|
this->render.animation = 0;
|
|
this->render.curMotion = 0;
|
|
this->render.flatDepth = 1;
|
|
this->m_value = 0;
|
|
this->m_type = 0;
|
|
this->m_finished = 0;
|
|
this->travelDistance = 0.0f;
|
|
this->m_baseY = 1.0f;
|
|
this->m_baseX = 1.0f;
|
|
this->m_scale = 1.0f;
|
|
this->processTick = 0;
|
|
this->previousAnimation = 0;
|
|
this->render.depthLayer = 0xFFFFFFFF;
|
|
this->m_digit = 0;
|
|
this->activeMotion = 0;
|
|
this->motionInitialized = 1;
|
|
ClearVector(this->m_drift);
|
|
ClearVector(this->m_velocity);
|
|
this->m_visible = true;
|
|
}
|
|
|
|
// OFFSET: 0x00E4A9B0
|
|
// FUNCTION: fn_24258
|
|
CMsgEffect::~CMsgEffect() {
|
|
if (this->m_owner != nullptr) {
|
|
this->m_owner->SendMsg(this, AM_MSGEFFECT_DEAD, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00E4B8B0
|
|
// FUNCTION: fn_24272
|
|
vector2d& vector2d::Normalize() {
|
|
const float inverse = 1.0f / SquareRoot(this->x * this->x + this->y * this->y);
|
|
this->x = inverse * this->x;
|
|
this->y = inverse * this->y;
|
|
return *this;
|
|
}
|
|
|
|
// OFFSET: 0x00E4B630
|
|
// FUNCTION: fn_24270
|
|
bool CMsgEffect::UsesMsgEffect(int type) {
|
|
switch (type) {
|
|
case MET_CART:
|
|
case MET_BIRD:
|
|
case 27:
|
|
case 31:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// INLINED
|
|
static float MsgEffectElapsedFrames(CMsgEffect* effect) {
|
|
return static_cast<CGameActor*>(static_cast<CRenderObject*>(effect))->GetElapsedFrames();
|
|
}
|
|
|
|
// INLINED
|
|
__forceinline static void MsgEffectDrift(CMsgEffect* effect, float elapsed) {
|
|
float dirX = effect->m_drift.x;
|
|
const int skinMode = g_session.m_damageSkinMode;
|
|
if (effect->m_drift.x == 0.0f && effect->m_owner != nullptr) {
|
|
if (skinMode == 0) {
|
|
const int angle = static_cast<int>(static_cast<CRenderObject*>(effect->m_owner)->render.angle);
|
|
if (angle >= 0 && angle < 90) {
|
|
dirX = -0.8f;
|
|
effect->m_drift.x = -0.8f;
|
|
effect->m_drift.z = 0.8f;
|
|
} else if (angle >= 90 && angle < 180) {
|
|
dirX = -0.8f;
|
|
effect->m_drift.x = -0.8f;
|
|
effect->m_drift.z = -0.8f;
|
|
} else if (angle >= 180 && angle < 270) {
|
|
dirX = 0.8f;
|
|
effect->m_drift.x = 0.8f;
|
|
effect->m_drift.z = -0.8f;
|
|
} else {
|
|
dirX = 0.8f;
|
|
effect->m_drift.x = 0.8f;
|
|
effect->m_drift.z = 0.8f;
|
|
}
|
|
} else {
|
|
if (skinMode == 1) {
|
|
effect->m_drift.x = 0.8f;
|
|
effect->m_drift.z = -0.8f;
|
|
} else if (skinMode == 2) {
|
|
effect->m_drift.x = 0.01f;
|
|
effect->m_drift.z = 0.01f;
|
|
} else if (skinMode == 3) {
|
|
effect->m_drift.x = -0.8f;
|
|
effect->m_drift.z = -0.8f;
|
|
}
|
|
|
|
CGameMode* mode = static_cast<CGameMode*>(g_modeMgr.GetGameMode());
|
|
float yaw = 0.0f;
|
|
if (mode != nullptr) {
|
|
yaw = mode->camera->camera.desiredYaw;
|
|
}
|
|
|
|
matrix rotation;
|
|
rotation.MakeYRotation(yaw / 180.0f * 3.141592f);
|
|
const float x = effect->m_drift.x;
|
|
const float y = effect->m_drift.y;
|
|
const float z = effect->m_drift.z;
|
|
dirX = rotation.values[0] * x + rotation.values[3] * y + rotation.values[6] * z + rotation.values[9];
|
|
effect->m_drift.x = dirX;
|
|
effect->m_drift.z = rotation.values[2] * x + rotation.values[5] * y + rotation.values[8] * z + rotation.values[11];
|
|
}
|
|
}
|
|
|
|
const float step = elapsed / 3.0f;
|
|
effect->render.position.x = dirX * step + effect->m_velocity.x + dirX * 3.0f;
|
|
effect->render.position.z = effect->m_drift.z * step + effect->m_velocity.z + effect->m_drift.z * 3.0f;
|
|
float height = effect->m_baseY + 8.0f - (2.0f - elapsed / 30.0f) * elapsed + effect->m_drift.y;
|
|
effect->render.position.y = height;
|
|
if (height > 0.0f) {
|
|
effect->m_drift.y = height / (height * 3.0f * 0.25f);
|
|
} else if (height < 0.0f) {
|
|
height = -height;
|
|
effect->m_drift.y = height / (height * 3.0f * 0.25f);
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00E4C3E0
|
|
// FUNCTION: fn_24286
|
|
bool CMsgEffect::OnProcess() {
|
|
if (g_updateTick == 0) {
|
|
return true;
|
|
}
|
|
|
|
if (this->m_finished != 0) {
|
|
if (this->m_type != 0x12 || !this->m_visible) {
|
|
return false;
|
|
}
|
|
if (this->processTick > 35 && this->activeMotion != 0) {
|
|
this->activeMotion = 0;
|
|
this->m_finished = 0;
|
|
return true;
|
|
}
|
|
if (this->activeMotion == 0) {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
this->FollowOwner();
|
|
switch (this->m_type) {
|
|
case MET_MISS:
|
|
case MET_NUMBER:
|
|
case MET_CRITICAL_EFFECT:
|
|
case MET_NUMBER_CRITICAL:
|
|
case MET_LUCKY_EFFECT:
|
|
case MET_BIRD:
|
|
case MET_NUMBER_HALF:
|
|
case MET_NUMBER_TOTAL:
|
|
case MET_BLUE_EFFECT:
|
|
break;
|
|
default:
|
|
if (this->m_type != 0x72) {
|
|
this->PlayFrameSounds();
|
|
}
|
|
break;
|
|
}
|
|
|
|
float elapsed;
|
|
switch (this->m_type) {
|
|
case MET_NUMBER_CRITICAL:
|
|
elapsed = MsgEffectElapsedFrames(this);
|
|
this->render.previousAnimation = this->render.animation;
|
|
MsgEffectDrift(this, elapsed);
|
|
if (this->render.scale > 1.3f) {
|
|
this->render.scale = this->m_scale - elapsed * 0.24f;
|
|
} else if (this->render.scale < 1.3f) {
|
|
this->render.scale = 1.3f;
|
|
}
|
|
this->SetColor(static_cast<int>(250.0f - elapsed * 3.4f), -1, -1, -1);
|
|
if (elapsed > 70.0f) {
|
|
return false;
|
|
}
|
|
return true;
|
|
|
|
case 0x1B:
|
|
case 0x1F: {
|
|
CActRes* action = this->GetActRes();
|
|
const int frames = static_cast<int>(action->FrameCount(this->render.previousAnimation));
|
|
if (frames == 0) {
|
|
return true;
|
|
}
|
|
const int tick = this->processTick;
|
|
this->render.curMotion = static_cast<int>(static_cast<float>(tick) / this->render.speed) % frames;
|
|
if (this->activeMotion == 1) {
|
|
if (this->render.curMotion >= frames - 1) {
|
|
this->activeMotion = 0;
|
|
}
|
|
if (tick < 8) {
|
|
this->render.position.x = this->m_velocity.x + this->render.position.x;
|
|
this->render.position.y = this->m_velocity.y + this->render.position.y;
|
|
this->render.position.z = this->m_velocity.z + this->render.position.z;
|
|
}
|
|
}
|
|
this->processTick = tick + 1;
|
|
return true;
|
|
}
|
|
|
|
case MET_NUMBER:
|
|
case MET_NUMBER_HALF:
|
|
elapsed = MsgEffectElapsedFrames(this);
|
|
this->render.previousAnimation = this->render.animation;
|
|
MsgEffectDrift(this, elapsed);
|
|
if (this->render.scale > 1.2f) {
|
|
this->render.scale = this->m_scale - elapsed * 0.24f;
|
|
} else if (this->render.scale < 1.2f) {
|
|
this->render.scale = 1.2f;
|
|
}
|
|
this->SetColor(static_cast<int>(250.0f - elapsed * 3.4f), -1, -1, -1);
|
|
if (elapsed > 70.0f) {
|
|
return false;
|
|
}
|
|
return true;
|
|
|
|
case MET_GUARD: {
|
|
elapsed = MsgEffectElapsedFrames(this);
|
|
this->render.previousAnimation = this->render.animation;
|
|
if (this->render.curMotion == 0) {
|
|
CPlayer* player = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->scene->player;
|
|
g_soundMgr->PlayWave("effect\\kyrie_guard.wav", this->render.position.x - player->render.position.x, 0.0f,
|
|
this->render.position.z - player->render.position.z, 250, 40, 1.0f, 0);
|
|
}
|
|
++this->render.curMotion;
|
|
if (this->render.curMotion >= static_cast<int>(this->GetActRes()->FrameCount(this->render.previousAnimation))) {
|
|
this->render.curMotion = static_cast<int>(this->GetActRes()->FrameCount(this->render.previousAnimation)) - 1;
|
|
}
|
|
this->SetColor(250, -1, -1, -1);
|
|
this->render.scale = 1.2f;
|
|
this->m_scale = 1.2f;
|
|
if (elapsed > 10.0f) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
case MET_MISS:
|
|
elapsed = MsgEffectElapsedFrames(this);
|
|
this->render.previousAnimation = this->render.animation;
|
|
this->render.position.y = this->m_baseY - elapsed * 0.54f;
|
|
this->SetColor(static_cast<int>(250.0f - elapsed * 3.0f), -1, -1, -1);
|
|
this->render.scale = 1.0f;
|
|
this->GetActRes();
|
|
if (elapsed > 80.0f) {
|
|
return false;
|
|
}
|
|
return true;
|
|
|
|
case MET_NUMBER_TOTAL: {
|
|
elapsed = MsgEffectElapsedFrames(this);
|
|
this->render.previousAnimation = this->render.animation;
|
|
this->render.position.y = this->m_baseY - elapsed * 0.1f;
|
|
int fade = 0;
|
|
if (elapsed > 90.0f) {
|
|
fade = static_cast<int>((elapsed - 90.0f) * 8.0f);
|
|
}
|
|
this->SetColor(250 - fade, -1, -1, -1);
|
|
if (this->render.scale < 3.0f) {
|
|
this->render.scale = elapsed * 0.18f + this->render.scale;
|
|
} else if (this->render.scale > 3.0f) {
|
|
this->render.scale = 3.0f;
|
|
}
|
|
if (elapsed > 120.0f) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
case MET_BLUE_EFFECT: {
|
|
elapsed = MsgEffectElapsedFrames(this);
|
|
this->render.previousAnimation = this->render.animation;
|
|
this->render.curMotion = 0;
|
|
this->render.position.y = this->m_baseY - elapsed * 0.1f - 15.0f;
|
|
int fade = 0;
|
|
if (elapsed > 90.0f) {
|
|
fade = static_cast<int>((elapsed - 90.0f) * 8.0f);
|
|
}
|
|
int blue = -1;
|
|
int tint = -1;
|
|
if (fade <= 210) {
|
|
tint = 150;
|
|
blue = 255;
|
|
}
|
|
int alpha = 0;
|
|
if (fade <= 210) {
|
|
alpha = 210 - fade;
|
|
}
|
|
this->SetColor(alpha, tint, tint, blue);
|
|
if (this->render.scale < 2.0f) {
|
|
this->render.scale = elapsed * 0.15f + this->render.scale;
|
|
} else if (this->render.scale > 2.0f) {
|
|
this->render.scale = 2.0f;
|
|
}
|
|
if (elapsed > 120.0f) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
case MET_CRITICAL_EFFECT: {
|
|
elapsed = MsgEffectElapsedFrames(this);
|
|
this->render.previousAnimation = this->render.animation;
|
|
MsgEffectDrift(this, elapsed);
|
|
if (this->render.scale > 1.0f) {
|
|
this->render.scale = this->m_scale - elapsed * 0.24f * 0.6f;
|
|
} else if (this->render.scale < 1.0f) {
|
|
this->render.scale = 1.0f;
|
|
}
|
|
CActRes* action = this->GetActRes();
|
|
if (this->render.curMotion < static_cast<int>(action->FrameCount(this->render.previousAnimation)) - 1) {
|
|
const int frames = static_cast<int>(action->FrameCount(this->render.previousAnimation));
|
|
this->render.curMotion = static_cast<int>(elapsed * g_depthAverageHalf) % frames;
|
|
}
|
|
this->SetColor(static_cast<int>(255.0f - elapsed * 3.45f), -1, -1, -1);
|
|
if (elapsed > 70.0f) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
case 0x1C:
|
|
case 0x1D:
|
|
case 0x1E:
|
|
case 0x20:
|
|
case 0x21:
|
|
case 0x22:
|
|
case 0x23:
|
|
case 0x24: {
|
|
CActRes* action = this->GetActRes();
|
|
elapsed = MsgEffectElapsedFrames(this);
|
|
const int frames = static_cast<int>(action->FrameCount(this->render.previousAnimation));
|
|
if (frames == 0) {
|
|
return true;
|
|
}
|
|
this->render.curMotion = static_cast<int>(elapsed / this->render.speed) % frames;
|
|
return true;
|
|
}
|
|
|
|
case MET_JUST_ANIMATE:
|
|
case MET_EMOTION:
|
|
case MET_MVP:
|
|
case MET_LUCKY_EFFECT: {
|
|
CActRes* action = this->GetActRes();
|
|
elapsed = MsgEffectElapsedFrames(this);
|
|
const int frames = static_cast<int>(action->FrameCount(this->render.previousAnimation));
|
|
if (frames == 0) {
|
|
return true;
|
|
}
|
|
const float motion = elapsed / this->render.speed;
|
|
this->render.curMotion = static_cast<int>(motion) % frames;
|
|
if (this->m_type == 1 && this->render.state == 10000) {
|
|
this->render.curMotion = 15;
|
|
const ActionFrame& frame = action->Frame(this->render.previousAnimation, 15);
|
|
const_cast<SpriteFrameCell&>(frame.cells[0]).mirrored = 0;
|
|
this->SetColor(255, 250, 80, 80);
|
|
return true;
|
|
}
|
|
if (motion / static_cast<float>(frames) < 1.0f) {
|
|
return true;
|
|
}
|
|
if (this->m_type != 1) {
|
|
return false;
|
|
}
|
|
if (this->m_value == static_cast<int>(g_session.m_aid)) {
|
|
g_modeMgr.GetGameMode()->SendMsg(MM_PLAYER_EMOTION_END, 0, 0, 0, 0);
|
|
}
|
|
return false;
|
|
}
|
|
|
|
case MET_ICEBREAKEFFECT: {
|
|
elapsed = MsgEffectElapsedFrames(this);
|
|
CActRes* action = this->GetActRes();
|
|
const int frames = static_cast<int>(action->FrameCount(this->render.previousAnimation));
|
|
const float motion = elapsed * 1.2f;
|
|
this->render.curMotion = static_cast<int>(motion) % frames;
|
|
if (motion / static_cast<float>(frames) < 1.0f) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
case MET_PKEFFECT:
|
|
case MET_ICEEFFECT:
|
|
case MET_CURSE_EFFECT:
|
|
case MET_SLEEP_EFFECT:
|
|
case MET_STUN_EFFECT:
|
|
case MET_SILENCE_EFFECT:
|
|
case MET_CURSOR_EFFECT:
|
|
case 0x25:
|
|
case 0x26: {
|
|
elapsed = MsgEffectElapsedFrames(this);
|
|
CActRes* action = this->GetActRes();
|
|
const int frames = static_cast<int>(action->FrameCount(this->render.previousAnimation));
|
|
this->render.curMotion = static_cast<int>(elapsed / this->render.speed) % frames;
|
|
return true;
|
|
}
|
|
|
|
case MET_ANGELUS_EFFECT:
|
|
case MET_CRUSIS_EFFECT:
|
|
if (this->m_owner == nullptr) {
|
|
return true;
|
|
}
|
|
elapsed = MsgEffectElapsedFrames(this);
|
|
{
|
|
const int frame = static_cast<int>(elapsed);
|
|
if (frame % 34 == 0) {
|
|
this->m_owner->SendMsg(nullptr, 0x4D, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
}
|
|
}
|
|
return true;
|
|
|
|
case MET_BIRD:
|
|
if (this->activeMotion != 0 && this->m_owner != nullptr) {
|
|
CRenderObject* owner = static_cast<CRenderObject*>(this->m_owner);
|
|
this->Face(owner->render.position.x, owner->render.position.z);
|
|
this->render.angle -= 180.0f;
|
|
if (this->render.angle < 0.0f) {
|
|
this->render.angle += 360.0f;
|
|
}
|
|
this->render.previousAnimation = this->Get8Dir2(this->render.angle, 1) + 8;
|
|
this->render.position.x = this->m_velocity.x + this->render.position.x;
|
|
if (this->processTick > 10 && this->processTick < 25) {
|
|
this->initialVelocityX = this->m_velocity.x;
|
|
this->render.position.z = this->m_velocity.z + this->render.position.z;
|
|
} else {
|
|
this->initialVelocityX = this->m_velocity.x;
|
|
this->render.position.y = this->m_velocity.y + this->render.position.y;
|
|
this->render.position.z = this->m_velocity.z + this->render.position.z;
|
|
if (this->processTick >= 25) {
|
|
this->m_finished = 1;
|
|
this->m_velocity.y = this->m_velocity.y * -1.9f;
|
|
}
|
|
}
|
|
this->GetActRes();
|
|
++this->processTick;
|
|
this->previousAnimation = this->render.previousAnimation;
|
|
this->render.curMotion = 0;
|
|
return true;
|
|
}
|
|
if (this->m_owner == nullptr) {
|
|
return false;
|
|
}
|
|
{
|
|
CActRes* action = this->GetActRes();
|
|
const int frames = static_cast<int>(action->FrameCount(this->render.previousAnimation));
|
|
int tick = this->processTick;
|
|
if (tick % static_cast<int>(this->render.speed) == 0) {
|
|
if (this->motionInitialized != 0) {
|
|
++this->render.curMotion;
|
|
}
|
|
tick = 0;
|
|
}
|
|
if (this->render.curMotion >= frames) {
|
|
this->render.curMotion = 0;
|
|
}
|
|
this->previousAnimation = this->render.previousAnimation;
|
|
this->processTick = tick + 1;
|
|
}
|
|
return true;
|
|
|
|
default:
|
|
if (this->m_type != 0x72) {
|
|
return true;
|
|
}
|
|
elapsed = MsgEffectElapsedFrames(this);
|
|
this->render.previousAnimation = this->render.animation;
|
|
this->render.position.y = this->m_baseY - elapsed * 0.18f;
|
|
this->SetColor(static_cast<int>(250.0f - elapsed * 2.0f), -1, -1, -1);
|
|
if (this->render.scale > 1.0f) {
|
|
this->render.scale = this->m_scale - elapsed * 0.24f;
|
|
} else if (this->render.scale < 1.0f) {
|
|
this->render.scale = 1.0f;
|
|
}
|
|
if (elapsed > 120.0f) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00E4D6A0
|
|
// FUNCTION: fn_24287
|
|
bool CSkill::OnProcess() {
|
|
this->UpdateGaugePositions();
|
|
this->ProcessDamageMessages();
|
|
|
|
switch (this->GetEffectiveJob(-1)) {
|
|
case UNT_MANHOLE:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0x336, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_EARTHSTRAIN:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0x8E, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
g_modeMgr.GetGameMode()->SendMsg(MM_QUAKE, 0, 0, 0, 0);
|
|
}
|
|
break;
|
|
|
|
case UNT_EPICLESIS:
|
|
if (!this->m_hasEffect) {
|
|
this->m_hasEffect = true;
|
|
this->LaunchEffect(0x677, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_effectMgr->Spawn(this->render.accountId, 0x676, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
}
|
|
break;
|
|
|
|
case UNT_BENEDICTIO:
|
|
if (this->m_effectTimer >= EffectLifetime(0x5B) - 8u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x5B, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_SANCTUARY:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0x13F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_DEMONSTRATION:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0x12E, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_VOLCANO:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0xEF, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_POISONSMOKE:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0x304, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
int random = rand() % 100;
|
|
random = random < 0 ? 0 : random;
|
|
if (random == 1) {
|
|
g_effectMgr->Spawn(this->skillAid, 0x60A, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
} else if (random == 2) {
|
|
g_effectMgr->Spawn(this->skillAid, 0x60B, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
}
|
|
}
|
|
break;
|
|
|
|
case UNT_FOGWALL:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0x195, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_DELUGE:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0xF0, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_SUITON:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0x26C, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_VIOLENTGALE:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0xF1, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_LANDPROTECTOR:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0xF2, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_DARK_RUNNER:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0x29F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_DARK_TRANSFER:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0x2A0, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_BASILICA:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0x176, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_SPIDERWEB:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0x194, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_HERMODE:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0x205, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_GRAVITATION:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0x20A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_NEUTRALBARRIER:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0x30F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_EVILLAND:
|
|
if (!this->m_hasEffect && g_effectMgr->Spawn(this->skillAid, 0x613, this->render.position, 0, this->range * 2, 0, 0)) {
|
|
this->m_hasEffect = true;
|
|
}
|
|
break;
|
|
|
|
case UNT_GOSPEL:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0x172, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_STEALTHFIELD:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0x310, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_VENOMDUST:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0xAB, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_CLOUD_KILL:
|
|
if (!this->m_hasEffect && g_effectMgr->Spawn(this->skillAid, 0x438, this->render.position, 0, -1, 0, 0)) {
|
|
this->m_hasEffect = true;
|
|
this->m_effectId = 0x438;
|
|
}
|
|
break;
|
|
|
|
case UNT_MAGNUS:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0x13E, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_FIREPILLAR_ACTIVE:
|
|
if (this->m_effectTimer >= EffectLifetime(0x61) - 8u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x61, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_FIREPILLAR_WAITING:
|
|
case UNT_WINDATTACK:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0x8A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_ICEWALL:
|
|
case UNT_DEATHWAVE:
|
|
case UNT_WATERATTACK:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0x4A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_QUAGMIRE:
|
|
if (this->m_effectTimer >= EffectLifetime(0x5F) - 20u) {
|
|
this->m_effectTimer = 0;
|
|
if (g_serviceOptions.Get(0xE5)) {
|
|
g_effectMgr->Spawn(0, 0x489, this->render.position, 0, -1, 0, 0);
|
|
} else {
|
|
this->LaunchEffect(0x5F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
}
|
|
break;
|
|
|
|
case UNT_WARP_ACTIVE:
|
|
if (this->m_effectTimer >= EffectLifetime(0x13C) - 8u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x13C, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_WARP_WAITING:
|
|
if (this->m_effectTimer >= EffectLifetime(0x13D) - 8u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x13D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_DIMENSIONDOOR:
|
|
if (this->m_effectTimer >= EffectLifetime(0x339) - 8u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x339, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_CHAOSPANIC:
|
|
if (this->m_effectTimer >= EffectLifetime(0x33B) - 8u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x33B, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_MAELSTROM:
|
|
if (this->m_effectTimer >= EffectLifetime(0x33C) - 8u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x33C, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_REVERBERATION:
|
|
if (this->m_effectTimer >= EffectLifetime(0x358) - 8u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x358, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\REVERBERATION.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
}
|
|
break;
|
|
|
|
case UNT_NETHERWORLD:
|
|
if (this->m_effectTimer >= EffectLifetime(0x35C) - 8u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x35C, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\POEMOFNETHERWORLD.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
}
|
|
break;
|
|
|
|
case UNT_SEVERE_RAINSTORM:
|
|
if (this->m_effectTimer >= EffectLifetime(0x359) - 8u) {
|
|
this->m_effectTimer = 0;
|
|
g_effectMgr->Spawn(0, 0x4FC, this->render.position, 0, -1, 0, 0);
|
|
g_soundMgr->PlayWave("effect\\rainstorm.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
}
|
|
break;
|
|
|
|
case UNT_BLOODYLUST:
|
|
if (this->m_effectTimer >= EffectLifetime(0x33D) - 8u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x33D, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_CALLFAMILY:
|
|
if (this->m_effectTimer >= EffectLifetime(0x155) - 8u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x155, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_SAFETYWALL:
|
|
if (this->m_effectTimer >= EffectLifetime(0x13B) - 7u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x13B, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_FIREWALL:
|
|
case UNT_FIRE_MANTLE:
|
|
if (this->m_effectTimer >= EffectLifetime(0x19) - 7u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x19, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_FIREWALK:
|
|
if (this->m_effectTimer >= EffectLifetime(0x398) - 7u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x398, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_ELECTRICWALK:
|
|
if (this->m_effectTimer >= EffectLifetime(0x39E) - 7u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x39E, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_VACUUM_EXTREME:
|
|
if (this->m_effectTimer >= EffectLifetime(0x399) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x399, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\S스펠피스트.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
}
|
|
break;
|
|
|
|
case UNT_HELLS_PLANT:
|
|
if (this->m_effectTimer >= EffectLifetime(0x397) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x397, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\G가시나무덫.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
}
|
|
break;
|
|
|
|
case UNT_TATAMIGAESHI:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0x277, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_KAEN:
|
|
if (this->m_effectTimer >= EffectLifetime(0x27A) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x27A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_MAGENTATRAP:
|
|
if (this->m_effectTimer >= EffectLifetime(0x2E3) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
}
|
|
break;
|
|
|
|
case UNT_COBALTTRAP:
|
|
if (this->m_effectTimer >= EffectLifetime(0x2E4) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
}
|
|
break;
|
|
|
|
case UNT_MAIZETRAP:
|
|
if (this->m_effectTimer >= EffectLifetime(0x2E5) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
}
|
|
break;
|
|
|
|
case UNT_VERDURETRAP:
|
|
if (this->m_effectTimer >= EffectLifetime(0x2E6) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
}
|
|
break;
|
|
|
|
case UNT_FIRINGTRAP:
|
|
case UNT_ICEBOUNDTRAP:
|
|
case UNT_ELECTRICSHOCKER:
|
|
case UNT_CLUSTERBOMB:
|
|
if (this->m_effectTimer >= EffectLifetime(0x2E7) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
}
|
|
break;
|
|
|
|
case UNT_GROUNDDRIFT_WIND:
|
|
if (this->m_effectTimer >= EffectLifetime(0x27E) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x27E, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_GROUNDDRIFT_DARK:
|
|
if (this->m_effectTimer >= EffectLifetime(0x27F) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x27F, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_GROUNDDRIFT_POISON:
|
|
if (this->m_effectTimer >= EffectLifetime(0x280) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x280, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_GROUNDDRIFT_WATER:
|
|
if (this->m_effectTimer >= EffectLifetime(0x281) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x281, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_GROUNDDRIFT_FIRE:
|
|
if (this->m_effectTimer >= EffectLifetime(0x282) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x282, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_GROUNDDRIFT_NEUTRAL:
|
|
if (this->m_effectTimer >= EffectLifetime(0x460) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x460, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_WALLOFTHORN:
|
|
if (this->m_effectTimer >= EffectLifetime(0x390) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x390, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_WATER_BARRIER:
|
|
if (!this->m_effect) {
|
|
this->m_effect = this->LaunchEffect(0x3AB, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
if (this->m_effect) {
|
|
this->m_effect->SetStateDuration(this->m_effect->GetDuration() + 21);
|
|
}
|
|
break;
|
|
|
|
case UNT_ZEPHYR:
|
|
if (this->m_effectTimer >= EffectLifetime(0x1D1) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x1D1, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_POWER_OF_GAIA:
|
|
if (this->m_effectTimer >= EffectLifetime(0x440) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
g_effectMgr->Spawn(this->render.accountId, 0x440, vector3d{0.0f, 0.0f, 0.0f}, 0, -1, 0, 0);
|
|
}
|
|
break;
|
|
|
|
case UNT_POISON_MIST:
|
|
this->LaunchGroundEffects(0x3BF, 3, 0);
|
|
break;
|
|
|
|
case UNT_LAVA_SLIDE:
|
|
this->LaunchGroundEffects(0x3C4, 0, 0);
|
|
break;
|
|
|
|
case UNT_VOLCANIC_ASH:
|
|
this->LaunchGroundEffects(0x3CF, 0, 0);
|
|
break;
|
|
|
|
case UNT_DEMONIC_FIRE:
|
|
case UNT_FIRE_INSIGNIA:
|
|
if (this->m_effectTimer >= EffectLifetime(0x394) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x394, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\EF_FireWall.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
}
|
|
break;
|
|
|
|
case UNT_WATER_INSIGNIA:
|
|
if (this->m_effectTimer >= EffectLifetime(0x394) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
CRagEffect* effect = this->LaunchEffect(0x394, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\EF_FireWall.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
if (effect) {
|
|
effect->state.colorChannels[0] = 20;
|
|
effect->state.colorChannels[1] = 20;
|
|
effect->state.colorChannels[2] = 180;
|
|
}
|
|
}
|
|
break;
|
|
|
|
case UNT_WIND_INSIGNIA:
|
|
if (this->m_effectTimer >= EffectLifetime(0x394) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
CRagEffect* effect = this->LaunchEffect(0x394, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\EF_FireWall.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
if (effect) {
|
|
effect->state.colorChannels[0] = 20;
|
|
effect->state.colorChannels[1] = 180;
|
|
effect->state.colorChannels[2] = 20;
|
|
}
|
|
}
|
|
break;
|
|
|
|
case UNT_EARTH_INSIGNIA:
|
|
if (this->m_effectTimer >= EffectLifetime(0x394) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
CRagEffect* effect = this->LaunchEffect(0x394, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\EF_FireWall.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
if (effect) {
|
|
effect->state.colorChannels[0] = 40;
|
|
effect->state.colorChannels[1] = 40;
|
|
effect->state.colorChannels[2] = 40;
|
|
}
|
|
}
|
|
break;
|
|
|
|
case UNT_FIRE_EXPANSION_SMOKE_POWDER:
|
|
if (this->m_effectTimer >= EffectLifetime(0x395) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x395, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\EF_FireWall.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
}
|
|
break;
|
|
|
|
case UNT_FIRE_EXPANSION_TEAR_GAS:
|
|
if (this->m_effectTimer >= EffectLifetime(0x396) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x396, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\EF_FireWall.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
}
|
|
break;
|
|
|
|
case UNT_WARMER:
|
|
if (this->m_effectTimer >= EffectLifetime(0x3A1) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x3A1, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
g_soundMgr->PlayWave("effect\\S워머.wav", 0.0f, 0.0f, 0.0f, 250, 40, 1.0f, 0);
|
|
}
|
|
break;
|
|
|
|
case UNT_ZENKAI_WATER:
|
|
this->LaunchGroundEffects(0x3E0, 0, 0);
|
|
break;
|
|
|
|
case UNT_ZENKAI_LAND:
|
|
this->LaunchGroundEffects(0x3E1, 0, 0);
|
|
break;
|
|
|
|
case UNT_ZENKAI_FIRE:
|
|
this->LaunchGroundEffects(0x3E2, 0, 0);
|
|
break;
|
|
|
|
case UNT_ZENKAI_WIND:
|
|
this->LaunchGroundEffects(0x3E3, 0, 0);
|
|
break;
|
|
|
|
case UNT_MAKIBISHI:
|
|
this->LaunchGroundEffects(0x3EF, 0, 0);
|
|
break;
|
|
|
|
case UNT_VENOMFOG:
|
|
this->LaunchGroundEffects(0x3FC, 0, 0);
|
|
break;
|
|
|
|
case UNT_ICEMINE:
|
|
if (this->m_effectTimer >= EffectLifetime(0x402) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x402, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_FLAMECROSS:
|
|
case UNT_HELLBURNING:
|
|
if (this->m_effectTimer >= EffectLifetime(0x19) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x19, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_KINGS_GRACE:
|
|
if (this->m_effectTimer >= EffectLifetime(0x41B) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x41B, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_MAGMA_ERUPTION:
|
|
if (this->m_effectTimer >= EffectLifetime(0x41A) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
this->LaunchEffect(0x41A, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
}
|
|
break;
|
|
|
|
case UNT_FIRE_RAIN:
|
|
if (this->m_effectTimer >= EffectLifetime(0x428) - 1u) {
|
|
this->m_effectTimer = 0;
|
|
g_effectMgr->Spawn(0, 0x428, this->render.position, 0, -1, 0, 0);
|
|
}
|
|
break;
|
|
|
|
case UNT_GLITTERING_GREED:
|
|
if (!this->m_hasEffect) {
|
|
this->m_hasEffect = true;
|
|
g_effectMgr->Spawn(0, 0x4FE, this->render.position, 0, -1, 0, 0);
|
|
}
|
|
break;
|
|
|
|
case UNT_SEEDTRAP:
|
|
if (!this->m_hasEffect) {
|
|
this->m_hasEffect = true;
|
|
this->LaunchEffect(this->m_effectId, vector3d{0.0f, 0.0f, 0.0f}, 0.0f);
|
|
this->m_effectId = 0x520;
|
|
}
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
|
|
++this->m_effectTimer;
|
|
return true;
|
|
}
|
|
|
|
// OFFSET: 0x00E4F370
|
|
// FUNCTION: fn_24289
|
|
void CMsgEffect::FollowOwner() {
|
|
switch (this->m_type) {
|
|
case MET_MISS:
|
|
case MET_NUMBER:
|
|
case MET_CRITICAL_EFFECT:
|
|
case MET_NUMBER_CRITICAL:
|
|
case MET_LUCKY_EFFECT:
|
|
case MET_NUMBER_HALF:
|
|
case MET_NUMBER_TOTAL:
|
|
case MET_GUARD:
|
|
case MET_BLUE_EFFECT:
|
|
if (this->m_owner != nullptr) {
|
|
CRenderObject* owner = static_cast<CRenderObject*>(this->m_owner);
|
|
const float x = owner->render.position.x;
|
|
this->render.position.x = x;
|
|
this->m_velocity.x = x;
|
|
const float z = owner->render.position.z;
|
|
this->render.position.z = z;
|
|
this->m_velocity.z = z;
|
|
}
|
|
this->render.blendFlags = 0x200;
|
|
break;
|
|
|
|
case MET_PKEFFECT:
|
|
case MET_ANGELUS_EFFECT:
|
|
if (this->m_owner != nullptr) {
|
|
const CRenderObject* owner = static_cast<CRenderObject*>(this->m_owner);
|
|
this->render.position.x = owner->render.position.x;
|
|
this->render.position.y = owner->render.position.y;
|
|
this->render.position.z = owner->render.position.z;
|
|
this->render.position.y -= 15.0f;
|
|
}
|
|
break;
|
|
|
|
case MET_CRUSIS_EFFECT:
|
|
if (this->m_owner != nullptr) {
|
|
const CRenderObject* owner = static_cast<CRenderObject*>(this->m_owner);
|
|
this->render.position.x = owner->render.position.x;
|
|
this->render.position.y = owner->render.position.y;
|
|
this->render.position.z = owner->render.position.z;
|
|
this->render.position.y -= 20.0f;
|
|
}
|
|
break;
|
|
|
|
case MET_ICEEFFECT:
|
|
if (this->m_owner != nullptr) {
|
|
const CRenderObject* owner = static_cast<CRenderObject*>(this->m_owner);
|
|
this->render.position.x = owner->render.position.x;
|
|
this->render.position.y = owner->render.position.y;
|
|
this->render.position.z = owner->render.position.z;
|
|
}
|
|
break;
|
|
|
|
case 0x1C:
|
|
case 0x1D:
|
|
case 0x1E:
|
|
case 0x22:
|
|
case 0x23:
|
|
case 0x24:
|
|
if (this->m_owner != nullptr) {
|
|
const CRenderObject* owner = static_cast<CRenderObject*>(this->m_owner);
|
|
this->render.position.x = owner->render.position.x;
|
|
this->render.position.y = owner->render.position.y;
|
|
this->render.position.z = owner->render.position.z;
|
|
if (this->render.state == 10000) {
|
|
this->render.position.y -= 10.0f;
|
|
} else {
|
|
this->render.position.y -= 20.0f;
|
|
}
|
|
this->render.position.x -= 3.0f;
|
|
}
|
|
break;
|
|
|
|
case 0x21:
|
|
if (this->m_owner != nullptr) {
|
|
const CRenderObject* owner = static_cast<CRenderObject*>(this->m_owner);
|
|
this->render.position.x = owner->render.position.x;
|
|
this->render.position.y = owner->render.position.y;
|
|
this->render.position.z = owner->render.position.z;
|
|
this->render.position.y = this->render.position.y - static_cast<float>(static_cast<CGameActor*>(this->m_owner)->transformPriority) - 10.0f;
|
|
}
|
|
break;
|
|
|
|
case 0x20:
|
|
if (this->m_owner != nullptr) {
|
|
const CRenderObject* owner = static_cast<CRenderObject*>(this->m_owner);
|
|
this->render.position.x = owner->render.position.x;
|
|
this->render.position.y = owner->render.position.y;
|
|
this->render.position.z = owner->render.position.z;
|
|
this->render.position.y -= 25.0f;
|
|
}
|
|
break;
|
|
|
|
case MET_EMOTION:
|
|
case MET_MVP:
|
|
case MET_SLEEP_EFFECT:
|
|
case MET_STUN_EFFECT:
|
|
case MET_SILENCE_EFFECT:
|
|
case 0x25:
|
|
case 0x26:
|
|
if (this->m_owner != nullptr) {
|
|
const CRenderObject* owner = static_cast<CRenderObject*>(this->m_owner);
|
|
this->render.position.x = owner->render.position.x;
|
|
this->render.position.y = owner->render.position.y;
|
|
this->render.position.z = owner->render.position.z;
|
|
if (this->render.state == 10000) {
|
|
this->render.position.y -= 10.0f;
|
|
} else {
|
|
this->render.position.y -= 20.0f;
|
|
}
|
|
}
|
|
break;
|
|
|
|
case MET_CURSE_EFFECT:
|
|
if (this->m_owner != nullptr) {
|
|
const CRenderObject* owner = static_cast<CRenderObject*>(this->m_owner);
|
|
this->render.position.x = owner->render.position.x;
|
|
this->render.position.y = owner->render.position.y;
|
|
this->render.position.z = owner->render.position.z;
|
|
this->render.position.y -= 15.0f;
|
|
this->render.angle = owner->render.angle;
|
|
const int dir = this->Get8Dir(this->render.angle);
|
|
this->render.previousAnimation = this->render.animation + dir;
|
|
switch (dir) {
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
case 5:
|
|
this->render.depthLayer = 3;
|
|
break;
|
|
default:
|
|
this->render.depthLayer = static_cast<std::uint32_t>(-3);
|
|
break;
|
|
}
|
|
}
|
|
break;
|
|
|
|
case 0x1B:
|
|
case 0x1F:
|
|
if (this->m_owner != nullptr) {
|
|
CWorld* scene = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->scene;
|
|
const float dist = static_cast<CRenderObject*>(this->m_owner)->CalcDist(this->render.position.x, this->render.position.z);
|
|
const int dir = this->Get8Dir2(this->render.angle, 1);
|
|
CRenderObject* owner = static_cast<CRenderObject*>(this->m_owner);
|
|
if (this->activeMotion == 1) {
|
|
this->render.previousAnimation = this->render.animation + dir + 12 + ((dir + 4 < 8) ? 8 : 0);
|
|
} else if (dist > 15.0f) {
|
|
const vector3d oldPosition = this->render.position;
|
|
this->render.previousAnimation = this->render.animation + 8 + dir;
|
|
vector2d direction;
|
|
direction.x = this->render.position.x - owner->render.position.x;
|
|
direction.y = this->render.position.z - owner->render.position.z;
|
|
direction.Normalize();
|
|
if (dist - 0.7f <= 15.0f) {
|
|
this->render.position.x = direction.x * 14.9f + owner->render.position.x;
|
|
this->render.position.z = direction.y * 14.9f + owner->render.position.z;
|
|
} else {
|
|
this->render.position.x = (dist - 0.7f) * direction.x + owner->render.position.x;
|
|
this->render.position.z = (dist - 0.7f) * direction.y + owner->render.position.z;
|
|
}
|
|
const float movedX = this->render.position.x - oldPosition.x;
|
|
const float movedZ = this->render.position.z - oldPosition.z;
|
|
this->travelDistance += SquareRoot(movedZ * movedZ + movedX * movedX);
|
|
if (static_cast<CRenderObject*>(this->m_owner)->render.state == 0 && dist < 16.0f) {
|
|
this->render.previousAnimation = this->render.animation + dir;
|
|
}
|
|
} else if (owner->render.state == 4) {
|
|
this->render.previousAnimation = this->render.animation + 0x18 + dir;
|
|
} else if (owner->render.state == 3) {
|
|
this->render.previousAnimation = this->render.animation + 0x20 + dir;
|
|
} else if (owner->render.state == 0 || dist <= 14.0f) {
|
|
this->render.previousAnimation = this->render.animation + dir;
|
|
}
|
|
this->Face(owner->render.position.x, owner->render.position.z);
|
|
this->render.position.y = scene->terrain->Height(this->render.position.x, this->render.position.z);
|
|
}
|
|
break;
|
|
|
|
case MET_CART:
|
|
if (this->m_owner != nullptr) {
|
|
CWorld* scene = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->scene;
|
|
const float dist = static_cast<CRenderObject*>(this->m_owner)->CalcDist(this->render.position.x, this->render.position.z);
|
|
const int dir = this->Get8Dir2(this->render.angle, 1);
|
|
CRenderObject* owner = static_cast<CRenderObject*>(this->m_owner);
|
|
this->render.previousAnimation = this->render.animation + dir;
|
|
if (dist > 5.0f) {
|
|
const vector3d oldPosition = this->render.position;
|
|
vector2d direction;
|
|
direction.x = this->render.position.x - owner->render.position.x;
|
|
direction.y = this->render.position.z - owner->render.position.z;
|
|
direction.Normalize();
|
|
this->render.position.x = direction.x * 5.0f + owner->render.position.x;
|
|
this->render.position.z = direction.y * 5.0f + owner->render.position.z;
|
|
const float movedX = this->render.position.x - oldPosition.x;
|
|
const float movedZ = this->render.position.z - oldPosition.z;
|
|
this->travelDistance += SquareRoot(movedZ * movedZ + movedX * movedX);
|
|
CActRes* action = this->GetActRes();
|
|
const unsigned frames = action->FrameCount(this->render.previousAnimation);
|
|
this->render.curMotion = static_cast<int>(this->travelDistance * 0.23f * 4.0f / this->render.speed) % static_cast<int>(frames);
|
|
}
|
|
this->Face(owner->render.position.x, owner->render.position.z);
|
|
this->render.position.y = scene->terrain->Height(this->render.position.x, this->render.position.z);
|
|
}
|
|
break;
|
|
|
|
case MET_BIRD:
|
|
if (this->m_owner != nullptr && this->activeMotion == 0) {
|
|
CWorld* scene = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->scene;
|
|
const float dist = static_cast<CRenderObject*>(this->m_owner)->CalcDist(this->render.position.x, this->render.position.z);
|
|
const int dir = this->Get8Dir2(this->render.angle, 1);
|
|
CRenderObject* owner = static_cast<CRenderObject*>(this->m_owner);
|
|
this->render.previousAnimation = this->render.animation + dir;
|
|
if (this->motionInitialized == 0) {
|
|
if (dist <= 25.0f) {
|
|
this->motionInitialized = 1;
|
|
}
|
|
const vector3d oldPosition = this->render.position;
|
|
vector2d direction;
|
|
direction.x = this->render.position.x - owner->render.position.x;
|
|
direction.y = this->render.position.z - owner->render.position.z;
|
|
direction.Normalize();
|
|
this->render.position.x += (owner->render.position.x - this->render.position.x) / 25.0f;
|
|
this->render.curMotion = 8;
|
|
this->render.position.z += (owner->render.position.z - this->render.position.z) / 25.0f;
|
|
const float movedX = this->render.position.x - oldPosition.x;
|
|
const float movedZ = this->render.position.z - oldPosition.z;
|
|
this->travelDistance += SquareRoot(movedZ * movedZ + movedX * movedX);
|
|
} else if (dist > 12.0f && this->activeMotion == 0) {
|
|
const vector3d oldPosition = this->render.position;
|
|
vector2d direction;
|
|
direction.x = this->render.position.x - owner->render.position.x;
|
|
direction.y = this->render.position.z - owner->render.position.z;
|
|
direction.Normalize();
|
|
this->render.position.x += (owner->render.position.x - this->render.position.x) / dist;
|
|
this->render.position.z += (owner->render.position.z - this->render.position.z) / dist;
|
|
const float movedX = this->render.position.x - oldPosition.x;
|
|
const float movedZ = this->render.position.z - oldPosition.z;
|
|
this->travelDistance += SquareRoot(movedZ * movedZ + movedX * movedX);
|
|
} else if (dist > 3.0f) {
|
|
const vector3d oldPosition = this->render.position;
|
|
vector2d direction;
|
|
direction.x = this->render.position.x - owner->render.position.x;
|
|
direction.y = this->render.position.z - owner->render.position.z;
|
|
direction.Normalize();
|
|
this->render.position.x += (owner->render.position.x - this->render.position.x) / 20.0f;
|
|
this->render.position.z += (owner->render.position.z - this->render.position.z) / 20.0f;
|
|
const float movedX = this->render.position.x - oldPosition.x;
|
|
const float movedZ = this->render.position.z - oldPosition.z;
|
|
this->travelDistance += SquareRoot(movedZ * movedZ + movedX * movedX);
|
|
}
|
|
this->Face(owner->render.position.x, owner->render.position.z);
|
|
this->render.position.y = scene->terrain->Height(this->render.position.x, this->render.position.z) - 25.0f;
|
|
}
|
|
break;
|
|
|
|
case MET_CURSOR_EFFECT:
|
|
if (this->m_owner == nullptr) {
|
|
break;
|
|
}
|
|
{
|
|
const CRenderObject* owner = static_cast<CRenderObject*>(this->m_owner);
|
|
this->render.position.x = owner->render.position.x;
|
|
this->render.position.y = owner->render.position.y;
|
|
this->render.position.z = owner->render.position.z;
|
|
this->render.position.y -= 20.0f;
|
|
}
|
|
default:
|
|
if (this->m_type == 0x72) {
|
|
this->render.position.x = static_cast<CRenderObject*>(this->m_owner)->render.position.x;
|
|
this->render.position.z = static_cast<CRenderObject*>(this->m_owner)->render.position.z;
|
|
}
|
|
break;
|
|
|
|
case MET_ICEBREAKEFFECT:
|
|
break;
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00E4F2D0
|
|
// FUNCTION: fn_24288
|
|
bool CSummonActorEffect::OnProcess() {
|
|
const bool result = this->CMsgEffect::OnProcess();
|
|
const unsigned char* color = reinterpret_cast<const unsigned char*>(&this->render.color);
|
|
const int alpha = g_serviceOptions.Get(0x10A) != 0 ? 0x32 : 0xFF;
|
|
this->SetColor(alpha, color[2], color[1], color[0]);
|
|
return result;
|
|
}
|
|
|
|
// OFFSET: 0x00E50340
|
|
// FUNCTION: fn_24293
|
|
void CMsgEffect::Render(int argument) {
|
|
switch (this->m_type) {
|
|
case MET_MISS:
|
|
case MET_NUMBER:
|
|
case MET_CRITICAL_EFFECT:
|
|
case MET_NUMBER_CRITICAL:
|
|
case MET_NUMBER_HALF:
|
|
case MET_NUMBER_TOTAL:
|
|
case 114:
|
|
if (!g_msgEffectShowSpecial) {
|
|
return;
|
|
}
|
|
break;
|
|
}
|
|
|
|
if (this->m_visible) {
|
|
this->CRenderObject::Render(argument);
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00E512B0
|
|
// FUNCTION: fn_24301
|
|
void CMsgEffect::SendMsg(CGameObject* sender, int message, int a, int b, int c, int d, int e, int f, int g, int h, int i, int, int, int, int) {
|
|
const vector3d* position = reinterpret_cast<const vector3d*>(b);
|
|
switch (static_cast<std::int64_t>(a) << 32 | static_cast<std::uint32_t>(message)) {
|
|
case AM_REQ_ATTACK:
|
|
if (this->m_type == 18) {
|
|
this->m_velocity.x = (position->x - this->render.position.x) / 10.0f;
|
|
this->m_velocity.y = (position->y - this->render.position.y) / 10.0f;
|
|
this->activeMotion = 1;
|
|
this->motionInitialized = 0;
|
|
this->m_velocity.z = (position->z - this->render.position.z) / 10.0f;
|
|
return;
|
|
}
|
|
|
|
if (this->m_type == 27 || this->m_type == 31) {
|
|
this->m_velocity.x = (position->x - this->render.position.x) / 10.0f;
|
|
this->m_velocity.y = (position->y - this->render.position.y) / 10.0f;
|
|
this->activeMotion = 1;
|
|
this->processTick = 0;
|
|
this->m_velocity.z = (position->z - this->render.position.z) / 10.0f;
|
|
return;
|
|
}
|
|
break;
|
|
|
|
case AM_MSGMASTER_DEAD:
|
|
this->m_owner = nullptr;
|
|
switch (this->m_type) {
|
|
case MET_ICEBREAKEFFECT:
|
|
case MET_MISS:
|
|
case MET_NUMBER:
|
|
case MET_CRITICAL_EFFECT:
|
|
case MET_NUMBER_CRITICAL:
|
|
case MET_LUCKY_EFFECT:
|
|
case MET_NUMBER_HALF:
|
|
case MET_NUMBER_TOTAL:
|
|
case MET_BLUE_EFFECT:
|
|
break;
|
|
|
|
default:
|
|
this->m_finished = 1;
|
|
break;
|
|
}
|
|
return;
|
|
|
|
case AM_DISAPPEAR:
|
|
this->m_finished = 1;
|
|
return;
|
|
|
|
case AM_SET_MASTER_POINTER:
|
|
this->m_owner = sender;
|
|
switch (this->m_type) {
|
|
case MET_CART:
|
|
case MET_BIRD:
|
|
case 27:
|
|
case 31:
|
|
if (sender != nullptr) {
|
|
const CRenderObject* owner = static_cast<const CRenderObject*>(sender);
|
|
this->render.position.x = owner->render.position.x - ClientSine(static_cast<int>(owner->render.angle)) * 5.0f;
|
|
owner = static_cast<const CRenderObject*>(this->m_owner);
|
|
this->render.position.z = ClientCosine(static_cast<int>(owner->render.angle)) * 5.0f + owner->render.position.z;
|
|
}
|
|
break;
|
|
|
|
case MET_ICEBREAKEFFECT:
|
|
if (sender != nullptr) {
|
|
const CRenderObject* owner = static_cast<const CRenderObject*>(sender);
|
|
this->render.position.x = owner->render.position.x;
|
|
this->render.position.y = owner->render.position.y;
|
|
this->render.position.z = owner->render.position.z;
|
|
}
|
|
break;
|
|
}
|
|
return;
|
|
|
|
case AM_SETMASTERGID:
|
|
this->m_type = d;
|
|
this->m_value = b;
|
|
switch (d) {
|
|
case MET_CART:
|
|
case 31:
|
|
this->render.flatDepth = 0;
|
|
this->render.depthLayer = 0;
|
|
this->render.visibilityOptions[0] = 1;
|
|
this->render.shadowScale = 1.0f;
|
|
break;
|
|
|
|
case MET_PKEFFECT:
|
|
this->SetColor(0x7F, 0xFF, 0, 0);
|
|
break;
|
|
|
|
case MET_CURSE_EFFECT:
|
|
this->SetColor(0x7F, -1, -1, -1);
|
|
this->render.flatDepth = 0;
|
|
this->render.depthLayer = 5;
|
|
break;
|
|
|
|
case MET_ICEEFFECT:
|
|
case MET_ICEBREAKEFFECT:
|
|
this->render.flatDepth = 0;
|
|
this->render.depthLayer = 5;
|
|
break;
|
|
|
|
case MET_BIRD:
|
|
this->render.flatDepth = 0;
|
|
this->render.depthLayer = 0;
|
|
break;
|
|
|
|
case 27:
|
|
this->render.flatDepth = 0;
|
|
this->render.depthLayer = 0;
|
|
this->render.visibilityOptions[0] = 1;
|
|
this->render.shadowScale = 2.0f;
|
|
break;
|
|
}
|
|
return;
|
|
|
|
case AM_SETPOS2: {
|
|
int offset = 0;
|
|
switch (this->m_type) {
|
|
case MET_MISS:
|
|
this->m_baseX = this->render.position.x;
|
|
return;
|
|
|
|
case MET_NUMBER_TOTAL:
|
|
offset = 15;
|
|
case MET_NUMBER:
|
|
case MET_NUMBER_CRITICAL:
|
|
case MET_NUMBER_HALF:
|
|
this->SetSpriteName(ResourceMgr::Instance(), FormatOwnedString("%s.spr", g_session.m_damageResourceName.c_str()).c_str());
|
|
this->SetActionName(ResourceMgr::Instance(), FormatOwnedString("%s.act", g_session.m_damageResourceName.c_str()).c_str());
|
|
this->render.animation = 0;
|
|
this->render.previousAnimation = 0;
|
|
this->render.position.x = position->x;
|
|
this->render.position.y = position->y;
|
|
this->render.position.z = position->z;
|
|
this->render.position.y -= static_cast<float>(offset + 12);
|
|
this->m_baseY = this->render.position.y;
|
|
break;
|
|
|
|
case MET_CRITICAL_EFFECT:
|
|
case MET_LUCKY_EFFECT:
|
|
case MET_BIRD:
|
|
case 19:
|
|
case 20:
|
|
return;
|
|
|
|
default:
|
|
if (this->m_type != 114) {
|
|
return;
|
|
}
|
|
|
|
this->SetSpriteName(ResourceMgr::Instance(), FormatOwnedString("%s.spr", g_session.m_damageResourceName.c_str()).c_str());
|
|
this->SetActionName(ResourceMgr::Instance(), FormatOwnedString("%s.act", g_session.m_damageResourceName.c_str()).c_str());
|
|
this->render.animation = 0;
|
|
this->render.previousAnimation = 0;
|
|
this->render.position.x = position->x;
|
|
this->render.position.y = position->y;
|
|
this->render.position.z = position->z;
|
|
this->m_baseX = this->render.position.x;
|
|
this->render.position.y -= 12.0f;
|
|
this->m_baseY = this->render.position.y;
|
|
break;
|
|
}
|
|
|
|
this->render.curMotion = d;
|
|
this->render.visible = 1;
|
|
if (d < 0 || d > 11) {
|
|
this->render.curMotion = 0;
|
|
}
|
|
|
|
this->render.spriteOffsetX = f;
|
|
this->m_digit = f;
|
|
this->render.scale = 5.0f;
|
|
this->m_scale = 5.0f;
|
|
this->render.depthLayer = static_cast<std::uint32_t>(-2);
|
|
this->render.motionStartTime = timeGetTime();
|
|
return;
|
|
}
|
|
|
|
case AM_SETPOS: {
|
|
this->render.visible = 1;
|
|
this->render.motionStartTime = timeGetTime();
|
|
if ((static_cast<std::int64_t>(e) << 32 | static_cast<std::uint32_t>(d)) != 0) {
|
|
const std::string* names = reinterpret_cast<const std::string*>(d);
|
|
this->SetSpriteName(ResourceMgr::Instance(), names[0].c_str());
|
|
this->SetActionName(ResourceMgr::Instance(), names[1].c_str());
|
|
}
|
|
|
|
if ((static_cast<std::int64_t>(g) << 32 | static_cast<std::uint32_t>(f)) == 1000) {
|
|
this->SetAction(10, 4, 0);
|
|
this->render.state = 10000;
|
|
this->render.color = 0xFFFF0000;
|
|
} else {
|
|
this->SetAction(f, 4, 1);
|
|
}
|
|
|
|
switch (this->m_type) {
|
|
case MET_CART:
|
|
case 27:
|
|
case 31:
|
|
break;
|
|
|
|
case MET_ICEBREAKEFFECT:
|
|
this->render.position.x = position->x;
|
|
this->render.position.y = position->y;
|
|
this->render.position.z = position->z;
|
|
break;
|
|
|
|
case MET_ANGELUS_EFFECT:
|
|
case MET_CRUSIS_EFFECT:
|
|
this->render.curMotion = 1;
|
|
this->render.visible = 0;
|
|
break;
|
|
|
|
case MET_MISS:
|
|
this->render.position.x = position->x;
|
|
this->render.position.y = position->y;
|
|
this->render.position.z = position->z;
|
|
this->m_baseX = this->render.position.x;
|
|
this->render.position.y -= 12.0f;
|
|
this->render.curMotion = 0;
|
|
this->render.scale = 5.0f;
|
|
this->m_scale = 5.0f;
|
|
this->m_baseY = this->render.position.y;
|
|
this->render.depthLayer = static_cast<std::uint32_t>(-5);
|
|
break;
|
|
|
|
case MET_CRITICAL_EFFECT:
|
|
case MET_BLUE_EFFECT:
|
|
this->render.position.x = position->x;
|
|
this->render.position.y = position->y;
|
|
this->render.position.z = position->z;
|
|
this->render.position.y -= 12.0f;
|
|
this->render.curMotion = 1;
|
|
this->render.scale = 3.0f;
|
|
this->m_scale = 3.0f;
|
|
this->render.depthLayer = static_cast<std::uint32_t>(-5);
|
|
this->m_baseY = this->render.position.y;
|
|
this->render.color = 0xFFAAAAAA;
|
|
break;
|
|
|
|
case 19:
|
|
this->render.position.x = position->x;
|
|
this->render.position.y = position->y;
|
|
this->render.position.z = position->z;
|
|
this->render.position.y -= 12.0f;
|
|
this->render.curMotion = 0;
|
|
this->render.depthLayer = static_cast<std::uint32_t>(-5);
|
|
this->m_baseY = this->render.position.y;
|
|
break;
|
|
|
|
case MET_GUARD:
|
|
this->render.position.x = position->x;
|
|
this->render.position.y = position->y;
|
|
this->render.position.z = position->z;
|
|
this->render.position.y -= 2.0f;
|
|
this->render.curMotion = 0;
|
|
this->render.scale = 1.0f;
|
|
this->m_scale = 1.0f;
|
|
this->render.depthLayer = static_cast<std::uint32_t>(-5);
|
|
this->m_baseY = this->render.position.y;
|
|
break;
|
|
|
|
default:
|
|
this->render.position.x = position->x;
|
|
this->render.position.y = position->y;
|
|
this->render.position.z = position->z;
|
|
this->render.position.y -= 20.0f;
|
|
break;
|
|
}
|
|
return;
|
|
}
|
|
}
|
|
|
|
this->EffectActor::SendMsg(sender, message, a, b, c, d, e, f, g, h, i, 0, 0, 0, 0);
|
|
}
|