float scheduling issue
| 98 | |
| 99 | // float scheduling issue |
| 100 | void zNPCTiki_InitFX(zScene* scene) |
| 101 | { |
| 102 | cloudEmitter = zParEmitterFind("PAREMIT_THUNDER_CLOUD"); |
| 103 | if (cloudEmitter == NULL) |
| 104 | { |
| 105 | cloudEmitter = zParEmitterFind("PAREMIT_CLOUD"); |
| 106 | } |
| 107 | |
| 108 | // clang-format off |
| 109 | thunderEmitterInfo.custom_flags = 0xf5e; |
| 110 | thunderEmitterInfo.vel.x = 0.0f; |
| 111 | thunderEmitterInfo.vel.y = -0.3f; |
| 112 | thunderEmitterInfo.vel.z = 0.0f; |
| 113 | thunderEmitterInfo.vel_angle_variation = DEG2RAD(270); |
| 114 | thunderEmitterInfo.rate.set(100.0f, 100.0f, 1.0f, 0); |
| 115 | thunderEmitterInfo.life.set(2.0f, 2.0f, 1.0f, 0); |
| 116 | thunderEmitterInfo.size_birth.set(0.8f, 0.8f, 1.0f, 0); |
| 117 | thunderEmitterInfo.size_death.set(0.0f, 0.0f, 1.0f, 0); |
| 118 | thunderEmitterInfo.color_birth[0].set(75.0f, 75.0f, 1.0f, 0); |
| 119 | thunderEmitterInfo.color_birth[1].set(75.0f, 75.0f, 1.0f, 0); |
| 120 | thunderEmitterInfo.color_birth[2].set(75.0f, 75.0f, 1.0f, 0); |
| 121 | thunderEmitterInfo.color_birth[3].set(0.0f, 0.0f, 1.0f, 0); |
| 122 | thunderEmitterInfo.color_death[0].set(0.0f, 0.0f, 1.0f, 0); |
| 123 | thunderEmitterInfo.color_death[1].set(0.0f, 0.0f, 1.0f, 0); |
| 124 | thunderEmitterInfo.color_death[2].set(0.0f, 0.0f, 1.0f, 0); |
| 125 | thunderEmitterInfo.color_death[3].set(255.0f, 255.0f, 1.0f, 0); |
| 126 | loveyEmitterInfo.custom_flags = 0xf5e; |
| 127 | loveyEmitterInfo.vel.x = 0.0f; |
| 128 | loveyEmitterInfo.vel.y = -0.5f; |
| 129 | loveyEmitterInfo.vel.z = 0.0f; |
| 130 | loveyEmitterInfo.vel_angle_variation = DEG2RAD(90); |
| 131 | loveyEmitterInfo.rate.set(100.0f, 100.0f, 1.0f, 0); |
| 132 | loveyEmitterInfo.life.set(2.0f, 2.0f, 1.0f, 0); |
| 133 | loveyEmitterInfo.size_birth.set(0.5f, 0.5f, 1.0f, 0); |
| 134 | loveyEmitterInfo.size_death.set(0.3f, 0.3f, 1.0f, 0); |
| 135 | loveyEmitterInfo.color_birth[0].set(255.0f, 255.0f, 1.0f, 0); |
| 136 | loveyEmitterInfo.color_birth[1].set(175.0f, 175.0f, 1.0f, 0); |
| 137 | loveyEmitterInfo.color_birth[2].set(175.0f, 175.0f, 1.0f, 0); |
| 138 | loveyEmitterInfo.color_birth[3].set(255.0f, 255.0f, 1.0f, 0); |
| 139 | loveyEmitterInfo.color_death[0].set(255.0f, 255.0f, 1.0f, 0); |
| 140 | loveyEmitterInfo.color_death[1].set(175.0f, 175.0f, 1.0f, 0); |
| 141 | loveyEmitterInfo.color_death[2].set(175.0f, 175.0f, 1.0f, 0); |
| 142 | loveyEmitterInfo.color_death[3].set(0.0f, 0.0f, 1.0f, 0); |
| 143 | // clang-format on |
| 144 | |
| 145 | RwTexture* tex = (RwTexture*)xSTFindAsset(xStrHash("target"), 0); |
| 146 | sHelmetRast = (tex) ? tex->raster : NULL; |
| 147 | |
| 148 | NPCC_MakeLightningInfo(NPC_LYT_TIKITHUNDER, &sThunderLightningInfo); |
| 149 | sThunderLightningInfo.time = 0.3f; |
| 150 | } |
| 151 | |
| 152 | void zNPCTiki_ExplodeFX(zNPCTiki* tiki) |
| 153 | { |
no test coverage detected