ManiaScript
Script language used in ManiaPlanet
Main Page
Classes
Files
File List
All
Classes
Files
Functions
Variables
Enumerations
Enumerator
input
big.h
Go to the documentation of this file.
1
class
Void
{};
2
class
Integer
{};
3
class
Real
{};
4
class
Boolean
{};
5
class
Text
{};
6
class
Vec2
{};
7
class
Vec3
{};
8
class
Int3
{};
9
class
Ident
{};
10
11
struct
CMlScript
:
public
CNod
{
12
enum
LinkType
{
13
ExternalBrowser
,
14
ManialinkBrowser
,
15
Goto
,
16
ExternalFromId
,
17
ManialinkFromId
,
18
GotoFromId
,
19
};
23
const
CMlPage
Page
;
27
const
Integer
Now
;
31
const
Integer
CurrentTime
;
35
const
Text
CurrentTimeText
;
39
const
Text
CurrentLocalDateText
;
43
const
CMlEvent
[]
PendingEvents
;
47
const
Real
MouseX
;
51
const
Real
MouseY
;
55
const
Boolean
MouseLeftButton
;
59
const
Boolean
MouseRightButton
;
63
const
Boolean
MouseMiddleButton
;
67
const
Boolean
KeyUp
;
71
const
Boolean
KeyDown
;
75
const
Boolean
KeyLeft
;
79
const
Boolean
KeyRight
;
83
const
Boolean
KeyReturn
;
87
const
Boolean
KeySpace
;
91
const
Boolean
KeyDelete
;
95
Void
OpenLink
(
Text
Url,
LinkType
LinkType
);
99
const
CXmlManager
Xml
;
103
const
CHttpManager
Http
;
104
};
105
106
struct
CMlEntry
:
public
CMlControl
{
110
Text
Value
;
114
Void
StartEdition
();
115
};
116
117
struct
CMlFileEntry
:
public
CMlEntry
{
121
const
Text
FullFileName
;
122
};
123
124
struct
CMlLabel
:
public
CMlControl
{
128
Void
SetText
(
Text
newText);
132
Text
Value
;
136
const
Integer
ValueLineCount
;
137
};
138
139
struct
CMlMediaPlayer
:
public
CMlControl
{
140
};
141
142
struct
CMlQuad
:
public
CMlControl
{
146
Void
ChangeImageUrl
(
Text
fieldName);
150
Text
ImageUrl
;
154
Text
Style
;
158
Text
Substyle
;
162
const
Boolean
DownloadInProgress
;
163
};
164
165
struct
CManiaplanetPlugin
:
public
CNod
{
169
const
Integer
Now
;
173
const
CUser
LocalUser
;
177
const
CManiaplanetPluginEvent
[]
PendingEvents
;
181
const
CBuddiesManager
BuddiesManager
;
185
const
CUILayer
[]
UILayers
;
189
CUILayer
UILayerCreate
();
193
Void
UILayerDestroy
(
CUILayer
Layer);
197
Void
UILayerDestroyAll
();
201
Boolean
ToolBarForceShow
;
205
const
Boolean
ToolBarIsActive
;
209
const
Text
CurrentLocalDateText
;
210
};
211
212
struct
CTmMode
:
public
CMode
{
213
enum
ETmScoreSortOrder
{
214
TotalPoints
,
215
BestRace_Time
,
216
BestRace_Stunts
,
217
BestRace_NbRespawns
,
218
BestRace_CheckpointsProgress
,
219
PrevRace_Time
,
220
Name
,
221
LadderRankSortValue
,
222
};
223
enum
ETMRespawnBehaviour
{
224
Normal
,
225
DoNothing
,
226
GiveUpBeforeFirstCheckPoint
,
227
AlwaysGiveUp
,
228
};
229
enum
ETmRaceChronoBehaviour
{
230
Auto
,
231
Hidden
,
232
CountDown
,
233
Normal
,
234
};
238
const
CTmPlayer
[]
ConnectedPlayers
;
242
const
CTmPlayer
[]
Players
;
246
const
CTmPlayer
[]
PlayersRacing
;
250
const
CTmPlayer
[]
PlayersWaiting
;
254
const
CTmScore
[]
Scores
;
258
const
CTmModeEvent
[]
PendingEvents
;
262
Void
PassOn
(
CTmModeEvent
Event);
266
Void
Discard
(
CTmModeEvent
Event);
270
Void
FakePlayers_Add
(
Text
NickName);
274
Void
FakePlayers_Remove
(
CUser
User);
278
Void
FakePlayers_RemoveAll
();
282
Void
Scores_Sort
(
ETmScoreSortOrder
SortOrder);
286
Void
Scores_Clear
();
290
Void
Ladder_ComputeRank
(
ETmScoreSortOrder
SortOrder);
294
Integer
CutOffTimeLimit
;
298
Integer
NbLaps
;
302
Boolean
IndependantLaps
;
306
Boolean
UiRounds
;
310
Boolean
UiStuntsMode
;
314
Boolean
UiDisplayStuntsNames
;
318
Boolean
HideOpponents
;
322
Integer
ForceMaxOpponents
;
326
Integer
UiScoresPointsLimit
;
330
ETMRespawnBehaviour
RespawnBehaviour
;
334
ETmRaceChronoBehaviour
UiRaceChrono
;
335
};
336
337
struct
CSmMode
:
public
CMode
{
338
enum
EWeapon
{
339
Laser
,
340
Rocket
,
341
Nucleus
,
342
};
346
Integer
StartTime
;
350
Integer
EndTime
;
354
Boolean
UseClans
;
358
Boolean
UseForcedClans
;
362
Boolean
UsePvPCollisions
;
366
Boolean
UsePvPWeapons
;
370
Boolean
UseInterractiveScreensIn3d
;
374
Boolean
UseLaserVsBullets
;
378
Real
OffZoneRadius
;
382
Real
OffZoneRadiusSpeed
;
386
Ident
OffZoneCenterBlockId
;
390
const
Integer
PlayersNbTotal
;
394
const
Integer
PlayersNbAlive
;
398
const
Integer
PlayersNbDead
;
402
const
Integer
ClansNbTotal
;
406
const
Integer
ClansNbAlive
;
410
const
Integer
ClansNbDead
;
414
const
Integer
[]
ClansNbPlayers
;
418
const
Integer
[]
ClansNbPlayersAlive
;
422
const
CSmPlayer
[]
Players
;
426
const
CSmPlayer
[]
Spectators
;
430
const
CSmModeEvent
[]
PendingEvents
;
434
const
CSmBase
[]
Bases
;
438
const
CSmBlock
[]
Blocks
;
442
const
CSmBlockSpawn
[]
BlockSpawns
;
446
const
CSmBlockPole
[]
BlockPoles
;
450
const
CSmScore
[]
Scores
;
454
Integer
Clan1Score
;
458
Integer
Clan2Score
;
462
Integer
[]
ClanScores
;
466
Void
PassOn
(
CSmModeEvent
Event);
470
Void
Discard
(
CSmModeEvent
Event);
474
Void
SpawnPlayer
(
CSmPlayer
Player,
Integer
ClanNum,
Integer
Armor,
CSmBlockSpawn
BlockSpawn,
Integer
ActivationDate);
478
Void
UnspawnPlayer
(
CSmPlayer
Player);
482
Void
ClearScores
();
486
Void
SetPlayerClan
(
CSmPlayer
Player,
Integer
ClanNum);
490
Void
SetPlayerWeapon
(
CSmPlayer
Player,
EWeapon
DefaultWeapon,
Boolean
AutoSwitchWeapon);
494
Void
SetPlayerAmmo
(
CSmPlayer
Player,
EWeapon
Weapon,
Integer
Count);
498
Void
SetPlayerAmmoMax
(
CSmPlayer
Player,
EWeapon
Weapon,
Integer
Count);
502
Integer
GetWeaponIndex
(
EWeapon
Weapon);
506
Void
SetNbFakePlayers
(
Integer
NbClan1,
Integer
NbClan2);
510
Void
ResetTriggersForPlayers
(
CSmPlayer
Player);
514
Void
ComputeTriggeredSpawnsForPlayer
(
CSmPlayer
Player);
518
const
Integer
[]
TriggeredSpawns
;
519
};
520
521
struct
CTmMlScriptIngame
:
public
CMlScriptIngame
{
525
const
CTmMlPlayer
InputPlayer
;
529
const
CTmMlPlayer
GUIPlayer
;
533
const
CTmMlPlayer
[]
Players
;
534
};
535
536
struct
CSmMlScriptIngame
:
public
CMlScriptIngame
{
540
const
Integer
ArenaNow
;
544
const
CSmPlayer
InputPlayer
;
548
const
CSmPlayer
GUIPlayer
;
552
const
CTeam
[]
Teams
;
556
const
CSmPlayer
[]
Players
;
560
const
CSmScore
[]
Scores
;
564
const
Integer
[]
ClanScores
;
568
const
CSmBase
[]
Bases
;
572
const
CSmBlock
[]
Blocks
;
576
const
CSmBlockSpawn
[]
BlockSpawns
;
580
const
CSmBlockPole
[]
BlockPoles
;
581
};
582
583
struct
CEditorPlugin
:
public
CNod
{
584
enum
CardinalDirections
{
585
North
,
586
East
,
587
South
,
588
West
,
589
};
590
enum
PlaceMode
{
591
Unknown
,
592
Terraform
,
593
Block
,
594
Macroblock
,
595
Skin
,
596
CopyPaste
,
597
Test
,
598
Plugin
,
599
CustomSelection
,
600
OffZone
,
601
BlockProperty
,
602
};
603
enum
EditMode
{
604
Unknown
,
605
Place
,
606
FreeLook
,
607
Erase
,
608
Pick
,
609
SelectionAdd
,
610
SelectionRemove
,
611
};
615
const
CMap
Map
;
619
Void
ComputeShadows
();
623
Void
Undo
();
627
Void
Redo
();
631
Void
Quit
();
635
Void
Help
();
639
Void
Validate
();
643
Void
AutoSave
();
647
Void
SaveMap
(
Text
FileName,
Text
Path);
651
PlaceMode
PlaceMode
;
655
EditMode
EditMode
;
659
Boolean
UndergroundMode
;
663
Boolean
BlockStockMode
;
667
const
Integer
Now
;
671
Int3
CursorCoord
;
675
CardinalDirections
CursorDir
;
679
CBlockModel
CursorBlockModel
;
683
CBlockModel
CursorTerrainBlockModel
;
687
CMacroblockModel
CursorMacroblockModel
;
691
Real
CameraVAngle
;
695
Real
CameraHAngle
;
699
Real
CameraToTargetDistance
;
703
Vec3
TargetedPosition
;
707
Void
RemoveAllBlocks
();
711
Void
RemoveAllTerrain
();
715
Void
RemoveAllOffZone
();
719
Void
RemoveAllObjects
();
723
Void
RemoveAll
();
727
Void
RemoveAllBlocksAndTerrain
();
731
Void
ShowCustomSelection
();
735
Void
HideCustomSelection
();
739
Void
CopyPaste_Copy
();
743
Void
CopyPaste_Cut
();
747
Void
CopyPaste_Remove
();
751
Void
CopyPaste_SelectAll
();
755
Void
CopyPaste_ResetSelection
();
759
Void
OpenToolsMenu
();
763
Boolean
CanPlaceBlock
(
CBlockModel
BlockModel,
Int3
Coord,
CardinalDirections
Dir,
Boolean
OnGround,
Integer
VariantIndex);
767
Boolean
PlaceBlock
(
CBlockModel
BlockModel,
Int3
Coord,
CardinalDirections
Dir);
771
Boolean
CanPlaceBlock_NoDestruction
(
CBlockModel
BlockModel,
Int3
Coord,
CardinalDirections
Dir,
Boolean
OnGround,
Integer
VariantIndex);
775
Boolean
PlaceBlock_NoDestruction
(
CBlockModel
BlockModel,
Int3
Coord,
CardinalDirections
Dir);
779
Boolean
CanPlaceRoadBlocks
(
CBlockModel
BlockModel,
Int3
StartCoord,
Int3
EndCoord);
783
Boolean
PlaceRoadBlocks
(
CBlockModel
BlockModel,
Int3
StartCoord,
Int3
EndCoord);
787
Boolean
CanPlaceTerrainBlocks
(
CBlockModel
BlockModel,
Int3
StartCoord,
Int3
EndCoord);
791
Boolean
PlaceTerrainBlocks
(
CBlockModel
BlockModel,
Int3
StartCoord,
Int3
EndCoord);
795
Boolean
PlaceTerrainBlocks_NoDestruction
(
CBlockModel
BlockModel,
Int3
StartCoord,
Int3
EndCoord);
799
Boolean
CanPlaceMacroblock
(
CMacroblockModel
BlockModel,
Int3
Coord,
CardinalDirections
Dir);
803
Boolean
PlaceMacroblock
(
CMacroblockModel
BlockModel,
Int3
Coord,
CardinalDirections
Dir);
807
Boolean
CanPlaceMacroblock_NoDestruction
(
CMacroblockModel
BlockModel,
Int3
Coord,
CardinalDirections
Dir);
811
Boolean
PlaceMacroblock_NoDestruction
(
CMacroblockModel
BlockModel,
Int3
Coord,
CardinalDirections
Dir);
815
CBlock
GetBlock
(
Int3
Coord);
819
Boolean
RemoveBlock
(
Int3
Coord);
823
Boolean
RemoveTerrainBlocks
(
Int3
StartCoord,
Int3
EndCoord);
827
Integer
GetBlockGroundHeight
(
CBlockModel
BlockModel,
Integer
CoordX,
Integer
CoordZ,
CardinalDirections
Dir);
831
CBlock
GetStartLineBlock
();
835
Void
CopyPaste_AddOrSubSelection
(
Int3
StartCoord,
Int3
EndCoord);
839
Boolean
CopyPaste_Symmetrize
();
843
Void
SaveMacroblock
(
CMacroblockModel
MacroblockModel);
847
const
CBlock
[]
Blocks
;
851
const
CBlockModel
[]
BlockModels
;
855
const
CBlockModel
[]
TerrainBlockModels
;
859
const
CMacroblockModel
[]
MacroblockModels
;
863
const
CAnchorData
[]
AnchorData
;
867
const
CEditorPluginEvent
[]
PendingEvents
;
871
Int3
[]
CustomSelectionCoords
;
875
Vec3
CustomSelectionRGB
;
879
const
CUILayer
[]
UILayers
;
883
CUILayer
UILayerCreate
();
887
Void
UILayerDestroy
(
CUILayer
Layer);
891
Void
UILayerDestroyAll
();
895
Text
ManialinkText
;
899
const
CMlPage
ManialinkPage
;
900
};
901
902
struct
CSmMapType
:
public
CMapType
{
906
const
CSmMode
Mode
;
907
};
908
909
struct
CTmMapType
:
public
CMapType
{
913
const
CTmMode
Mode
;
914
};
915
916
struct
CNod
{
920
const
Ident
Id
;
921
};
922
923
struct
CMlPage
:
public
CNod
{
927
const
CMlFrame
MainFrame
;
931
CMlControl
GetFirstChild
(
Text
ControlId);
935
Boolean
LinksInhibited
;
939
Void
GetClassChildren
(
Text
Class,
CMlFrame
Frame,
Boolean
Recursive);
943
const
CMlControl
[]
GetClassChildren_Result
;
944
};
945
946
struct
CMlEvent
:
public
CNod
{
947
enum
Type
{
948
KeyPress
,
949
MouseClick
,
950
MouseOver
,
951
MouseOut
,
952
EntrySubmit
,
953
};
957
const
Type
Type
;
961
const
Text
CharPressed
;
965
const
Text
ControlId
;
966
};
967
968
struct
CXmlManager
:
public
CNod
{
972
CXmlDocument
Create
(
Text
Contents);
976
Void
Destroy
(
CXmlDocument
Document);
980
const
CXmlDocument
[]
Documents
;
981
};
982
983
struct
CHttpManager
:
public
CNod
{
987
CHttpRequest
CreateGet
(
Text
Url);
991
CHttpRequest
CreatePost
(
Text
Url,
Text
Resource);
995
Void
Destroy
(
CHttpRequest
Request);
999
Boolean
IsValidUrl
(
Text
Url);
1003
const
CHttpRequest
[]
Requests
;
1007
const
Integer
SlotsAvailable
;
1008
};
1009
1010
struct
CMlControl
:
public
CNod
{
1011
enum
AlignHorizontal
{
1012
Left
,
1013
HCenter
,
1014
Right
,
1015
None
,
1016
};
1017
enum
AlignVertical
{
1018
Top
,
1019
VCenter
,
1020
Bottom
,
1021
None
,
1022
VCenter2
,
1023
};
1027
const
Text
ControlId
;
1031
const
Text
[]
ControlClasses
;
1035
Boolean
HasClass
(
Text
Class);
1039
Real
PosnX
;
1043
Real
PosnY
;
1047
Real
PosnZ
;
1051
Real
Scale
;
1055
Boolean
Visible
;
1059
Vec3
RelativePosition
;
1063
Real
RelativeScale
;
1067
const
Vec3
AbsolutePosition
;
1071
const
Real
AbsoluteScale
;
1075
AlignHorizontal
HorizontalAlign
;
1079
AlignVertical
VerticalAlign
;
1083
Void
Show
();
1087
Void
Hide
();
1091
Void
Unload
();
1092
};
1093
1094
struct
CUser
:
public
CNod
{
1098
const
Text
ZonePath
;
1102
const
Integer
LadderRank
;
1106
const
Integer
LadderTotal
;
1110
const
Text
Name
;
1114
const
Text
Login
;
1118
const
Text
Language
;
1122
const
Text
Description
;
1126
const
Text
ClubLink
;
1127
};
1128
1129
struct
CManiaplanetPluginEvent
:
public
CNod
{
1130
enum
EType
{
1131
LayerCustomEvent
,
1132
};
1136
const
EType
Type
;
1140
const
Text
CustomEventType
;
1144
const
Text
[]
CustomEventData
;
1145
};
1146
1150
struct
CBuddiesManager
:
public
CNod
{
1151
enum
EConnectionStatus
{
1152
Offline
,
1153
Online
,
1154
Connecting
,
1155
};
1156
enum
EDesiredConnectionStatus
{
1157
Offline
,
1158
Online
,
1159
};
1163
const
EConnectionStatus
CurrentConnectionStatus
;
1167
EDesiredConnectionStatus
DesiredConnectionStatus
;
1171
Void
SendMessage
(
CBuddy
Buddy,
Text
Type,
Text
Body);
1175
Void
ChangePresence
(
Text
Show,
Text
Status);
1179
CBuddy
GetBuddyFromLogin
(
Text
Login);
1183
const
CBuddy
[]
Buddies
;
1187
const
CBuddy
[]
OnlineBuddies
;
1191
const
CBuddy
[]
OfflineBuddies
;
1195
const
CBuddiesEvent
[]
PendingEvents
;
1196
};
1197
1198
struct
CUILayer
:
public
CNod
{
1199
enum
EUILayerType
{
1200
Normal
,
1201
ScoresTable
,
1202
ScreenIn3d
,
1203
AltMenu
,
1204
EditorPlugin
,
1205
ManiaplanetPlugin
,
1206
};
1210
Boolean
IsVisible
;
1214
EUILayerType
Type
;
1218
Text
ManialinkPage
;
1222
const
CMlPage
LocalPage
;
1223
};
1224
1225
struct
CMode
:
public
CNod
{
1226
enum
EMedal
{
1227
None
,
1228
Finished
,
1229
Bronze
,
1230
Silver
,
1231
Gold
,
1232
Author
,
1233
};
1237
const
Text
MapName
;
1241
const
CMap
Map
;
1245
const
CUser
[]
Users
;
1249
const
CTeam
[]
Teams
;
1253
Text
NeutralEmblemUrl
;
1257
const
Integer
Now
;
1261
const
Integer
Period
;
1265
Boolean
MatchEndRequested
;
1269
const
Boolean
ServerShutdownRequested
;
1273
const
Boolean
MapLoaded
;
1277
Void
RequestLoadMap
();
1281
Void
RequestUnloadMap
();
1285
const
CMapInfo
[]
MapList
;
1289
Integer
NextMapIndex
;
1293
const
CUIConfigMgr
UIManager
;
1297
Void
Ladder_OpenMatch_Request
();
1301
Void
Ladder_AddPlayer
(
CScore
PlayerScore);
1305
Void
Ladder_OpenMatch_BeginRequest
();
1309
Void
Ladder_OpenMatch_AddPlayer
(
CScore
PlayerScore);
1313
Void
Ladder_OpenMatch_EndRequest
();
1317
Void
Ladder_CloseMatchRequest
();
1321
Void
Ladder_CancelMatchRequest
();
1325
const
Boolean
Ladder_RequestInProgress
;
1329
Void
AutoTeamBalance
();
1333
Void
Solo_SetNewRecord
(
CScore
PlayerScore,
EMedal
Medal);
1337
const
CXmlRpc
XmlRpc
;
1341
const
CXmlManager
Xml
;
1345
const
CHttpManager
Http
;
1349
Integer
Synchro_AddBarrier
();
1353
Boolean
Synchro_BarrierReached
(
Integer
Barrier);
1354
};
1355
1356
struct
CTmPlayer
:
public
CPlayer
{
1360
const
CTmScore
Score
;
1364
Integer
RaceStartTime
;
1368
CTmResult
CurRace
;
1372
CTmResult
CurLap
;
1376
Integer
CurrentNbLaps
;
1380
const
Integer
CurTriggerIndex
;
1381
};
1382
1383
struct
CTmScore
:
public
CScore
{
1387
Integer
Points
;
1391
CTmResult
BestRace
;
1395
CTmResult
BestLap
;
1399
Integer
PrevRaceDeltaPoints
;
1403
CTmResult
PrevRace
;
1407
const
CGhost
BestRaceGhost
;
1411
CTmResult
TempResult
;
1415
Void
Clear
();
1416
};
1417
1418
struct
CTmModeEvent
:
public
CNod
{
1419
enum
EType
{
1420
Unknown
,
1421
StartLine
,
1422
WayPoint
,
1423
GiveUp
,
1424
Respawn
,
1425
Stunt
,
1426
};
1427
enum
EStuntFigure
{
1428
None
,
1429
StraightJump
,
1430
Flip
,
1431
BackFlip
,
1432
Spin
,
1433
Aerial
,
1434
AlleyOop
,
1435
Roll
,
1436
Corkscrew
,
1437
SpinOff
,
1438
Rodeo
,
1439
FlipFlap
,
1440
Twister
,
1441
FreeStyle
,
1442
SpinningMix
,
1443
FlippingChaos
,
1444
RollingMadness
,
1445
WreckNone
,
1446
WreckStraightJump
,
1447
WreckFlip
,
1448
WreckBackFlip
,
1449
WreckSpin
,
1450
WreckAerial
,
1451
WreckAlleyOop
,
1452
WreckRoll
,
1453
WreckCorkscrew
,
1454
WreckSpinOff
,
1455
WreckRodeo
,
1456
WreckFlipFlap
,
1457
WreckTwister
,
1458
WreckFreeStyle
,
1459
WreckSpinningMix
,
1460
WreckFlippingChaos
,
1461
WreckRollingMadness
,
1462
TimePenalty
,
1463
RespawnPenalty
,
1464
Grind
,
1465
Reset
,
1466
};
1470
const
EType
Type
;
1474
const
CTmPlayer
Player
;
1478
Integer
RaceTime
;
1482
const
Integer
CheckpointInRace
;
1486
const
Integer
CheckpointInLap
;
1490
const
Boolean
IsEndLap
;
1494
const
Boolean
IsEndRace
;
1498
Integer
LapTime
;
1502
Integer
StuntsScore
;
1506
Integer
NbRespawns
;
1510
const
Ident
BlockId
;
1514
Real
Speed
;
1518
Real
Distance
;
1522
Real
Damages
;
1526
const
EStuntFigure
StuntFigure
;
1530
const
Integer
Angle
;
1534
const
Integer
Points
;
1538
const
Integer
Combo
;
1542
const
Boolean
IsStraight
;
1546
const
Boolean
IsReverse
;
1550
const
Boolean
IsMasterJump
;
1554
const
Real
Factor
;
1555
};
1556
1557
struct
CSmPlayer
:
public
CPlayer
{
1558
enum
ESpawnStatus
{
1559
NotSpawned
,
1560
Spawning
,
1561
Spawned
,
1562
};
1566
const
Text
Name
;
1570
const
Text
Login
;
1574
const
Integer
RequestedClan
;
1578
const
Boolean
RequestsSpectate
;
1582
const
CSmScore
Score
;
1586
Integer
SoloTime
;
1590
Integer
SoloScore
;
1594
Real
BotAgressivity
;
1598
Integer
BotAgressivityDoublingTime
;
1602
Integer
BotPathOffset
;
1606
Real
BotPathSpeedCoef
;
1610
const
ESpawnStatus
SpawnStatus
;
1614
const
Boolean
IsFakePlayer
;
1618
const
Boolean
IsTouchingGround
;
1622
const
Integer
CurrentClan
;
1626
Real
AmmoGain
;
1630
Real
AmmoPower
;
1634
const
Boolean
AutoSwitchWeapon
;
1638
Integer
Armor
;
1642
Integer
ArmorMax
;
1646
Integer
ArmorGain
;
1650
Integer
ArmorReplenishGain
;
1654
Real
ArmorPower
;
1658
const
Integer
Stamina
;
1662
Real
StaminaMax
;
1666
Real
StaminaGain
;
1670
Real
StaminaPower
;
1674
const
Integer
StartTime
;
1678
Integer
EndTime
;
1682
Boolean
IsHighlighted
;
1686
Vec3
ForceColor
;
1690
const
Vec3
Position
;
1694
const
Real
AimYaw
;
1698
const
Real
AimPitch
;
1702
const
Vec3
AimDirection
;
1706
const
Boolean
IsUnderground
;
1710
const
Boolean
IsInOffZone
;
1714
const
Boolean
IsCapturing
;
1718
const
CSmBlockPole
BlockPole
;
1719
};
1720
1721
struct
CSmModeEvent
:
public
CNod
{
1722
enum
EType
{
1723
Unknown
,
1724
OnShoot
,
1725
OnHit
,
1726
OnNearMiss
,
1727
OnArmorEmpty
,
1728
OnCapture
,
1729
OnPlayerRequestRespawn
,
1730
};
1734
const
EType
Type
;
1738
const
CSmPlayer
Player
;
1742
Integer
Damage
;
1746
Integer
ShooterPoints
;
1750
const
CSmPlayer
Shooter
;
1754
const
CSmPlayer
Victim
;
1758
const
Real
MissDist
;
1762
const
Integer
WeaponNum
;
1766
const
CSmBlockPole
BlockPole
;
1767
};
1768
1769
struct
CSmBase
:
public
CNod
{
1773
Integer
Clan
;
1777
Boolean
IsActive
;
1778
};
1779
1780
struct
CSmBlock
:
public
CNod
{
1784
const
Text
Tag
;
1788
const
Integer
Order
;
1792
const
Vec3
Position
;
1796
const
Vec3
DirFront
;
1800
const
CSmBase
Base
;
1801
};
1802
1803
struct
CSmBlockSpawn
:
public
CSmBlock
{
1804
};
1805
1806
struct
CSmBlockPole
:
public
CSmBlock
{
1810
Boolean
Captured
;
1814
const
CSmSector
Sector
;
1818
const
CSmGauge
Gauge
;
1819
};
1820
1821
struct
CSmScore
:
public
CScore
{
1825
Integer
Points
;
1829
Integer
RoundPoints
;
1833
const
Integer
NbEliminationsInflicted
;
1837
const
Integer
NbEliminationsTaken
;
1841
const
Integer
NbRespawnsRequested
;
1845
const
Integer
DamageInflicted
;
1849
const
Integer
DamageTaken
;
1853
Void
Reset
();
1854
};
1855
1856
struct
CMlScriptIngame
:
public
CMlScript
{
1857
enum
LinkType
{
1858
ExternalBrowser
,
1859
ManialinkBrowser
,
1860
Goto
,
1861
ExternalFromId
,
1862
ManialinkFromId
,
1863
GotoFromId
,
1864
};
1868
const
Integer
GameTime
;
1872
const
CUser
LocalUser
;
1876
const
CUIConfig
UI
;
1880
const
Boolean
IsSpectatorMode
;
1884
const
Boolean
IsTeamMode
;
1888
const
CMap
Map
;
1892
Void
ShowCurChallengeCard
();
1896
Void
JoinTeam1
();
1900
Void
JoinTeam2
();
1904
const
CUser
LocalPlayerInfo
;
1905
};
1906
1907
struct
CTmMlPlayer
:
public
CPlayer
{
1908
enum
ERaceState
{
1909
BeforeStart
,
1910
Running
,
1911
Finished
,
1912
Eliminated
,
1913
};
1917
const
ERaceState
RaceState
;
1921
const
Integer
RaceStartTime
;
1925
const
Integer
LapStartTime
;
1929
CTmResult
CurRace
;
1933
CTmResult
CurLap
;
1937
const
Integer
CurrentNbLaps
;
1941
const
Integer
CurTriggerIndex
;
1945
const
Integer
CurCheckpointRaceTime
;
1949
const
Integer
CurCheckpointLapTime
;
1950
};
1951
1952
struct
CTeam
:
public
CNod
{
1956
Text
Name
;
1960
Text
ZonePath
;
1964
Text
City
;
1968
Text
EmblemUrl
;
1972
Text
PresentationManialinkUrl
;
1976
Vec3
ColorPrimary
;
1980
Vec3
ColorSecondary
;
1984
const
Text
ColorText
;
1988
const
Text
ColorizedName
;
1989
};
1990
1991
struct
CMap
:
public
CNod
{
1995
const
CMapInfo
MapInfo
;
1999
Text
MapName
;
2003
Text
Comments
;
2007
const
Text
AuthorZoneIconUrl
;
2011
const
Text
CollectionName
;
2015
const
Text
DecorationName
;
2019
const
Text
AuthorLogin
;
2023
const
Text
AuthorNickName
;
2027
const
Text
AuthorZonePath
;
2031
const
Text
MapType
;
2035
const
Text
MapStyle
;
2039
Integer
TMObjective_AuthorTime
;
2043
Integer
TMObjective_GoldTime
;
2047
Integer
TMObjective_SilverTime
;
2051
Integer
TMObjective_BronzeTime
;
2055
Text
ObjectiveTextAuthor
;
2059
Text
ObjectiveTextGold
;
2063
Text
ObjectiveTextSilver
;
2067
Text
ObjectiveTextBronze
;
2071
const
Integer
CopperPrice
;
2075
const
Int3
Size
;
2076
};
2077
2078
struct
CBlockModel
:
public
CCollector
{
2079
enum
EWayPointType
{
2080
Start
,
2081
Finish
,
2082
Checkpoint
,
2083
None
,
2084
StartFinish
,
2085
InsideToOutsideZ
,
2086
InsideToOutsideY
,
2087
};
2088
enum
EProdState
{
2089
Obsolete
,
2090
GameBox
,
2091
DevBuild
,
2092
Release
,
2093
};
2097
const
Text
Name
;
2101
const
Boolean
IsRoad
;
2105
const
Boolean
IsTerrain
;
2109
const
EWayPointType
WayPointType
;
2113
const
Boolean
NoRespawn
;
2117
const
CBlockModelVariantGround
VariantGround
;
2121
const
CBlockModelVariantAir
VariantAir
;
2122
};
2123
2124
struct
CMacroblockModel
:
public
CCollector
{
2128
const
Boolean
IsGround
;
2132
const
Boolean
HasStart
;
2136
const
Boolean
HasFinish
;
2140
const
Boolean
HasCheckpoint
;
2144
Boolean
IsPureTerrain
;
2148
const
CBlockModel
GeneratedBlockModel
;
2152
const
Text
Name
;
2153
};
2154
2155
struct
CBlock
:
public
CNod
{
2156
enum
CardinalDirections
{
2157
North
,
2158
East
,
2159
South
,
2160
West
,
2161
};
2165
const
Integer
BlockScriptId
;
2169
const
Boolean
CanHaveAnchor
;
2173
Void
UseDefaultAnchor
();
2177
Void
UseCustomAnchor
();
2181
const
Int3
Coord
;
2185
const
CardinalDirections
Direction
;
2189
const
CBlockUnit
[]
BlockUnits
;
2193
const
CBlockModel
BlockModel
;
2194
};
2195
2196
struct
CAnchorData
:
public
CNod
{
2200
const
Text
DefaultTag
;
2204
const
Integer
DefaultOrder
;
2208
Text
Tag
;
2212
Integer
Order
;
2213
};
2214
2215
struct
CEditorPluginEvent
:
public
CNod
{
2216
enum
Type
{
2217
CursorSelectionBegin
,
2218
CursorSelectionEnd
,
2219
CursorChange
,
2220
MapModified
,
2221
EditAnchor
,
2222
EditObjectives
,
2223
StartValidation
,
2224
};
2228
const
Type
Type
;
2232
const
Ident
EditedAnchorDataId
;
2233
};
2234
2235
struct
CMapType
:
public
CEditorPlugin
{
2236
enum
ValidationStatus
{
2237
NotValidable
,
2238
Validable
,
2239
Validated
,
2240
};
2244
Boolean
CustomEditAnchorData
;
2248
Void
ClearMapMetadata
();
2252
ValidationStatus
ValidationStatus
;
2256
Text
ValidabilityRequirementsMessage
;
2260
const
Boolean
ValidationEndRequested
;
2264
Void
RequestEnterPlayground
();
2268
Void
RequestLeavePlayground
();
2272
const
Boolean
IsSwitchedToPlayground
;
2273
};
2274
2275
struct
CMlFrame
:
public
CMlControl
{
2276
enum
EControlType
{
2277
Audio
,
2278
Entry
,
2279
FileEntry
,
2280
Frame
,
2281
Label
,
2282
Quad
,
2283
Video
,
2284
};
2288
const
CMlControl
[]
Controls
;
2292
CMlControl
GetFirstChild
(
Text
ControlId
);
2293
};
2294
2295
struct
CXmlDocument
:
public
CNod
{
2299
const
Text
TextContents
;
2303
const
CXmlNode
Root
;
2307
const
CXmlNode
[]
Nodes
;
2311
CXmlNode
GetFirstChild
(
Text
Name);
2312
};
2313
2314
struct
CHttpRequest
:
public
CNod
{
2318
const
Text
Result
;
2322
const
Integer
StatusCode
;
2326
const
Boolean
IsCompleted
;
2327
};
2328
2332
struct
CBuddy
:
public
CNod
{
2336
const
Text
Login
;
2340
const
Text
Name
;
2344
const
Text
ZonePath
;
2348
const
Boolean
IsOnline
;
2353
const
Text
PresenceShow
;
2357
const
Text
PresenceStatus
;
2358
};
2359
2363
struct
CBuddiesEvent
:
public
CNod
{
2364
enum
EType
{
2365
Message
,
2366
PresenceChange
,
2367
};
2371
const
EType
Type
;
2375
const
CBuddy
Sender
;
2379
const
Text
SenderResource
;
2383
const
Text
MessageType
;
2387
const
Text
MessageBody
;
2391
const
CBuddy
Buddy
;
2395
const
Boolean
PreviousIsOnline
;
2399
const
Text
PreviousShow
;
2403
const
Text
PreviousStatus
;
2404
};
2405
2406
struct
CMapInfo
:
public
CNod
{
2410
const
Text
Comments
;
2414
const
Integer
CopperPrice
;
2418
const
Text
CollectionName
;
2422
const
Text
AuthorLogin
;
2426
const
Text
AuthorNickName
;
2430
const
Text
AuthorZonePath
;
2434
const
Text
MapType
;
2438
const
Text
MapStyle
;
2442
const
Boolean
Unlocked
;
2446
const
Text
Name
;
2450
const
Text
Path
;
2451
};
2452
2453
struct
CUIConfigMgr
:
public
CNod
{
2457
Void
ResetAll
();
2461
const
CUIConfig
UIAll
;
2465
const
CUIConfig
[]
UI
;
2469
CUIConfig
GetUI
(
CPlayer
Player);
2473
const
CUILayer
[]
UILayers
;
2477
CUILayer
UILayerCreate
();
2481
Void
UILayerDestroy
(
CUILayer
Layer);
2485
Void
UILayerDestroyAll
();
2486
};
2487
2488
struct
CXmlRpc
:
public
CNod
{
2492
const
CXmlRpcEvent
[]
PendingEvents
;
2496
Void
SendCallback
(
Text
Param1,
Text
Param2);
2497
};
2498
2499
struct
CPlayer
:
public
CNod
{
2503
const
CUser
User
;
2507
const
Text
Login
;
2508
};
2509
2510
struct
CTmResult
:
public
CNod
{
2511
enum
ETmRaceResultCriteria
{
2512
Time
,
2513
Stunts
,
2514
NbRespawns
,
2515
CheckpointsProgress
,
2516
None
,
2517
};
2521
Integer
Time
;
2525
Integer
StuntsScore
;
2529
Integer
NbRespawns
;
2533
Integer
[]
Checkpoints
;
2537
Integer
Compare
(
CTmResult
Other,
ETmRaceResultCriteria
Criteria);
2538
};
2539
2540
struct
CScore
:
public
CNod
{
2544
const
CUser
User
;
2548
const
Boolean
IsRegisteredForLadderMatch
;
2552
const
Real
LadderScore
;
2556
Integer
LadderRankSortValue
;
2557
};
2558
2559
struct
CGhost
:
public
CNod
{
2560
};
2561
2562
struct
CSmSector
:
public
CNod
{
2566
const
Ident
[]
PlayersIds
;
2567
};
2568
2569
struct
CSmGauge
:
public
CNod
{
2573
Integer
Clan
;
2577
Real
ValueReal
;
2581
Integer
Value
;
2585
Integer
Max
;
2589
Integer
Speed
;
2590
};
2591
2595
struct
CUIConfig
:
public
CNod
{
2596
enum
EUISequence
{
2597
None
,
2598
Playing
,
2599
Intro
,
2600
Outro
,
2601
Podium
,
2602
CustomMTClip
,
2603
EndRound
,
2604
PlayersPresentation
,
2605
};
2606
enum
EUIStatus
{
2607
None
,
2608
Normal
,
2609
Warning
,
2610
Error
,
2611
Official
,
2612
};
2613
enum
EVisibility
{
2614
None
,
2615
Normal
,
2616
Manual
,
2617
ForcedHidden
,
2618
ForcedVisible
,
2619
};
2620
enum
ELabelsVisibility
{
2621
None
,
2622
Never
,
2623
Always
,
2624
WhenInFrustum
,
2625
WhenVisible
,
2626
WhenInMiddleOfScreen
,
2627
};
2628
enum
EAvatarVariant
{
2629
Default
,
2630
Sad
,
2631
Happy
,
2632
};
2633
enum
EUISound
{
2634
Default
,
2635
Silence
,
2636
StartMatch
,
2637
EndMatch
,
2638
StartRound
,
2639
EndRound
,
2640
PhaseChange
,
2641
TieBreakPoint
,
2642
TiePoint
,
2643
VictoryPoint
,
2644
Capture
,
2645
TimeOut
,
2646
Notice
,
2647
Warning
,
2648
PlayerEliminated
,
2649
PlayerHit
,
2650
Checkpoint
,
2651
Finish
,
2652
Record
,
2653
ScoreProgress
,
2654
RankChange
,
2655
Bonus
,
2656
FirstHit
,
2657
Combo
,
2658
PlayersRemaining
,
2659
Custom1
,
2660
Custom2
,
2661
Custom3
,
2662
Custom4
,
2663
};
2664
enum
ENoticeLevel
{
2665
Default
,
2666
PlayerInfo
,
2667
PlayerWarning
,
2668
MapInfo
,
2669
MapWarning
,
2670
MatchInfo
,
2671
MatchWarning
,
2672
};
2676
EUISequence
UISequence
;
2680
const
Boolean
UISequenceIsCompleted
;
2684
Text
UISequence_CustomMTClip
;
2688
Text
ManialinkPage
;
2692
Text
BigMessage
;
2696
Text
BigMessageAvatarLogin
;
2700
EAvatarVariant
BigMessageAvatarVariant
;
2704
EUISound
BigMessageSound
;
2708
Integer
BigMessageSoundVariant
;
2712
Text
StatusMessage
;
2716
Text
GaugeMessage
;
2720
Real
GaugeRatio
;
2724
Integer
GaugeClan
;
2728
Text
Hud3dMarkers
;
2732
const
CUILayer
[]
UILayers
;
2736
Boolean
OverlayHideNotices
;
2740
Boolean
OverlayHideMapInfo
;
2744
Boolean
OverlayHideOpponentsInfo
;
2748
Boolean
OverlayHideChat
;
2752
Boolean
OverlayHideCheckPointList
;
2756
Boolean
OverlayHideRoundScores
;
2760
Boolean
OverlayHideAll
;
2764
Boolean
NoticesFilter_HidePlayerInfo
;
2768
Boolean
NoticesFilter_HidePlayerWarning
;
2772
Boolean
NoticesFilter_HidePlayerInfoIfNotMe
;
2776
Boolean
NoticesFilter_HidePlayerWarningIfNotMe
;
2780
Boolean
NoticesFilter_HideMapInfo
;
2784
Boolean
NoticesFilter_HideMapWarning
;
2788
Boolean
NoticesFilter_HideMatchInfo
;
2792
Boolean
NoticesFilter_HideMatchWarning
;
2796
ENoticeLevel
NoticesFilter_LevelToShowAsBigMessage
;
2800
Text
ScoreTable
;
2804
EVisibility
ScoreTableVisibility
;
2808
Text
SmallScoreTable
;
2812
EVisibility
SmallScoreTableVisibility
;
2816
Boolean
ScoreTableOnlyManialink
;
2820
Boolean
AltMenuNoDefaultScores
;
2824
Boolean
AltMenuNoCustomScores
;
2828
Boolean
OverlayScoreSummary
;
2832
Ident
ScoreSummary_Player1
;
2836
Integer
ScoreSummary_Points1
;
2840
Integer
ScoreSummary_MatchPoints1
;
2844
Real
ScoreSummary_Gauge1
;
2848
Ident
ScoreSummary_Player2
;
2852
Integer
ScoreSummary_Points2
;
2856
Integer
ScoreSummary_MatchPoints2
;
2860
Real
ScoreSummary_Gauge2
;
2864
Boolean
ScreenIn3dHideScoreSummary
;
2868
Boolean
ScreenIn3dHideVersus
;
2872
Integer
CountdownEndTime
;
2876
EUIStatus
UIStatus
;
2880
ELabelsVisibility
AlliesLabelsVisibility
;
2884
EVisibility
AlliesLabelsShowGauges
;
2888
ELabelsVisibility
EnemiesLabelsVisibility
;
2892
EVisibility
EnemiesLabelsShowGauges
;
2896
Boolean
ForceSpectator
;
2900
Integer
SpectatorForceCameraType
;
2904
Ident
SpectatorAutoTarget
;
2908
Ident
SpectatorForcedTarget
;
2912
Integer
SpectatorForcedClan
;
2916
Real
SpectatorCamAutoLatitude
;
2920
Real
SpectatorCamAutoLongitude
;
2924
Real
SpectatorCamAutoRadius
;
2928
Void
SendChat
(
Text
Text
);
2932
Void
SendNotice
(
Text
Text
,
ENoticeLevel
Level,
CUser
Avatar,
EAvatarVariant
AvatarVariant,
EUISound
Sound,
Integer
SoundVariant);
2936
Text
GetLayerManialinkAction
(
CUILayer
Layer);
2940
Void
ClearLayerManialinkAction
(
CUILayer
Layer);
2941
};
2942
2943
struct
CCollector
:
public
CNod
{
2947
Text
PageName
;
2951
Integer
AmountAvailableCurrent
;
2955
Integer
AmountAvailableMax
;
2956
};
2957
2958
struct
CBlockModelVariantGround
:
public
CBlockModelVariant
{
2959
enum
EnumAutoTerrainPlaceType
{
2960
Auto
,
2961
Force
,
2962
DoNotPlace
,
2963
DoNotDestroy
,
2964
};
2965
};
2966
2967
struct
CBlockModelVariantAir
:
public
CBlockModelVariant
{
2968
};
2969
2970
struct
CBlockUnit
:
public
CNod
{
2974
const
Int3
Offset
;
2978
const
CBlockUnitModel
BlockUnitModel
;
2982
const
CBlock
Block
;
2983
};
2984
2985
struct
CXmlNode
:
public
CNod
{
2989
const
Text
Name
;
2993
const
Text
TextContents
;
2997
const
CXmlNode
[]
Children
;
3001
Text
GetAttributeText
(
Text
Name
,
Text
DefaultValue);
3005
Integer
GetAttributeInteger
(
Text
Name
,
Integer
DefaultValue);
3009
Real
GetAttributeReal
(
Text
Name
,
Real
DefaultValue);
3013
Boolean
GetAttributeBoolean
(
Text
Name
,
Boolean
DefaultValue);
3017
CXmlNode
GetFirstChild
(
Text
Name
);
3018
};
3019
3020
struct
CXmlRpcEvent
:
public
CNod
{
3021
enum
EType
{
3022
Unknown
,
3023
Callback
,
3024
};
3028
const
EType
Type
;
3032
const
Text
Param1
;
3036
const
Text
Param2
;
3037
};
3038
3039
struct
CBlockModelVariant
:
public
CNod
{
3043
Text
Name
;
3047
const
Boolean
IsAllUnderground
;
3051
const
Boolean
IsPartUnderground
;
3055
const
Int3
Size
;
3059
const
Int3
OffsetBoundingBoxMin
;
3063
const
Int3
OffsetBoundingBoxMax
;
3067
CBlockUnitModel
[]
BlockUnitModels
;
3068
};
3069
3070
struct
CBlockUnitModel
:
public
CNod
{
3071
enum
CardinalDirEnum
{
3072
North
,
3073
East
,
3074
South
,
3075
West
,
3076
};
3077
enum
MultiDirEnum
{
3078
Same
Dir
,
3079
Symmetrical
Dir
,
3080
All
Dir
,
3081
Opposed Dir
only
,
3082
Perpendicular Dir
only
,
3083
};
3087
const
Int3
Offset
;
3091
const
CBlockModelClip
[]
Clips
;
3092
};
3093
3094
struct
CBlockModelClip
:
public
CBlockModel
{
3095
enum
EnumClipType
{
3096
ClassicClip
,
3097
FreeClipSide
,
3098
FreeClipTop
,
3099
FreeClipBottom
,
3100
};
3101
};
3102
Generated on Fri Dec 21 2012 00:38:14 for ManiaScript by
1.8.1.2