21 sceVu0Normalize(direction, direction);
22 sceVu0ScaleVectorXYZ(step, direction, 2.0f);
24 for (
int particle = 0; particle < 24; particle++) {
26 float start_x = origin[0];
27 float distance = (float) particle;
35 float fade = distance * 8.0f;
40 *(
int *) &
opacity[63] = collision_damage;
49 sceVu0Normalize(direction, direction);
50 sceVu0ScaleVectorXYZ(step, direction, 2.0f);
54 for (
int particle = 0; particle < 24; particle++) {
59 size[particle +
start_index] = 3.0f + 0.3f * (float) particle + 3.0f * (
float) rand() / 2147483648.0f;
61 damage[particle] = collision_damage;
76 static int msg_cnt = 0;
85 for (
int particle = 0; particle < 24; particle++) {
86 if (
state[particle] != -1 &&
state[particle] == 0) {
88 size[particle] += 0.06f;
95 s8 weapon_element = NowWeaponHave->
best_elem;
97 attr_col->
hit[attr_col->
now_hit].
flags = GetWeaponElementAttr(weapon_element);
104 if (
opacity[particle] <= 32.0f) {
105 state[particle] = -1;
int Set(float *position, int damage, int life, float radius, float scale_rate, int target_mask, int kind, int flags, int attribute)