DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
rushmovi.cpp
1#pragma helper_mask_gpr 0x30
2#pragma helper_mask_fpr 0x1000
3#ifdef PAL
4#pragma argument_flag 0
5#pragma argument_flag_ones 91, 97, 98, 99, 104, 136, 164, 165, 166, 167
6#pragma argument_flag_ones 174, 175, 176, 177, 257, 258, 259, 268, 269, 270
7#pragma argument_flag_ones 304, 305, 306, 332, 334, 345, 347, 401, 403, 443
8#pragma argument_flag_ones 454, 464, 713, 723, 725, 733, 739, 742, 743, 744
9#pragma argument_flag_ones 782
10#else
11#pragma argument_flag 0
12#pragma argument_flag_ones 91, 97, 98, 99, 104, 136, 164, 165, 166, 167
13#pragma argument_flag_ones 174, 175, 176, 177, 252, 253, 254, 257, 258, 259
14#pragma argument_flag_ones 276, 277, 278, 304, 305, 306, 327, 329, 345, 347
15#pragma argument_flag_ones 401, 403, 442, 443, 454, 464, 713, 723, 725, 733
16#pragma argument_flag_ones 739, 742, 743, 744, 782
17#endif
18
19#include "common.h"
20
21#include <libgraph.h>
22#include <libpkt.h>
23#include <libvu0.h>
24
25#include <cmath>
26#include <cstdlib>
27#include <cstring>
28
29#include "camera.hpp"
30#include "camerafollow.hpp"
31#include "character.hpp"
32#include "dataalloc.hpp"
33#include "dataread.hpp"
34#include "frame.hpp"
35#include "framevu1.hpp"
36#include "gamepad.hpp"
37#include "main.hpp"
38#include "mathutil.hpp"
39#include "mds.hpp"
40#include "mglib.hpp"
41#include "object.hpp"
42#include "snd.hpp"
43#include "sound.hpp"
44#include "texture.hpp"
45#include "title/dispfade.hpp"
46#include "title/op_a.hpp"
47#include "title/op_b.hpp"
48#include "title/opening.hpp"
49#include "title/rushmovi.hpp"
50#include "title/script.hpp"
51#include "vutext.hpp"
52#include "wind.hpp"
53
54class OBJ_ANIME_SEQ {
55public:
56 char name[16];
57 int type;
58 int number;
59 char unk_18[8];
60 sceVu0FVECTOR start;
61 sceVu0FVECTOR unk_30;
62 float step_x;
63 float step_y;
64 float step_z;
65 float step_w;
66 sceVu0FVECTOR current;
67 CFrame *frames[10];
69 int unk_8C;
70
71 void Initialize();
72};
73
74/* The classes this movie places in the world, declared here rather than reached through headers of
75 their own because each is another unit's to type. Only the members this file touches are named;
76 the extents are the sizes the executable gives the objects below. */
77
78/* The rippling water plane the outdoor scenes stand on. The frame is where the plane sits in the
79 world. */
80class CWater {
81public:
82 char unk_00[176];
85 CWater();
86
87 void SetVertex(float *v0, float *v1, float *v2, float *v3);
88 void SetSize(int x, int y, CDataAlloc2<1> *buffer);
89 void SetParam(float wave_speed, float damping, float height_scale, float distortion);
90 void SetColor(u_char r, u_char g, u_char b, u_char a);
91 void Shake(int x, int y, float power);
92 void Hamon();
93 int DrawVu1(RenderInfo *info, sceVif1Packet *packet, u_long128 *parent_info);
94};
95
96/* Named rather than included, because a unit's include list is a dial on the order a call's
97 floating-point arguments are set up in and nothing here needs the definition: adding
98 renderinfo.h alone takes RushInit's three-float SetFollow out of the order the image has. */
99
100/* A frame parented to an object, which is what lets the world transform drive a model. */
101class CObjectFrame : public CObject {
102public:
103 CFrameVu1 *frame[4];
104 s32 rotation_changed;
105 s32 draw_on;
107 virtual void FrameObjectOnOff(char *name, int on);
108 virtual void Draw();
109
110 void SetFrame(CFrameVu1 *frame, int level);
111};
112
113/* One piece of scenery. The movie builds a table of them, hands each its model, and drives them
114 through the object dispatch like anything else in the world. */
115class CMapObject : public CObjectFrame {
116public:
118 CFrameVu1 *unk_D4;
121 float unk_E0;
122 int unk_E4;
123 int unk_E8;
124 char unk_EC[4];
125
126 CMapObject();
127
128 virtual void Draw();
129
130 void Initialize();
131 void DrawShadow(int fast);
132};
133
134/* The dust the running feet kick up, declared here for the same reason. */
136public:
137 char unk_00[208];
138
139 CRunEffect();
140
141 void Lighting(int on);
142 void Set(float *position);
143 void Step();
144 void Draw();
145};
146
147class CTexture;
148
149/* The movie's one fire, which is a light rather than a model. */
150class CFireOmni {
151public:
152 char unk_18[32];
153 sceVu0FVECTOR position;
154 s32 texture_set;
155 CTexture *core;
156 CTexture *glow;
157 s32 unk_3C;
158
159 CFireOmni();
160
161 void FireStep();
162 void FireCreate();
163
164 void SetPosition(float x, float y, float z) {
165 position[0] = 10.0f * x;
166 position[1] = 10.0f * y;
167 position[2] = 10.0f * z;
168 position[3] = 1.0f;
169 }
170
171 void DrawFire(int unused0, int unused1, CCamera *camera, float *colour, float scale, int layers, float camera_offset);
172};
173
174/* A run of frames the world draws as one. */
175class CMap {
176public:
177 char unk_00[2800];
178
179 void Initialize();
180 CMapObject *SetObject(CFrameVu1 *frame, int category_no, int handle);
181 CMapObject *SetObject(int no, CFrameVu1 *frame, int category_no, int handle);
182 CMapObject *GetObject(int no);
183 void Draw();
184};
185
186/* The overlay's own rectangle. Its constructor assigns x, y, w, h in that order, where
187 rect.h's assigns them in the other; the same split title.cpp and opening.cpp carry. */
188template <class T>
189class CRect {
190public:
191 T x;
192 T y;
193 T w;
194 T h;
196 CRect() {}
197
198 CRect(T left, T top, T width, T height) {
199 x = left;
200 y = top;
201 w = width;
202 h = height;
203 }
204};
205
206/* One piece of scenery the third scene lays out: the model file, where it stands and how far it is
207 turned about the vertical axis, in degrees. */
208struct MAP_INFO {
209 char *name;
210 float position[3];
211 float rotation;
212};
213
214void wait_now_loading_vsync();
215void InitializeDataBuffer();
216void InitObjAnime(CFrame *frame, OBJ_ANIME_SEQ *sequence);
217void ObjAnimePlay(OBJ_ANIME_SEQ *sequence);
218void MGMoveImage(sceGsTex0 *src, const CRect<int> &rect, sceGsTex0 *dst, int dsax, int dsay, int dir);
219void set2DSprite(sceVif1Packet *packet, CTexture *texture, const CRect<int> &dst, const CRect<int> &src, u_char alpha);
220void set2DSprite(sceVif1Packet *packet, CTexture *texture, const CRect<int> &dst, const CRect<int> &src, u_char r, u_char g, u_char b, u_char a);
221
222void MoveImageTest(sceVif1Packet *packet, int sbp, int sbw, int spsm, const CRect<int> &rect, int dbp, int dbw, int dpsm, int dsax, int dsay, int dir);
223
224CCameraFollow MainCamera__3(20.0f + 0.0f + 0.0f + 0.0f + 0.0f + 0.0f + 0.0f + 0.0f + 0.0f + 0.0f + 0.0f, 15.0f, 0.0f, 8.0f);
225static CDispFade DispFade;
226CFireOmni CFire__4;
227class CScript CScript;
228CWind Wind__4;
229CWater Water__2;
230char CharaTex[9];
231CDataAlloc2<1> CharaDataBuffer(-1);
232static tagFRAME_INF frame_info_cam[300];
233CCharacter Cam[4];
234static MOTION_INFO MotionInfo;
235CDataAlloc2<1> PathDataBuffer(-1);
236CDataAlloc2<1> WaterBuffer(-1);
237static CDataAlloc2<1> DummyDataBuffer(-1);
238CTexAnimeData TexAnimeDataMovie[30];
239CRunEffect CRunFx;
240
241/* The frame the opening movies point their camera at, which the dungeon also reads. */
242CFrame *OP_CharaFrame;
243
244static u_char bEnd;
245static int EndCnt;
246static int CameraMode;
247int SceneNp;
248float TitleAngle;
249static int StartDisp;
250int TitleFade;
251int TitleFadeCnt;
252int StartLightning;
253float atraGetStatusRate;
254
255/* One actor's face, as this scene animates it. The eyes and the mouth are two strips of frames
256 stacked bottom-up in one texture, and a tick copies the current frame of each over the model's
257 face plate. This scene's eye strip is three columns of ten rather than one column, which is what
258 the eye number is folded into two coordinates for below. */
259struct FACE_INFO {
260 char *plate;
261 char *strip;
262 int eye_bottom;
263 int eye_height;
264 int mouth_bottom;
265 int mouth_height;
266 int eye;
267 int mouth;
268 int strip_bottom;
269 int unk_24;
270 int unk_28;
271};
272
273static void MotionProcess();
274static void DrawProcess();
275static void SoundProcess();
276static void DataLoad();
277static void DrawProcA();
278static void DrawProcB();
279static void DrawProcC();
280static void DrawProcD();
281static void DrawProcE();
282static void DrawProcF();
283static void DrawProcG();
284static void DrawProcH();
285static void DrawProcI();
286static void DrawProcTitle();
287
288/* One actor's blinking and speaking. The eyes and the mouth are two strips of frames in one
289 texture, and a tick copies the current frame of each over the actor's face plate. This scene's
290 eye strip is three columns of ten frames rather than one column, so the eye number the script
291 holds picks the column as well as the row. */
292void FaceChange(int actor_no) {
293 static FACE_INFO face = {"c01d01", "c01d01an_4", 27, 48, 78, 44, 0, 0, 512, 3, 0};
294 CTexture *plate;
295 CTexture *strip;
296 int sbp;
297 int dbp;
298 int sbw;
299 int dbw;
300
301 sceVif1PkCnt(Vif1Packet, 0);
302 sceVif1PkOpenDirectCode(Vif1Packet, 0);
303 sceVif1PkOpenGifTag(Vif1Packet, *(u_long128 *) &GiftagAD);
304 sceVif1PkAddGsAD(Vif1Packet, SCE_GS_TEXFLUSH, 0);
305 sceVif1PkCloseGifTag(Vif1Packet);
306 sceVif1PkCloseDirectCode(Vif1Packet);
307
308 if (face.plate == 0) {
309 return;
310 }
311
312 plate = TexManager.GetTexture(face.plate, -1);
313 strip = TexManager.GetTexture(face.strip, -1);
314
315 if (plate == 0 || strip == 0) {
316 return;
317 }
318
319 sbp = strip->tex0 & 0x3fff;
320 dbp = plate->tex0 & 0x3fff;
321 sbw = (strip->tex0 >> 14) & 0x3f;
322 dbw = (plate->tex0 >> 14) & 0x3f;
323
324 face.eye = CScript__2.obj[actor_no].eye;
325
326 int eye = face.eye;
327 int column;
328
329 if (eye < 10) {
330 column = 0;
331 } else if (eye < 18) {
332 column = 128;
333 eye -= 10;
334 } else {
335 column = 256;
336 eye -= 18;
337 }
338
339 CRect<int> eyes(column, face.strip_bottom - face.eye_height * (eye + 1), 128, face.eye_height);
340
341 MoveImageTest(Vif1Packet, sbp, sbw, SCE_GS_PSMT8, eyes, dbp, dbw, SCE_GS_PSMT8, 0, 128 - face.eye_height - face.eye_bottom, 0);
342
343 face.mouth = CScript__2.obj[actor_no].mouth;
344
345 CRect<int> mouth(384, face.strip_bottom - face.mouth_height * (face.mouth + 1), 128, face.mouth_height);
346
347 MoveImageTest(Vif1Packet, sbp, sbw, SCE_GS_PSMT8, mouth, dbp, dbw, SCE_GS_PSMT8, 0, 128 - face.mouth_height - face.mouth_bottom, 0);
348
349 sceVif1PkCnt(Vif1Packet, 0);
350 sceVif1PkOpenDirectCode(Vif1Packet, 0);
351 sceVif1PkOpenGifTag(Vif1Packet, *(u_long128 *) &GiftagAD);
352 sceVif1PkAddGsAD(Vif1Packet, SCE_GS_TEXFLUSH, 0);
353 sceVif1PkCloseGifTag(Vif1Packet);
354 sceVif1PkCloseDirectCode(Vif1Packet);
355}
356
357void RushInit() {
358 wait_now_loading_vsync();
359 InitializeDataBuffer();
360 SetDataBuffer(&CharaDataBuffer, 490000);
361 SetDataBuffer(&PathDataBuffer, 30000);
362 SetDataBuffer(&MapDataBuffer, 260000);
363 SetDataBuffer(&WaterBuffer, 30000);
364 SetDataBuffer(&DummyDataBuffer, 10000);
365 SetDataBuffer(&TextureData, 250000);
366 SetPacketReadBuffer(50000, 360000);
367
368 MainCamera__3.SetDistance(80.0f);
369 MainCamera__3.SetHeight(0.0f);
370 MainCamera__3.SetFollow(0.0f, 0.0f, 0.0f);
371 MainCamera__3.Step(0);
372 MGSetRenderInfo(800.0f, 6.0f, 65535.0f);
373
374 wait_now_loading_vsync();
375 SndInitialize(4, 30, 4, 5);
376 SndSetReadBuffer(read_buffer);
377 SndSoundLoad(309);
378 SndAmbientPlay(0);
379 SndVoiceLoad(0);
380 SndBgmInit();
381 SndBgmLoad(25);
382 wait_now_loading_vsync();
383
384 StartReadBG();
385 CScript.load_no = RUSH_SCENE_A;
386 CScript.init_no = RUSH_SCENE_A;
387 DataLoad();
388 wait_now_loading_vsync();
389 CScript.Load("rmdat/rmdat.scr");
390
391 DispFade.FadeInit(128.0f);
392 DispFade.FadeOutStart(128.0f, 0);
393 bEnd = 0;
394 EndCnt = 0;
395 CameraMode = 1;
396 TitleAngle = 1.57f;
397 StartDisp = 1;
398 TitleFade = 0;
399 TitleFadeCnt = 0;
400 atraGetStatusRate = 0;
401 StartLightning = 0;
402}
403
404int RushLoop() {
405 ReadBG();
406 CScript.Step();
407 DataLoad();
408 MotionProcess();
409 DrawProcess();
410 DispFade.FadeIn(Vif1Packet);
411 DispFade.FadeOut(Vif1Packet);
412 SoundProcess();
413
414 if (!bEnd) {
415 if (GamePad.Down(PAD_START)) {
416 while (ReadBGSync())
417 ;
418
419 DispFade.FadeOutStart(8.0f, 0);
420 bEnd = 1;
421 SndBgmFadeOut(32, 0);
422 }
423 }
424
425 if (bEnd) {
426 if (EndCnt < 128) {
427 EndCnt += 8;
428 } else {
429 while (ReadBGSync())
430 ;
431
432 float black = 0.0f;
433 MGSetBGColor(black, black, black, 128.0f);
434 SndStopAllSe();
435 SndBgmStop();
436 SndAmbientStop();
437 SndStep();
438 return 1;
439 }
440 }
441
442 if (CScript.end) {
443 while (ReadBGSync())
444 ;
445
446 float black = 0.0f;
447 MGSetBGColor(black, black, black, 128.0f);
448 SndStopAllSe();
449 SndBgmStop();
450 SndAmbientStop();
451 SndStep();
452 return 1;
453 }
454
455 SndStep();
456 return 0;
457}
458
467static void MotionProcess() {
468 switch (CScript.fade) {
469 case TSFADE_IN_BLACK:
470#ifdef PAL_TIMING
471 DispFade.FadeInStart(1.2f * CScript.fade_speed, 0);
472#else
473 DispFade.FadeInStart(CScript.fade_speed, 0);
474#endif
475 CScript.fade = TSFADE_NONE;
476 break;
477 case TSFADE_OUT_BLACK:
478#ifdef PAL_TIMING
479 DispFade.FadeOutStart(1.2f * CScript.fade_speed, 0);
480#else
481 DispFade.FadeOutStart(CScript.fade_speed, 0);
482#endif
483 CScript.fade = TSFADE_NONE;
484 break;
485 case TSFADE_IN_WHITE:
486#ifdef PAL_TIMING
487 DispFade.FadeInStart(1.2f * CScript.fade_speed, 1);
488#else
489 DispFade.FadeInStart(CScript.fade_speed, 1);
490#endif
491 CScript.fade = TSFADE_NONE;
492 break;
493 case TSFADE_OUT_WHITE:
494#ifdef PAL_TIMING
495 DispFade.FadeOutStart(1.2f * CScript.fade_speed, 1);
496#else
497 DispFade.FadeOutStart(CScript.fade_speed, 1);
498#endif
499 CScript.fade = TSFADE_NONE;
500 break;
501 }
502
503 if (DispFade.GetRate() == 128.0) {
504 return;
505 }
506
507 if (CScript.scene == RUSH_SCENE_TITLE) {
508 return;
509 }
510
511 if (CScript.motion_req) {
512 MotionInfo.start = CScript.motion_start;
513 MotionInfo.end = CScript.motion_end;
514 MotionInfo.speed = CScript.motion_step;
515
517 SceneNp++;
518 }
519
520 Cam[SceneNp].motion_type.state.time = (float) CScript.motion_start;
521 Cam[SceneNp].motion_type.state.camera = &MainCamera__3;
522 CScript.motion_req = false;
523 }
524
525 if (Cam[SceneNp].motion_type.state.time > (float) (CScript.motion_end - 1)) {
526 Cam[SceneNp].motion_type.state.time = (float) (CScript.motion_end - 1);
527 }
528
529 for (int i = 0; i < OP_AnimeSeqRot - 1; i++) {
530 ObjAnimePlay(&OP_AnimeSeq[i]);
531 }
532
533 for (int i = 0; i < 9; i++) {
534 if (CScript.obj[i].disp) {
535 if (CScript.obj[i].motion_end != -1) {
536 if (Chara__3[i].motion_type.state.time > (float) (Chara__3[i].motion_type.motion_info[CScript.obj[i].motion].end - 1)) {
538 CScript.obj[i].motion_end = -1;
539 }
540 }
541
542 Chara__3[i].motion_type.state.blend_step = CScript.obj[i].step;
543
544 if (CScript.obj[i].step == 1.0f) {
545 if (CScript.obj[i].motion != Chara__3[i].motion_no) {
546 Chara__3[i].motion_type.state.time = (float) Chara__3[i].motion_type.motion_info[CScript.obj[i].motion].start;
547 Chara__3[i].motion_no = CScript.obj[i].motion;
548 Chara__3[i].motion_flags = 4;
549 Chara__3[i].motion_speed = -1.0f;
550 } else {
551 Chara__3[i].motion_no = CScript.obj[i].motion;
552 Chara__3[i].motion_flags = 0;
553 Chara__3[i].motion_speed = -1.0f;
554 }
555 } else {
556 Chara__3[i].motion_no = CScript.obj[i].motion;
557 Chara__3[i].motion_flags = 0;
558 Chara__3[i].motion_speed = -1.0f;
559 }
560 }
561 }
562
563 SetMotionEX(Cam[SceneNp].frame, &Cam[SceneNp].motion_type, &MotionInfo, &Cam[SceneNp].motion_type.state, frame_info_cam);
564
565 sceVu0FVECTOR wind_dir;
566
567 if (CScript.scene == RUSH_SCENE_A) {
568 wind_dir[0] = 0.2f;
569 wind_dir[2] = -0.2f;
570 wind_dir[1] = 0.0f;
571 wind_dir[3] = 0.0f;
572 } else {
573 wind_dir[0] = -0.2f;
574 wind_dir[2] = 0.2f;
575 wind_dir[1] = 0.0f;
576 wind_dir[3] = 0.0f;
577 }
578
579 Wind__4.SetDir(wind_dir);
580
581 switch (CScript.scene) {
582 case RUSH_SCENE_A:
583 Wind__4.SetVelocity(1.3f);
584 break;
585 case RUSH_SCENE_B:
586 Wind__4.SetVelocity(0.4f);
587 break;
588 case RUSH_SCENE_C:
589 Wind__4.SetVelocity(0.4f);
590 break;
591 case RUSH_SCENE_D:
592 Wind__4.SetVelocity(0.4f);
593 break;
594 case RUSH_SCENE_E:
595 Wind__4.SetVelocity(0.0f);
596 break;
597 case RUSH_SCENE_F:
598 Wind__4.SetVelocity(0.4f);
599 break;
600 case RUSH_SCENE_G:
601 Wind__4.SetVelocity(0.4f);
602 break;
603 case RUSH_SCENE_H:
604 Wind__4.SetVelocity(0.4f);
605 break;
606 case RUSH_SCENE_I:
607 Wind__4.SetVelocity(0.4f);
608 break;
609 case RUSH_SCENE_TITLE:
610 Wind__4.SetVelocity(0.3f);
611 break;
612 }
613
614 if (CScript.scene == RUSH_SCENE_H) {
615 Chara__3[1].wind = (int) &Wind__4;
616 } else {
617 Chara__3[0].wind = (int) &Wind__4;
618 }
619
620 Wind__4.Step();
621
622 typedef float MotionLocal0, MotionLocal1, MotionLocal2, MotionLocal3, MotionLocal4, MotionLocal5, MotionLocal6, MotionLocal7, MotionLocal8, MotionLocal9, MotionLocal10, MotionLocal11, MotionLocal12, MotionLocal13, MotionLocal14, MotionLocal15;
623 char *opening_frames[9] = {
624 "c12a", "c12a", "c08a", "c08a", "e04a1", "e04a2", "e04a3", "e04a4", "e04a5"};
625 char *scene_frames[9] = {
626 "chr_a", "chr_b", "chr_c", "chr_d", "chr_e", "chr_f", "chr_g", "chr_h", "chr_i"};
627 sceVu0FMATRIX matrix;
628 CFrame *frame;
629
630 for (int i = 0; i < 9; i++) {
631 if (CScript.obj[i].disp) {
632 if (CScript.scene == RUSH_SCENE_A) {
633 frame = Cam[SceneNp].frame->SearchFrame(opening_frames[i]);
634 } else {
635 frame = Cam[SceneNp].frame->SearchFrame(scene_frames[i]);
636 }
637
638 if (frame) {
639 if (CScript.scene == RUSH_SCENE_A || CScript.camera_start == 16 || (CScript.camera_start == 17 && i == 0)) {
640 Chara__3[i].SetPosition(0.0f, 0.0f, 0.0f);
641 Chara__3[i].SetRotation(0.0f, 0.0f, 0.0f);
642 Chara__3[i].frame->SetReference(frame);
643 } else {
644 frame->GetLWMatrix(matrix);
645
646#ifdef PAL
647 Chara__3[i].SetRotation(0.0f, atan2f(matrix[2][0], matrix[2][2]), 0.0f);
648#else
649 float angle = atan2f(matrix[2][0], matrix[2][2]);
650 float zero = 0.0f;
651
652 Chara__3[i].SetRotation(zero, angle, zero);
653#endif
654 float x = matrix[3][0];
655 float y = matrix[3][1];
656 float z = matrix[3][2];
657 Chara__3[i].SetPosition(x, y, z);
658 }
659 }
660 }
661 }
662
663 int scene = CScript.scene;
664
665 if (scene == RUSH_SCENE_B || scene == RUSH_SCENE_D || scene == RUSH_SCENE_F || scene == RUSH_SCENE_H) {
666 if (scene != RUSH_SCENE_H) {
667 frame = Chara__3[0].frame->SearchFrame("weapon");
668 } else {
669 frame = Chara__3[1].frame->SearchFrame("weapon");
670 }
671
672 if (frame) {
673 frame->GetLWMatrix(matrix);
674 sceVu0Normalize(matrix[0], matrix[0]);
675 sceVu0Normalize(matrix[1], matrix[1]);
676 sceVu0Normalize(matrix[2], matrix[2]);
677 Chara__3[8].SetPosition((float) (scene & 0), 0.0f, 0.0f);
678 Chara__3[8].SetRotation(0.0f, 0.0f, 0.0f);
679 Chara__3[8].frame->SetTransMatrix(matrix);
680 }
681 }
682
683 if (scene == RUSH_SCENE_B) {
684 if (CScript.camera_start == 5) {
685 CScript.obj[7].disp = true;
686 }
687
688 if (CScript.obj[7].disp) {
689 frame = Chara__3[0].frame->SearchFrame("dcol");
690
691 if (frame) {
692 frame->GetLWMatrix(matrix);
693 sceVu0Normalize(matrix[0], matrix[0]);
694 sceVu0Normalize(matrix[1], matrix[1]);
695 sceVu0Normalize(matrix[2], matrix[2]);
696 typedef float m7p0, m7p1, m7p2, m7p3, m7p4, m7p5, m7p6, m7p7, m7p8, m7p9, m7p10, m7p11, m7p12, m7p13, m7p14, m7p15, m7p16, m7p17, m7p18, m7p19, m7p20, m7p21, m7p22, m7p23, m7p24, m7p25, m7p26, m7p27, m7p28, m7p29, m7p30, m7p31;
697 Chara__3[7].SetPosition(0.0f, 0.0f, 0.0f);
698 Chara__3[7].SetRotation(0.0f, 0.0f, 0.0f);
699 Chara__3[7].frame->SetTransMatrix(matrix);
700 }
701
702 static int old = 0;
703
704 int cam_frame = (int) Cam[SceneNp].motion_type.state.time;
705
706 if (old != cam_frame && (cam_frame == 12 || cam_frame == 17 || cam_frame == 52 || cam_frame == 111)) {
707 CScript.obj[7].motion = 0;
708 Chara__3[7].motion_no = 0;
709 Chara__3[7].motion_flags = 4;
710 Chara__3[7].motion_speed = -1.0f;
711 old = cam_frame;
712 } else if (old != cam_frame && cam_frame == 119) {
713 CScript.obj[7].motion = 1;
714 Chara__3[7].motion_no = 1;
715 Chara__3[7].motion_flags = 4;
716 Chara__3[7].motion_speed = -1.0f;
717 old = cam_frame;
718 } else {
719 Chara__3[7].motion_no = CScript.obj[7].motion;
720 Chara__3[7].motion_flags = 2;
721 Chara__3[7].motion_speed = -1.0f;
722 }
723 }
724 }
725
726 static int iwacnt = 0;
727
728 if (CScript.camera_start == 19) {
729 if (iwacnt == 0) {
730 Chara__3[2].SetPosition(260.26f, 507.76f, 520.5f);
731 Chara__3[2].SetRotation(0.0f, 1.92f, 0.0f);
732 Chara__3[2].motion_no = 0;
733 Chara__3[2].motion_flags = 0;
734 Chara__3[2].motion_speed = -1.0f;
735 Chara__3[2].motion_type.state.time = 2.0f;
736 }
737
738 if (iwacnt == 330) {
739 Chara__3[2].SetPosition(260.26f, 507.76f, 520.5f);
740 Chara__3[2].SetRotation((float) (iwacnt & 0), 1.92f, 0.0f);
741 Chara__3[2].motion_no = 1;
742 Chara__3[2].motion_flags = 4;
743 Chara__3[2].motion_speed = -1.0f;
744 Chara__3[2].motion_type.state.time = 2.0f;
745 }
746
747 if (iwacnt == 331) {
748 Chara__3[2].motion_no = 1;
749 Chara__3[2].motion_flags = 0;
750 Chara__3[2].motion_speed = -1.0f;
751 }
752
753 iwacnt++;
754 } else {
755 iwacnt = 0;
756 }
757}
758
767static void DrawProcess() {
768 if (DispFade.GetRate() == 128.0) {
769 return;
770 }
771
772 sceVu0FVECTOR position;
773 sceVu0FMATRIX camera;
774 sceVu0FMATRIX view;
775 sceVu0FMATRIX unit;
776
777 MainCamera__3.GetPos(position);
778 SndSetCamera(&MainCamera__3);
779 MainCamera__3.GetCameraMatrix(camera);
780 MainCamera__3.Step(1);
781
782 sceVu0UnitMatrix(unit);
783 sceVu0MulMatrix(view, unit, camera);
784 MGSetViewMatrix(view, position);
785
786 sceVif1PkCall(Vif1Packet, (u_long128 *) Vu_prog0f, 0);
787 sceVif1PkTerminate(Vif1Packet);
788
789 switch (CScript.scene) {
790 case RUSH_SCENE_A:
791 DrawProcA();
792 break;
793 case RUSH_SCENE_B:
794 DrawProcB();
795 break;
796 case RUSH_SCENE_C:
797 DrawProcC();
798 break;
799 case RUSH_SCENE_D:
800 DrawProcD();
801 break;
802 case RUSH_SCENE_E:
803 DrawProcE();
804 break;
805 case RUSH_SCENE_F:
806 DrawProcF();
807 break;
808 case RUSH_SCENE_G:
809 DrawProcG();
810 break;
811 case RUSH_SCENE_H:
812 DrawProcH();
813 break;
814 case RUSH_SCENE_I:
815 DrawProcI();
816 break;
817 case RUSH_SCENE_TITLE:
818 DrawProcTitle();
819 break;
820 }
821
822 if (CScript.scene != RUSH_SCENE_TITLE) {
823 static int fade = 0;
824
825 if (StartDisp) {
826 TexManager.ReloadTexture(Vif1Packet, 20);
827#ifdef PAL
828 set2DSprite(GetVif1Packet(), TexManager.GetTexture("start2", -1), CRect<int>(192, 392, 256, 32), CRect<int>(0, 0, 256, 32), fade);
829#else
830 set2DSprite(GetVif1Packet(), TexManager.GetTexture("start2", -1), CRect<int>(192, 360, 256, 32), CRect<int>(0, 0, 256, 32), fade);
831#endif
832 fade = (fade + 2) & 127;
833 }
834
835 if (GamePad.Down(PAD_TRIANGLE | PAD_CIRCLE | PAD_CROSS | PAD_SQUARE)) {
836 StartDisp ^= 1;
837 }
838
839 if (!StartDisp) {
840 fade = 0;
841 }
842 }
843
844 sceGsTex0 back_tex;
845
846 MGGetFBuffBackTex(&back_tex);
847
848 CTexture texture;
849
850 texture.tex0 = *(u_long *) &back_tex;
851 set2DSprite(Vif1Packet, &texture, CRect<int>(0, 0, 640, SCREEN_HEIGHT), CRect<int>(0, 0, 640, SCREEN_HALF_HEIGHT), 128, 128, 128, 35);
852}
853
862static void SoundProcess() {
863 if (CScript.bgm_fade) {
864 SndBgmFadeOut(64, 0);
865 CScript.bgm_fade = 0;
866 }
867
868 if (CScript.scene == RUSH_SCENE_A) {
869 static int mus = 0;
870
871 if (CScript.camera_start == 1) {
872 if (!mus) {
873 SndBgmPlay(0);
874 mus = 1;
875 }
876 } else {
877 mus = 0;
878 }
879 }
880
881 static int ambi = 0;
882
883 if (CScript.scene == RUSH_SCENE_TITLE) {
884 if (!ambi) {
885 SndAmbientStop();
886 ambi = 1;
887 }
888 } else {
889 ambi = 0;
890 }
891
892 static int bat = 0;
893
894 if (CScript.scene == RUSH_SCENE_A && Cam[SceneNp].motion_type.state.time > 10.0f) {
895 if (!bat) {
896 CFrame *frame = Cam[SceneNp].frame->SearchFrame("e04a5");
897
898 if (frame) {
899 sceVu0FMATRIX matrix;
900
901 frame->GetLWMatrix(matrix);
902
903 sceVu0FVECTOR position;
904
905 position[0] = matrix[3][0];
906 position[1] = matrix[3][1];
907 position[2] = matrix[3][2];
908 SndSePlay(SE_RUSH_IMPACT, position, 100.0f, 1000.0f);
909 }
910 }
911
912 bat++;
913
914 if (bat > 32) {
915 bat = 0;
916 }
917 } else {
918 bat = 0;
919 }
920
921 if ((CScript.scene == RUSH_SCENE_A && Cam[SceneNp].motion_type.state.time > 10.0f) || (CScript.scene == RUSH_SCENE_H && Cam[SceneNp].motion_type.state.time > 10.0f)) {
922 static int wait = 0;
923
924 if (CScript.scene == RUSH_SCENE_A) {
925 CFrame *frame = Cam[SceneNp].frame->SearchFrame("c12a");
926 int chara_frame = (int) Chara__3[1].motion_type.state.time;
927
928 if (wait == 0) {
929 if (chara_frame == 10) {
930 if (frame) {
931 sceVu0FMATRIX matrix;
932
933 frame->GetLWMatrix(matrix);
934
935 sceVu0FVECTOR position;
936
937 position[0] = matrix[3][0];
938 position[1] = matrix[3][1];
939 position[2] = matrix[3][2];
940 SndSePlay(SE_RUSH_LOW_BUMP, position, 500.0f, 3000);
941 }
942
943 wait = 5;
944 }
945 } else if (wait > 0) {
946 wait--;
947 }
948 } else {
949 CFrame *frame = Cam[SceneNp].frame->SearchFrame("chr_a");
950 int chara_frame = (int) Chara__3[0].motion_type.state.time;
951
952 if (wait == 0) {
953 if (chara_frame == 20) {
954 if (frame) {
955 sceVu0FMATRIX matrix;
956
957 frame->GetLWMatrix(matrix);
958
959 sceVu0FVECTOR position;
960
961 position[0] = matrix[3][0];
962 position[1] = matrix[3][1];
963 position[2] = matrix[3][2];
964 SndSePlay(SE_RUSH_LOW_BUMP, position, 500.0f, 3000);
965 }
966
967 wait = 5;
968 }
969 } else if (wait > 0) {
970 wait--;
971 }
972 }
973 }
974
975 static int wait = 0;
976
977 if (wait == 0) {
978 int cam_frame = (int) Cam[SceneNp].motion_type.state.time;
979
980 switch (CScript.camera_start) {
981 case 4:
982 if (cam_frame == 30) {
983 SndSePlay(SE_AMBIENT_TOWN_PATTER, -1, 0);
984 SndSetSeVolf(SE_AMBIENT_TOWN_PATTER, 0.75f, 0);
985 wait = 5;
986 }
987
988 break;
989 case 5:
990 if (cam_frame == 10) {
991 SndSetSeVolf(SE_AMBIENT_TOWN_PATTER, 0.65f, 0);
992 SndSePlay(SE_RUSH_CRACK, -1, 0);
993 wait = 5;
994 }
995
996 if (cam_frame == 17) {
997 SndSePlay(SE_RUSH_CRACK_2, -1, 0);
998 wait = 5;
999 }
1000
1001 if (cam_frame == 23) {
1002 SndSePlay(SE_RUSH_TAP, -1, 0);
1003 wait = 5;
1004 }
1005
1006 if (cam_frame == 31) {
1007 SndSePlay(SE_RUSH_TAP_2, -1, 0);
1008 wait = 5;
1009 }
1010
1011 if (cam_frame == 46) {
1012 SndSePlay(SE_WORLD_MAP_OPEN, -1, 0);
1013 wait = 5;
1014 }
1015
1016 if (cam_frame == 50) {
1017 SndSePlay(SE_CHARA_SHOUT_3, -1, 0);
1018 SndSePlay(SE_CHARA_ACTION_4, -1, 0);
1019 wait = 5;
1020 }
1021
1022 if (cam_frame == 53) {
1023 SndSePlay(SE_RUSH_HISS, -1, 0);
1024 wait = 5;
1025 }
1026
1027 if (cam_frame == 62) {
1028 SndSePlay(SE_RUSH_TAP_2, -1, 0);
1029 wait = 5;
1030 }
1031
1032 if (cam_frame == 65) {
1033 SndSePlay(SE_BOX_OPEN, -1, 0);
1034 wait = 5;
1035 }
1036
1037 if (cam_frame == 97) {
1038 SndSePlay(SE_RUSH_TAP, -1, 0);
1039 wait = 5;
1040 }
1041
1042 if (cam_frame == 113) {
1043 SndSePlay(SE_CHARA_ACTION, -1, 0);
1044 SndSePlay(SE_RUSH_CRACK_2, -1, 0);
1045 wait = 5;
1046 }
1047
1048 if (cam_frame == 119) {
1049 SndSePlay(SE_CHARA_ACTION_2, -1, 0);
1050 SndSePlay(SE_CHARA_SHOUT, -1, 0);
1051 SndSePlay(SE_MONSTER_HIT, -1, 0);
1052 wait = 5;
1053 }
1054
1055 if (cam_frame == 124) {
1056 SndSePlay(SE_RUSH_RUSTLE, -1, 0);
1057 wait = 5;
1058 }
1059
1060 if (cam_frame == 130) {
1061 SndSePlay(SE_RUSH_CRACK_3, -1, 0);
1062 wait = 5;
1063 }
1064
1065 break;
1066 case 6:
1067 if (cam_frame == 47) {
1068 SndSePlay(SE_RUSH_BRIGHT_SWELL, -1, 0);
1069 wait = 10;
1070 }
1071
1072 if (cam_frame == 124) {
1073 SndSeStop(SE_AMBIENT_TOWN_PATTER, 0);
1074 wait = 5;
1075 }
1076
1077 break;
1078 case 8:
1079 if (cam_frame == 20) {
1080 SndSePlay(SE_RUSH_WHOOSH, -1, 0);
1081 wait = 5;
1082 }
1083
1084 if (cam_frame == 37) {
1085 SndSePlay(SE_WORLD_MAP_OPEN, -1, 0);
1086 wait = 5;
1087 }
1088
1089 if (cam_frame == 57) {
1090 SndSePlay(SE_CHARA_ACTION, -1, 0);
1091 wait = 4;
1092 }
1093
1094 if (cam_frame == 60) {
1095 SndSePlay(SE_MONSTER_HIT, -1, 0);
1096 wait = 5;
1097 }
1098
1099 if (cam_frame == 71) {
1100 SndSePlay(SE_WORLD_MAP_OPEN, -1, 0);
1101 wait = 5;
1102 }
1103
1104 if (cam_frame == 86) {
1105 SndSePlay(SE_RUSH_LONG_SWELL, -1, 0);
1106 wait = 5;
1107 }
1108
1109 break;
1110 case 11:
1111 if (cam_frame == 140) {
1112 SndSePlay(SE_RUSH_DULL_KNOCK, -1, 0);
1113 wait = 10;
1114 }
1115
1116 if (cam_frame == 145) {
1117 SndSePlay(SE_RUSH_DULL_KNOCK, -1, 0);
1118 wait = 10;
1119 }
1120
1121 if (cam_frame == 158) {
1122 SndSePlay(SE_RUSH_SWELLING_TONE, -1, 0);
1123 wait = 10;
1124 }
1125
1126 break;
1127 case 12:
1128 if (cam_frame == 117) {
1129 SndSePlay(SE_RUSH_DULL_KNOCK_2, -1, 0);
1130 wait = 10;
1131 }
1132
1133 if (cam_frame == 160) {
1134 SndSePlay(SE_RUSH_DEEP_TONE, -1, 0);
1135 wait = 10;
1136 }
1137
1138 break;
1139 case 14:
1140 if (cam_frame == 87) {
1141 SndSePlay(SE_RUSH_LOW_THUMP, -1, 0);
1142 wait = 3;
1143 }
1144
1145 break;
1146 case 15:
1147 if (cam_frame == 10) {
1148 SndSePlay(SE_RUSH_CLACK, -1, 0);
1149 SndSePlay(SE_RUSH_RISING_CHIRP, -1, 0);
1150 wait = 5;
1151 }
1152
1153 if (cam_frame == 18) {
1154 SndSePlay(SE_RUSH_KNOCK, -1, 0);
1155 wait = 5;
1156 }
1157
1158 if (cam_frame == 40) {
1159 SndSePlay(SE_RUSH_CLACK_2, -1, 0);
1160 wait = 5;
1161 }
1162
1163 if (cam_frame == 52) {
1164 SndSePlay(SE_RUSH_KNOCK, -1, 0);
1165 wait = 5;
1166 }
1167
1168 if (cam_frame == 72) {
1169 SndSePlay(SE_RUSH_FALLING_CHIRP, -1, 0);
1170 wait = 5;
1171 }
1172
1173 if (cam_frame == 88) {
1174 SndSePlay(SE_RUSH_SCRAPE, -1, 0);
1175 SndSePlay(SE_RUSH_BRIGHT_HIT, -1, 0);
1176 wait = 5;
1177 }
1178
1179 if (cam_frame == 94) {
1180 SndSePlay(SE_RUSH_RISING_SWELL, -1, 0);
1181 wait = 5;
1182 }
1183
1184 break;
1185 case 17:
1186 if (cam_frame == 2) {
1187 SndSePlay(SE_DRAN_FIELD_START, -1, 0);
1188 wait = 3;
1189 }
1190
1191 if (cam_frame == 40) {
1192 SndSePlay(SE_RUSH_LONG_NOISE, -1, 0);
1193 wait = 3;
1194 }
1195
1196 if (cam_frame == 70) {
1197 SndSePlay(SE_DRAN_FIELD_START, -1, 0);
1198 SndSePlay(SE_RUSH_LONG_RUMBLE, -1, 0);
1199 wait = 3;
1200 }
1201
1202 break;
1203 case 18:
1204 if (cam_frame == 2) {
1205 SndSePlay(SE_RUSH_LOW_HUM, -1, 0);
1206 SndSePlay(SE_RUSH_LOW_SWELL, -1, 0);
1207 wait = 5;
1208 }
1209
1210 break;
1211 case 19:
1212 if (cam_frame == 26) {
1213 SndSePlay(SE_RUSH_LOW_TONE, -1, 0);
1214 wait = 5;
1215 }
1216
1217 if (cam_frame == 56) {
1218 SndSePlay(SE_RUSH_LOW_TONE, -1, 0);
1219 wait = 5;
1220 }
1221
1222 if (cam_frame == 86) {
1223 SndSePlay(SE_RUSH_LOW_TONE, -1, 0);
1224 wait = 5;
1225 }
1226
1227 if (cam_frame == 120) {
1228 SndSeStop(SE_RUSH_LOW_HUM, 0);
1229 SndSeStop(SE_RUSH_LOW_SWELL, 0);
1230 wait = 5;
1231 }
1232
1233 break;
1234 }
1235 } else {
1236 wait--;
1237 }
1238}
1239
1240void SetObjAnime(char *name, CFrameVu1 *frame, float *start, float *step) {
1241 OP_AnimeSeq[OP_AnimeSeqRot].Initialize();
1242 OP_AnimeSeq[OP_AnimeSeqRot].type = 0;
1243 OP_AnimeSeq[OP_AnimeSeqRot].number = 0;
1244 OP_AnimeSeq[OP_AnimeSeqRot].start[0] = start[0];
1245 OP_AnimeSeq[OP_AnimeSeqRot].start[1] = start[1];
1246 OP_AnimeSeq[OP_AnimeSeqRot].start[2] = start[2];
1247 OP_AnimeSeq[OP_AnimeSeqRot].step_x = step[0];
1248 OP_AnimeSeq[OP_AnimeSeqRot].step_y = step[1];
1249 OP_AnimeSeq[OP_AnimeSeqRot].step_z = step[2];
1250 strcpy(OP_AnimeSeq[OP_AnimeSeqRot].name, name);
1251 InitObjAnime(frame, &OP_AnimeSeq[OP_AnimeSeqRot]);
1252 OP_AnimeSeqRot++;
1253}
1254
1255void WaterProcess() {
1256 sceGsTex0 frame_tex;
1257 sceGsTex0 water_tex;
1258 sceGsZbuf zbuf;
1259
1260 MGGetFBuffTex(&frame_tex);
1261
1262 CRect<int> rect(0, 0, 640, SCREEN_HALF_HEIGHT);
1263
1264 water_tex = *(sceGsTex0 *) &TexManager.GetTexture("water_buff", -1)->tex0;
1265 MGMoveImage(&frame_tex, rect, &water_tex, 0, 0, 0);
1266
1267 zbuf = mgZBuffer;
1268 zbuf.bits.zmsk = 1;
1269 MGSetGsZBUF(&zbuf);
1270
1271 if (CScript.scene == RUSH_SCENE_B) {
1272 sceVu0FVECTOR position = {0.0f, -0.4f, 0.0f, 0.0f};
1273
1274 Water__2.frame.SetPosition(position);
1275 Water__2.Shake(12, 4, (float) rand() * 4.5 / 2147483647.0 + 0.5);
1276 } else {
1277 sceVu0FVECTOR ref;
1278
1279 MainCamera__3.GetRef(ref);
1280 ref[1] = 0.0f;
1281 Water__2.frame.SetPosition(ref);
1282 Water__2.Shake((int) (rand() * 32.0f / 2147483648.0f), (int) (rand() * 32.0f / 2147483648.0f), -0.5f);
1283 }
1284
1285 Water__2.Hamon();
1286 Water__2.DrawVu1(&mgRenderInfo, GetVif1Packet(), 0);
1287 MGSetGsZBUF(&mgZBuffer);
1288}
void SetHeight(float height)
void SetFollow(float x, float y, float z)
void SetDistance(float distance)
virtual void Step(int steps)
void GetCameraMatrix(float(*matrix)[4])
Definition camera.cpp:153
void GetRef(float *ref)
Definition camera.cpp:234
void GetPos(float *pos)
Definition camera.cpp:230
CFrame * frame
tagMOTION_TYPE motion_type
virtual void SetRotation(float x, float y, float z)
float motion_speed
virtual void SetPosition(float x, float y, float z)
void FadeOutStart(float speed, int colour)
Definition dispfade.cpp:9
float GetRate()
Definition dispfade.cpp:27
float FadeOut(sceVif1Packet *packet)
Definition dispfade.cpp:31
float FadeIn(sceVif1Packet *packet)
Definition dispfade.cpp:92
void FadeInit(float initial_rate)
Definition dispfade.cpp:21
void FadeInStart(float speed, int colour)
Definition dispfade.cpp:15
CTexture * core
Definition op_a.cpp:110
s32 texture_set
Definition op_a.cpp:109
sceVu0FVECTOR position
Definition op_c.cpp:109
CTexture * glow
Definition op_a.cpp:111
int Down(int mask)
Definition gamepad.cpp:583
CFrameVu1 * collision_frame
Definition op_b.cpp:90
CFrameVu1 * shade_frame
Definition op_b.cpp:92
CFrameVu1 * camera_frame
Definition op_b.cpp:93
Definition op_a.cpp:90
s32 rotation_changed
Definition op_b.cpp:77
CFrameVu1 * frame[4]
Definition op_b.cpp:76
s32 draw_on
Definition op_b.cpp:78
Definition op_a.cpp:55
T h
Definition op_a.cpp:60
T y
Definition op_a.cpp:58
T x
Definition op_a.cpp:57
T w
Definition op_a.cpp:59
void Lighting(int on)
void Step()
float position[8][4]
Definition runeffect.hpp:45
void Set(float *position)
void Draw()
SCRIPT_OBJ obj[23]
Definition script.hpp:149
int bgm_fade
Definition script.hpp:180
float motion_step
Definition script.hpp:152
int load_no
Definition script.hpp:143
void Load(const char *name)
Definition script.cpp:51
int camera_no
Definition script.hpp:136
int fade
Definition script.hpp:137
int scene
Definition script.hpp:142
int motion_end
Definition script.hpp:151
int motion_start
Definition script.hpp:150
u8 motion_req
Definition script.hpp:153
int camera_start
Definition script.hpp:135
float fade_speed
Definition script.hpp:138
int init_no
Definition script.hpp:144
void Step()
Definition script.cpp:103
u_long tex0
Definition texture.hpp:57
float wave_speed
Definition op_c.cpp:146
float height_scale
Definition op_c.cpp:148
float damping
Definition op_c.cpp:147
u_int * packet[3]
Definition op_c.cpp:143
float distortion
Definition op_c.cpp:149
CFrameVu1 frame
Definition op_c.cpp:151
Definition wind.hpp:12
void SetVelocity(float speed)
Definition wind.cpp:9
void SetDir(float *direction)
Definition wind.cpp:5
void Step()
Definition wind.cpp:21
float step_y
Definition op_a.cpp:205
sceVu0FVECTOR current
Definition op_a.cpp:208
sceVu0FVECTOR start
Definition opening.cpp:1392
void Initialize()
Definition objanime.cpp:33
char name[16]
Definition op_a.cpp:198
int completion_flag
Definition op_a.cpp:210
CFrame * frames[10]
Definition op_a.cpp:209
float step_z
Definition op_a.cpp:206
float step_x
Definition op_a.cpp:204
char * plate
Definition op_a.cpp:180
char * strip
Definition op_a.cpp:181
int eye_bottom
Definition op_a.cpp:182
int strip_bottom
Definition op_a.cpp:188
int mouth
Definition op_a.cpp:187
int mouth_height
Definition op_a.cpp:185
int eye_height
Definition op_a.cpp:183
int eye
Definition op_a.cpp:186
int mouth_bottom
Definition op_a.cpp:184
float rotation
Definition rushmovi.cpp:211
char * name
Definition rushmovi.cpp:209
float position[3]
Definition rushmovi.cpp:210
CCamera * camera
Definition gameutil.hpp:196
float blend_step
Definition gameutil.hpp:190
float step
Definition script.hpp:125
int motion_end
Definition script.hpp:113
MOTION_STATE state
Definition gameutil.hpp:273