-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSkate3functions.txt
868 lines (752 loc) · 27.3 KB
/
Skate3functions.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
//debug symbols manually ported from mac os version of the game
//sometimes they are hard to guess cause they dont match 1 to 1
//due to different compiler settings, inlining, etc.
//there is one problem here, pc compiler was too agressive,
//sometimes it linked to the same address if functions were
//dummied, empty, return 0, return 1, etc.
//it makes it impossible to hook by address, must hook
//the calls instead
//or also "Ryan", basically unconditional printf
00401960 void Dbg_Message(char* message) //can hook to output some original debug stuff
00402530 InitializeControllerMenu
00403bf0 KeyboardFrame
00409ae0 GetTime
00409b90 FrameLength //returns length of a single frame
00409870 Init -Timer-
00409f70 IsWindowedMode
00409f80 GetWindowWidth //returns global ptr to screenX
00409f90 GetWindowHeight //returns global ptr to screenY
0040a340 GameMain //main skate3 func
0040c570 process //IOManager
0040d3c0 ResetActuators //IOManager
0040d810 sSgltnInstance //IOManager
0040d860 sSgltnDelete //IOManager
0040d8a0 process_devices
0040dcc0 GetDeviceByIndex
0040de50 UnPause //IOManager
0040e430 InitialRand //pseudorandom number initialization, takes a uint seed as param
0040e540 InitSinLookupTable
004110e0 GenerateCRCFromString
004115e0 LoadPre //loads pre, unused on pc or mac
00411610 ScriptInPreFile
00411690 ScriptLoadPre //CFunc, okay...
00411e90 CallFunctionForAllWorldSectors
004121c0 ClearWorldSectorHashTable
00412330 ShatterWorldSector
004126c0 world_collision_cb
00412910 FindNearestWorldCollision
004134b0 GetIntersectingWorldSectors
00413730 DestroySuperSectors
00413820 //printf jump
//===============================================================
// Script functions, lots of um
// rule of thumb, if it starts with Script, it's a CScript
// and script name is func name minus script prefix
// if not, read comments
//===============================================================
00413830 ScriptWait
00413930 ScriptIsZero
00413960 ScriptIntegerEquals
004139b0 ScriptChecksumEquals
00413a00 ScriptStringEquals
00413a60 ScriptArrayContains
00413b60 ScriptCustomSkaterFilenameDefined
00413c30 ScriptGetCustomSkaterFilename
00413cf0 ScriptCurrentSkaterIsPro
00413d90 //inlined in 2 following funcs
00413e50 ScriptEnableEvent
00413e70 ScriptDisableEvent
00413e90 ScriptEditingPark
00413f10 ScriptGetParkName
00414020 ScriptParkEditorThemeWasSwitched
00414080 ScriptGetGoalsCompleted
00414250 ScriptGetNextLevelRequirements
00414410 ScriptMenuIsShown
004144a0 //called in ScriptMenuIsShown
00414540 ScriptMenuIsSelected
004145d0 //called in ScriptMenuIsSelected
00414670 ScriptDecksAreSpinning
00414710 ScriptInitializeMemCardFilesMenu
00414720 ScriptEnoughRoomOnCard
004147e0 CreateFilePath
00414950 ScriptMemCardFileExists
00414a70 ScriptDeleteMemCardFile
00414b80 ScriptFormatCard
00414c10 ScriptCardIsInSlot
00414ca0 ScriptCardIsFormatted
00414d40 ScriptSaveFailedDueToInsufficientSpace
00414d50 //called in ScriptSaveToMemoryCard
00414fa0 ScriptSaveToMemoryCard
00415630 ScriptSetFrontEndActive //script name = FrontEndSetActive
004156a0 ScriptSetFrontEndInactive //script name = FrontEndSetInactive
00415710 LoadIntoStructure
00415880 ScriptLoadFromMemoryCard
00415ef0 ScriptCreateDialogBox
00416130 ScriptForEachIn
00416250 ScriptUpdateWheelColor
00416400 ScriptMoveMenu
00416560 ScriptAttemptMenuSelect
00416670 ScriptMakeMenuZoomOn
00416730 ScriptMakeMenuPopOffScreen
004167f0 ScriptDisplayCorrectDeckSet
00416890 ScriptUpdateCareerInfoMenu
004169a0 ShowMedalLevelIcon //not a script, called from ScriptUpdateCareerInfoMenu
00416dd0 ScriptUpdateSliderInfoMenu
00416f20 ScriptGotParam
00416f50 ScriptLaunchCommand
00416fb0 ReplayModeEquals //no script prefix, but script
00417040 SetReplayMode //same here
004170e0 ScriptControllerDebounce
00417170 //called in replayinit
004171a0 CheckButton //not a script, called in ScriptControllerPressed
004173a0 ScriptControllerPressed
00417480 ScriptSetVolume //script name = SetSfxVolume
00417510 ScriptSetMusicVolume
00417550 ScriptStopMusic
00417560 ScriptPauseMusic
00417590 ScriptPauseStream
004175c0 ScriptLoadMusicHeader
00417620 ScriptLoadStreamHeader
00417680 ScriptStreamIsAvailable
00417760 ScriptAddMusicTrack
004177e0 ScriptClearMusicTrackList
00417810 ScriptSkipMusicTrack
00417820 ScriptSetMusicMode //music or ambience
00417860 ScriptSetRandomMode //random or sequential
00417890 ScriptPlayMovie
004178c0 ScriptLoadSound
00417a20 ScriptLoadStream
00417ad0 ScriptPlayStream
00417b70 ScriptStopStream
00417ba0 ScriptPlayTrack
00417bd0 ScriptPlaySound
00417cb0 ScriptSetReverb //script name = SetSfxReverb
00417d90 ScriptSetDropoff //script name = SetSfxDropoff
00417e40 ScriptSetTerrainParticleProperties
00417e80 ScriptSetTerrainSoundInfo //script name = SetTerrainSfxProperties
00417fd0 ScriptJumpToScript //huh? same as goto?
00418030 ScriptGotoPreserveParams
00418110 ScriptGotoRandomScript
00418180 ScriptPrintStruct //dummy func, does nothing
00418190 ScriptPrintf //prints string to console, basically printf wrapper
00418200 ScriptSetHackFlag
00418230 ScriptHackFlagIsSet
00418240 ScriptSetCurrentSkaterProfile
004182d0 ScriptCurrentSkaterProfileIs
00418360 ScriptAddSkaterProfile
004183e0 ScriptSyncPlayer2Profile
00418450 ScriptEnableSkaterRotation
004184a0 ScriptDisableSkaterRotation
004184f0 ScriptResetSkaterRotation
00418560 ScriptSetSkaterRotationPad
00418610 ScriptPreloadModel
00418690 ScriptLoadLevelGeometry
00418810 ScriptCreateFromNodeIndex //not a CScript
00418b90 ScriptKillFromNodeIndex //not a CScript
00418dd0 DoNodeActionFromNodeNum //not a CScript, called from DoNodeAction
00419040 DoNodeAction //not a CScript
00419200 ScriptCreate
00419220 ScriptKill
00419240 ScriptVisible
00419260 ScriptInvisible
00419280 ScriptShatter
00419440 PreloadModels //not a CScript, called from ParseNodeArray, loads DFF
00419580 PreloadAnimatedModels //not a CScript, called from ParseNodeArray, loads SKN
004196d0 ScriptReplayInit
00419800 ScriptLoadCorrectSkaterForReplay
00419870 ScriptParseNodeArray //CScript, but never called directly i guess
00419c60 ScriptLoadNodeArray
00419d50 ScriptReLoadNodeArray //only updates NodeArray without parsing, ever used?
00419d70 ScriptSetRenderModeCPU
00419de0 ScriptSetRenderModeVU
00419e50 ScriptSetBackgroundColor
00419f20 ScriptSetBSPAmbientColor
0041a010 ScriptSetDFFAmbientColor
0041a100 ScriptSetDFFDirectColor
0041a210 ScriptSetDynamicLightModulationFactor
0041a2e0 ScriptSetClippingDistances
0041a400 ScriptSetTrivialFarZClip //?
0041a470 ScriptEnableFog
0041a4c0 ScriptDisableFog
0041a510 ScriptSetFogDistance
0041a5b0 ScriptSetFogColor
0041a670 ScriptSetUIFromPreferences
0041a820 ScriptSetUIFromSkaterProfile
0041aaa0 ScriptSetPreference
0041ab00 ScriptPreferenceEquals
0041ab70 ScriptSetPreferencesFromUI
0041aca0 ScriptResetCamera
0041ad30 ScriptInitializeTrickMenus
0041ad40 ScriptUninitializeTrickMenus
0041ad50 ScriptPopulateTrickMenus
0041ad60 ScriptInitializeSFXMenus
0041ad70 ScriptSetVolumeFromValue
0041af40 ScriptGetValueFromVolume
0041b090 ScriptSetSliderValue
0041b150 ScriptInitializeCASMenus
0041b160 ScriptAttachNewCASEventHandler
0041b170 ScriptUpdateStatsElements
0041b180 ScriptDisableAllCASMenusExcept
0041b1b0 ScriptUpdateStatsUI
0041b2b0 ScriptResetSkaterProfile
0041b3c0 ScriptResetDefaultAppearance
0041b430 ScriptResetDefaultTricks
0041b4a0 ScriptResetDefaultStats
0041b510 ScriptRandomizeAppearance
0041b580 ScriptPrintCurrentAppearance //debug func, does nothing
0041b5f0 ScriptSetNeversoftSkater
0041b740 ScriptCurrentProfileIsLocked
0041b7c0 ScriptSetIconTexture
0041b890 ScriptSetWorldSize
0041b920 ScriptSetMovementVelocity
0041b9b0 ScriptSetRotateVelocity
0041ba40 ScriptResetEngine //calls QuitLoop
0041bab0 ScriptResetSkaters
0041bb20 ScriptToggleMetrics
0041bc00 ScriptToggleVRAMViewer
0041bc60 ScriptDumpVRAMUsage
0041bcd0 ScriptToggleImageViewer
0041be00 ScriptToggleLightViewer
0041be70 ScriptSetVideoMode
0041bfa0 ScriptToggleSkater
0041c040 ScriptReloadCurrentSkater
0041c0c0 ScriptViewSkaterModel
0041c130 ScriptRemoveAllSkaters
0041c1a0 ScriptSetStat
0041c2b0 ScriptToggleAlwaysSpecial
0041c380 ScriptSkaterSpeedGreaterThan
0041c460 ScriptSkaterSpeedLessThan
0041c540 ScriptLastScoreLandedGreaterThan
0041c570 //inlined, wraps GetInteger in score funcs
0041c590 //inlined, wraps GetScoreObject in score funcs
0041c630 ScriptLastScoreLandedLessThan
0041c660 ScriptTotalScoreGreaterThan
0041c6a0 ScriptTotalScoreLessThan
0041c6e0 ScriptCurrentScorePotGreaterThan
0041c720 ScriptCurrentScorePotLessThan
0041c760 ScriptGoalsGreaterThan
0041c820 ScriptGoalsEqualTo
0041c8e0 ScriptMedalsGreaterThan
0041c9a0 ScriptMedalsEqualTo
0041ca60 ScriptToggleStats
0041cae0 ScriptToggleSkaterCamMode
0041cbc0 ScriptPlaySkaterCamAnim
0041ccf0 ScriptSetSkaterCamAnimSkippable
0041cdc0 ScriptSkaterCamAnimFinished
0041ce80 ScriptSkaterCamAnimHeld
0041cf40 ScriptSetSkaterCamLerpReductionTimer
0041cfa0 ScriptToggleViewMode
0041d020 ScriptToggleMetricItem
0041d0b0 ScriptToggleMemMetrics
0041d120 ScriptCleanup
0041d380 ScriptToggleRenderMode
0041d3f0 ScriptSetVRAMPackContext //does nothing
0041d410 ScriptScreenShot
0041d4a0 ScriptReadNewExceptions
0041d530 ScriptSkaterDebugOn //unused debug stuff
0041d540 ScriptSkaterDebugOff //unused debug stuff
0041d550 ScriptIfDebugOn //unused debug stuff
0041d560 ScriptIfDebugOff //unused debug stuff
0041d570 ScriptCasArtist
0041d590 ScriptNotCasArtist
0041d5b0 ScriptClearFlag //flag funcs, wrappers for DoAction
0041d5d0 ScriptSendFlag
0041d5f0 ScriptQueryFlag
0041d610 ScriptFlagException //script name = SendException
0041d660 ScriptCheckIfAlive //script name = IsAlive
0041d680 ScriptDoAction
0041d960 DoAction //called in ScriptDoAction
0041da60 Action_ByNodeIndex //validate these two do actions
0041da90 //some inlined func
0041dab0 ScriptSetVisibilityFromNodeIndex
0041dd00 ScriptCheckExistenceFromNodeIndex
0041dfd0 ScriptShatterFromNodeIndex
0041e180 ScriptMakeSkaterGoto //this one jumps to script
0041e270 ScriptMakeSkaterGosub //this one calls script
0041e360 ScriptSpawnScript
0041e450 ScriptSpawnSkaterScript
0041e560 ScriptKillSpawnedScript
0041e5d0 ScriptPauseSkaters
0041e6e0 ScriptUnPauseSkaters
0041e7f0 ScriptPauseSkater
0041e880 ScriptUnPauseSkater
0041e910 ScriptPauseGame
0041e980 ScriptUnPauseGame
0041e9f0 ScriptPauseClock
0041ea60 ScriptUnPauseClock
0041ead0 ScriptShowClock
0041eb40 ScriptHideClock
0041ebb0 ScriptResetClock
0041eca0 ScriptDoFlash
0041ef30 ScriptSetCASViewer
0041efc0 ScriptStartServer
0041f090 ScriptLeaveServer
0041f100 ScriptJoinServer
0041f270 ScriptSetNetworkMode
0041f320 ScriptMemViewToggle //dummied debug func, calls empty MemViewToggle
0041f330 ScriptMemPopContext //memory management func, unused on pc
0041f340 ScriptLoadAndSetTexDict
0041f3a0 ScriptLoadTexDictModel
0041f430 ScriptSaveTexDict
0041f480 ScriptProfileTasks //likely a debug func
0041f520 ScriptToggleConsole
0041f590 ScriptUseNetworkPreferences
0041f600 ScriptConnectToInternet
0041f670 ScriptDisconnectFromInternet
0041f6e0 ScriptStopAllScripts
0041f6f0 ScriptSetMenuElementText
0041f830 ScriptMakeTextMenuElementStatic
0041f8f0 ScriptFirstTimeThisIsCalled //?
0041f910 ScriptVibrationIsOn
0041f970 ScriptVibrationOn
0041f9c0 ScriptVibrationOff
0041fa10 ScriptEnableActuators
0041fae0 ScriptAutoKickIsOn
0041fb40 ScriptAutoKickOn
0041fb90 ScriptAutoKickOff
0041fbe0 ScriptSpinTapsAreOn
0041fc40 ScriptSpinTapsOn
0041fc90 ScriptSpinTapsOff
0041fce0 ScriptInNetGame
0041fd50 ScriptIsObserving
0041fdf0 ScriptSetSlomo
0041fe20 ScriptSetArenaSize
0041fe30 ScriptLoadNextUnlockedPro
00420000 ScriptGetCurrentProDisplayInfo
00420090 ScriptSetPlayerAppearance
00420170 ScriptSetParticleSysVisibility
00420240 ScriptTogglePlayerNames
004202b0 ScriptLoadSprite
00420330 ScriptUnloadSprite
004203c0 ScriptSetCurrentGameType
00420430 ScriptDumpNetMessageStats
004205e0 ScriptCareerStartLevel
00420690 ScriptIsCompetition
00420720 ScriptCareerLevelIs
004207b0 ScriptGetRecordText
00420860 ScriptUpdateRecords
004208d0 ScriptCareerReset
00420950 ScriptSetGoal
00420a20 ScriptUnSetGoal
00420ab0 ScriptGetGoal
00420b50 ScriptJustGotGoal
00420bf0 ScriptSetFlag
00420ca0 ScriptUnSetFlag
00420d30 ScriptGetFlag
00420dd0 ScriptJustGotFlag
00420e70 ScriptUnlockNextSecret
00420fa0 ScriptSetGlobalFlag
00420fe0 //inlined in getset global flag
00421080 ScriptUnSetGlobalFlag
00421110 ScriptGetGlobalFlag
004211d0 ScriptSetServerMode
00421250 ScriptNotifyBailDone
00421300 ScriptDisplayLoadingScreen
00421350 ScriptHideLoadingScreen
00421360 ScriptEnterObserverMode
004213d0 ScriptObserveNextSkater
00421440 ScriptProfileEquals
00421540 ScriptIsCareerMode
004215c0 ScriptClearScoreGoals
00421630 ScriptSetScoreGoal
004216f0 ScriptEndRun
00421740 ScriptAllowPause
004217f0 ScriptRefreshServerList
00421860 ScriptStartServerList
004218d0 ScriptStopServerList
00421940 ScriptFreeServerList
004219b0 ScriptSetJoinMode
00421a40 ScriptSwitchToMenu
00421bc0 ScriptLaunchEvent
00421cc0 ScriptPauseGameFlow
00421d30 ScriptUnpauseGameFlow
00421da0 ScriptInFrontEnd
00421e10 ScriptInSplitScreenGame
00421ed0 ScriptInMultiplayerGame
00421f40 ScriptGameModeEquals
00421fd0 ScriptOnServer
00422040 ScriptShouldEndRun
004220c0 ScriptLoadRequestedLevel
00422130 ScriptGetCurrentLevel
004221c0 ScriptTogglePanel
00422250 ScriptInitializeSkaters
00422300 ScriptSkatersAreReady
00422400 ScriptRestartLevel
00422470 ScriptEndRunSelected
004224d0 ScriptAllSkatersAreIdle
00422540 ScriptFirstTrickStarted
004225b0 ScriptFirstTrickCompleted
00422620 ScriptSpawnLevelScript
00422790 ScriptCalculateFinalScores
00422880 ScriptReinsertSkaters
00422960 ScriptUnhookSkaters
00422a00 ScriptHookUpSkaters
00422ad0 ScriptShouldRunIntroScript
00422ba0 ScriptIntroScriptFinished
00422c10 ScriptLoadSkaters
00422c80 ScriptToggleScores
00422cf0 ScriptApplySplitScreenOptions
00423080 //called in ScriptApplySplitScreenOptions
00423090 ScriptStartCompetition
004231b0 ScriptStartCompetitionRun
00423220 ScriptEndCompetitionRun
004232b0 ScriptIsTopJudge
00423340 ScriptPlaceIs
004233d0 ScriptRoundIs
00423460 ScriptEndCompetition
004234d0 ScriptCompetitionEnded
00423540 ScriptStartHorse
004235b0 ScriptHorseEnded
00423620 ScriptHorseStatusEquals
004236a0 ScriptStartHorseRun
00423780 ScriptSwitchHorsePlayers
004237f0 ScriptUpdateHorseDisplay //obsolete function, does nothing
00423810 ScriptApplyToHorsePanelString
00423940 ScriptIsCurrentHorseSkater
004239d0 ScriptPanelMessagesOnscreen
00423a40 ScriptXTriggered
00423b40 ScriptApplyToSkaterProfile
00423d90 ScriptApplyColorToSkaterProfile
00423f30 ScriptRefreshSkaterColors
00423ff0 ScriptIsTrue
00424020 ScriptCreatePanels
004240b0 ScriptDeletePanel
00424120 ScriptToggleShadowType
00424190 ScriptCreateMenu
00424210 ScriptAttachChild
00424290 ScriptCreateAndAttachMenu
00424320 ScriptAttachEventHandler
004243a0 ScriptAttachScript
00424420 ScriptSetProperty
004244a0 ScriptSetDefaultProperty
00424520 ScriptDestroyElement
004245b0 ScriptDepopulateMenu
00424640 ScriptGameFlow
004246d0 ScriptSetCompetition
00424700 ScriptAwardStatPoint
00424770 ScriptApplyStatChange
004247f0 ScriptAwardSpecialTrickSlot
00424860 ScriptUpdateSkaterStats
00424910 ScriptJoinWithPassword
004249a0 ScriptTestNetworkSetup
00424ae0 ScriptSendChatMessage
00424b90 ScriptInSlapGame
00424c60 ScriptSetScreenModeFromGameMode
00424d00 ScriptLoadPendingPlayers
00424d70 ScriptLaunchQueuedScripts
00424de0 ScriptHideMenu
00424e50 ScriptGetInitialsString
00424ef0 ScriptSetInitialsString
00424f80 ScriptUpdateInitials
00425020 ScriptNewRecord
00425080 ScriptDumpMenuTree
00425100 ScriptAttachToSkater
004251a0 ScriptTryCheatString
00425390 ScriptLevelIs
00425420 ScriptStartNetworkLobby
00425490 ScriptObserversAllowed
00425500 ScriptNumPlayersAllowed
004255d0 ScriptAutoDNS
00425680 ScriptUsingDefaultMasterServers
00425730 ScriptUsingDHCP
004257e0 ScriptInInternetMode
00425850 ScriptEnteringNetGame
004258d0 ScriptDeviceChosen
00425980 ScriptGameIsOver
004259f0 //return true. apparently some specific CFunc, but compiler optimized this into multiple calls.
00425a00 ScriptQuitGame
00425a50 ScriptSetPrimaryControllerName
00425cd0 ScriptInitializeControllerMenu
00425ce0 ScriptGameModeChecksumEquals
00425d70 ScriptGameTypePrefEquals
00425e10 ScriptGetVersionNumber
00425e70 ScriptInTeamGame
00425ed0 ScriptRestripWorld
00425f20 ScriptMouseShow //script name = MouseShowCursor
//===============================================================
// the end of CScript stuff
//===============================================================
//can probably rewrite this to be calculated dynamically on game launch?
00426060 GetCFunctionLookupTableSize //returns hardcoded array size, 0x1D9 on PC, 0x1DC on MAC
00426070 GetNumMemberFunctions //returns hardcoded array size, 0x124 on PC and MAC
004265f0 //a jump to GenerateCRCFromString
00426ec0 SkipToken
00426f90 InitUsingArray
00427270 SetArrayType
00427940 Update
00426fd0 WaitMovie
00427fe0 Wait
00428000 WaitTime
00428330 UnpauseSpawnedScript
00428510 SpawnScript
00428720 KillSpawnedScriptsThatReferTo
00428760 KillSpawnedScriptsWithId
//===============================================================
// QB parsing functions
// overloads for string safe search and checksum search
//===============================================================
00429690 GetText
00429760 GetText
004297b0 GetLocalText
00429840 GetLocalText
00429890 GetInteger
00429920 GetInteger
00429970 GetVector
00429a10 GetVector
00429a60 GetPair
00429b00 GetPair
00429b50 GetFloat
00429c10 GetFloat
00429c60 GetStructure
00429ce0 GetStructure
00429d30 GetChecksum
00429dc0 GetChecksum
00429e10 GetChecksumOrStringChecksum
00429e70 GetArray
00429f00 GetArray
00429f50 ContainsFlag //by crc
00429fc0 ContainsFlag //by string
00429fe0 ContainsComponentNamed //by crc
0042a050 ContainsComponentNamed //by string
0042a070 WriteToBuffer
0042b020 DoAnyRandomsOrJumps
0042b300 LoadQB
0042b3d0 ParseQB
0042b900 CreateNewSymbolEntry
0042bd10 Init -Script-
0042bf70 RegisterFunctions
0042bfe0 InitAtStart -Script-
0042c0f0 InitSymbolTables
0042c220 DeleteSymbols
//===============================================================
// RwViewer related funcs
//===============================================================
0042d4d0 sSgltnInstance -RwViewer-
0042d520 sSgltnDelete -RwViewer-
0042da10 RequestLoad
0042dfa0 sky_load
0042e110 scene_create
0042e590 world_init
0042eb80 world_deinit
0042ecc0 rotate_clump
0042ecf0 reset_clump_rotation
0042ede0 s_shift_logic_code
0042f080 s_logic_code
00430240 SetScreenMode
00430390 ToggleRenderMode //i guess translates to RW render mode? 1 = 2, 2 = 3, 3 = 4, 4 = 6, default = 1
004309c0 GetCamera
00430ad0 SetMovementVelocity
00430ae0 SetRotateVelocity
00430c20 //inlined in ScriptSetDirectionalLightDirection
00430c50 //inlined in ScriptSetDirectionalLightActive
00430c90 IgnoreDFFLights
00430d50 TurnOnAllDFFLights
00430db0 ModulateAllDFFLights
00430e90 UnmodulateAllDFFLights
00430ef0 SetDynamicLightModulationFactor
00430f40 GetCurrentWorld
00430f50 Cleanup
00431130 ToggleLightViewer
00431200 ScriptSetDirectionalLightDirection //script name = SetDFFDirectRotation
00431340 ScriptSetDirectionalLightActive //script name = SetDFFDirectActive
004314c0 CameraMoveX
00431500 CameraMoveY
00431540 CameraMoveZ
00431580 CameraTilt
00431610 CameraPan
00431790 SetColor //DFFLight
00431810 ModulateColor //DFFLight
004318d0 SetRotation //DFFLight
00431a00 Rotate //DFFLight
00434030 GetTimeLimit
00434320 GetNameChecksum
00437010 ResetSkaterRotation
00437e40 SetTimeLimit
00438b00 GetGameMode
00439840 ResetSkaters
00439a20 LaunchGame
00439f50 ObserveNextSkater
0043a060 IsMultiplayerGame
0043a610 ScriptRetry //why is it here?
00440940 AllowPause
004414a0 GetMenuElement
00441530 UpdateStatsElements
00441870 AttachNewCASEventHandler
00443710 InitializeCASMenus
004437b0 DisableAllCASMenusExcept
00446e90 DecksAreSpinning
00449eb0 PauseGame
0044a150 PauseGameTimer
0044e610 InitializeMemCardFilesMenu
004556c0 InitializeTrickMenus
004557f0 UninitializeTrickMenus
0045ae80 TogglePanel
0045b160 SetClockVisibility
0045b180 SendConsoleMessage
00459980 SetSwitchMode (HUDPanel)
00464120 ClearZBuffer
00465a30 ScriptParkEditorCommand //CScript
0046c2f0 CheckForBeachball
0046d4b0 CheckForCTF
0046de60 GetHolderOfFlag
00472b10 s_observer_input_logic_code
00474710 InNetworkGame
00476420 ObservePlayer
00476ac0 GetLocalPlayer
00477b70 StartNetworkLobby
004788b0 SendChatMessage
004795b0 CheckForKingOfTheHill
0047c170 IsZoneGame
0047e6a0 IsObserving
00480d20 GetImageTexture
00482540 FlipAnimation
00489e70 DoManualPhysics
0048fc20 AddToCurrentWorld
0048fcc0 RemoveFromCurrentWorld
00493ea0 TraversePath
00494710 CallMemberFunction //CPed
00496e20 SetIgnore
00496e40 SetStart
00496e60 SetEnd
00496ea0 GetCollision
0049bbd0 GetButton
0049bcc0 MoveToRestart
0049bee0 SkipToRestart
0049da80 SlideOffSteepSlopes
0049e380 HandleWindResistance
0049e410 ApplyBrakingFriction
0049e550 HandleRollingResistance
0049e590 HandleGroundFriction
0049f3c0 GetStat
004a2130 DoOnGroundPhysics
004a7bd0 UpdateReplayCam
004a7cf0 UpdateCamera
004a7fc0 ToggleCamMode
004a8620 DoGameLogic
004ab2f0 SwitchOnShadow
004ab380 SwitchOffShadow
004ad590 SkaterEquals
004b2170 SparksOff
004b24e0 BloodPSOff //??
004b25d0 BloodOn
004b26f0 BloodOff
004b5310 GetCheat
004b5990 PrintContents //CSkaterAppearance
004b8270 SwitchReplayMode
004b8840 Update (SkaterCam)
004ba7f0 IsAnimFinished
004ba800 IsAnimHeld
004bcb70 GetStatValue
004bdba0 ResetDefaultStats //dummy script, just printf
004bdbc0 RandomizeAppearance
004c0090 LoadModelUsingStruct
// === main loop func ===
004c0450 MainLoop //main game processing loop
004c0710 QuitLoop
// input stuff
004c0ec0 GetButtonIndex
004c1230 MaskDigitalInput
004c1d10 SpawnScriptPlease
// audio stuff
004c43e0 SetDefaultDropoffDist
004c5100 SetReverb
004c68e0 AddTrackToPlayList
004c69f0 ClearPlaylist
004c6a30 SkipMusicTrack
004c6ad0 SetRandomMode
004c70f0 SetActiveTrackList
004cd990 DebugDumpTree
004ce8f0 DisableAllExcept
004d2400 GetMenuElement
004d2430 LaunchEvent
004d24b0 PrintContents
004d7330 UnloadPre //deletes pre, unused on pc or mac
004dde80 SetPreference
004f5280 sSgltnInstance -TextureLoader
004f52d0 sSgltnDelete -TextureLoader
004f5330 LoadImageTexture //loads image from images folder
004f5570 GetImageTexture //looks for checksum in memory and returns if found
004f76b0 SetViewport
004f76d0 SetFocalLength
004f7710 SetFov -Camera-
// rendering stuff
004f9470 start_engine
004f95d0 stop_engine
004f9980 ClumpSetLODCallback
004f99a0 set_atomic_lod_callback
004f99d0 select_lod
004f9aa0 RenderWorld //main render routine
004f9c80 render_objects
004f9dc0 render_visible_clumps
004f9e10 render_visible_atomics
004f9ec0 //inlined in render_visible_atomics
004f9f20 render_visible_skin_clumps
004f9f70 render_visible_skin_atomics
004f9fd0 render_visible_particle_clumps
004fa010 //inlined in render_visible_particle_clumps
004fa070 render_hud_clumps
004fa0a0 render_all_world_sectors
004fa260 ToggleMetrics //some debug func, does it work?
004fa270
004fa280 // some destructor
004fa2b0 SetImageDirectory
004fa320 SetImageDirectoryFromFileName
004fa350 // some string manipulation, inlined in SetImageDirectoryFromFileName
004fa3e0 HSVtoRGB //converts HSV color to RGB color
004faf80 apply_hsv //applies HSV to model, CAS menus
004fb110 load_file //what file? dff? bsp? tdx? all?
004fb8c0 ReplaceTexture //replaces skin texture, CAS stuff
004ff910 DestroyAllSystems
005010e0 ShadowAddObject
00501320 ShadowRemoveObject
00504d90 TexDictionaryNumTextures
00504de0 TexDictionaryLoad //loads tdx texture dictionary
00504e70 TexDictionaryPurgeUnusedTextures
00504ea0 s_purge_unused_textures
00504ed0 TexDictionaryMoveTextures
00504ef0 s_move_textures
00504f10 TexDictionaryReplaceTexture
00504f70 s_replace_texture
//=======================================================================
// assuming 0051cxxx+ is renderware stuff, rw symbols are stripped on mac
// but it's possible to find matching code, using rw reference code
//=======================================================================
0052fec0 RxNodeDefinitionGetPreLight
005313d0 RxNodeDefinitionGetLight
00531800 RxNodeDefinitionGetPostLight
005322c0 RxNodeDefinitionGetAtomicInstance
00532470 RxNodeDefinitionGetAtomicEnumerateLights
00532eb0 RxNodeDefinitionGetWorldSectorInstance
00532fe0 RxNodeDefinitionGetWorldSectorEnumerateLights
00533110 RxNodeDefinitionGetMaterialScatter
//0053bxxx likely libpng 1.0.12, included in RW?
00542f10 png_handle_gAMA
00543360 png_handle_sBIT
005437d0 png_handle_cHRM
00544190 png_handle_sRGB
00544690 png_handle_iCCP
00544b80 png_handle_sPLT
00544ef0 png_handle_tRNS
00545460 png_handle_bKGD
00545940 png_handle_hIST
00545db0 png_handle_pHYs
00546170 png_handle_oFFs
00546530 png_handle_pCAL
00546a70 png_handle_sCAL
00546f30 png_handle_tIME
005472f0 png_handle_tEXt
00547490 png_handle_zTXt
00547680 png_handle_iTXt
00554110 RwD3D8SetTextureStageState //? not sure
00558f90 RwCameraSetNearClipPlane
00558fc0 CameraUpdateZShiftScale
00559060 RwCameraSetFarClipPlane
00559130 RwCameraSetProjection
0055a8f0 RwFrameUpdateObjects
0055bfe0 RwResourcesSetArenaSize //?
0055f3f0 RxNodeDefinitionGetTransform
0055faf0 RxNodeDefinitionGetCullTriangle
00560dc0 RxNodeDefinitionGetClipTriangle
00561000 RxNodeDefinitionGetSubmitTriangle
//=======================================================================
//578190 unwind beyond this point