Decompile fn_19170 (CScatterEffect::Slot01)
Batch #13229 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_19170 CScatterEffect::Slot01: logic confirmed by peer review Peer-reviewed-by: Tanke, Toshiro, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
05b278b9d5
commit
418d1a1b00
1 changed files with 4 additions and 4 deletions
|
|
@ -40,10 +40,10 @@ void CScatterEffect::Slot01() {
|
|||
this->unknown_002C = 300;
|
||||
particle->SetSprite("이팩트\\sakura01.spr");
|
||||
particle->SetAction("이팩트\\sakura01.act");
|
||||
particle->scale = static_cast<float>(std::max(rand() % 6, 0) + 22) / 70.0f;
|
||||
particle->frameDelay = static_cast<float>(std::max(rand() % 3, 0) + 2) * 0.15f;
|
||||
*reinterpret_cast<float*>(&particle->unknown_00C4) = static_cast<float>(std::max(rand() % 360, 0));
|
||||
const int angle = std::max(rand() % 360, 0);
|
||||
particle->scale = static_cast<float>(std::max(0, rand() % 6) + 22) / 70.0f;
|
||||
particle->frameDelay = static_cast<float>(std::max(0, rand() % 3) + 2) * 0.15f;
|
||||
*reinterpret_cast<float*>(&particle->unknown_00C4) = static_cast<float>(std::max(0, rand() % 360));
|
||||
const int angle = std::max(0, rand() % 360);
|
||||
particle->velocity.x = 0.0f;
|
||||
particle->velocity.y = 0.0f;
|
||||
particle->velocity.z = 0.0f;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue