ManiaPlanet ManiaScript Reference 2019.11.19.1850
A ManiaScript Reference of the ManiaPlanet game.
Loading...
Searching...
No Matches
CTmMode Struct Reference

#include <doc.h>

Inheritance diagram for CTmMode:
[legend]

Public Types

enum  ETmScoreSortOrder {
  TotalPoints , BestRace_Time , BestRace_Stunts , BestRace_NbRespawns ,
  BestRace_CheckpointsProgress , PrevRace_Time , Name , LadderRankSortValue
}
 
enum  ETMRespawnBehaviour { Normal , DoNothing , GiveUpBeforeFirstCheckPoint , AlwaysGiveUp }
 
enum  ETmRaceChronoBehaviour { Auto , Hidden , CountDown , Normal }
 
enum  EPersonalGhost { Disabled , Latest , FastestRace }
 
- Public Types inherited from CMode
enum  EMedal {
  None , Finished , Bronze , Silver ,
  Gold , Author
}
 

Public Member Functions

CTmPlayer GetPlayer (CUIConfig UI)
 
CTmPlayer GetPlayer (Text Login)
 
Boolean PassOn (CTmModeEvent Event)
 
Void Discard (CTmModeEvent Event)
 
Void SpawnPlayer (CTmPlayer Player, Integer ClanNum, Integer RaceStartTime)
 
Void UnspawnPlayer (CTmPlayer Player)
 
Void SetPlayerClan (CTmPlayer Player, Integer ClanNum)
 
Void Scores_Sort (ETmScoreSortOrder SortOrder)
 
Void Scores_Clear ()
 
Void Ladder_ComputeRank (ETmScoreSortOrder SortOrder)
 
Void Cheats_Reset ()
 
Ident RaceGhost_Add (CGhost Ghost, Boolean DisplayAsPlayerBest)
 
Ident RaceGhost_AddWithOffset (CGhost Ghost, Integer OffsetMs)
 
Ident RaceGhost_Add (CGhost Ghost, Boolean DisplayAsPlayerBest, Ident ModelId)
 
Void RaceGhost_Remove (Ident GhostInstId)
 
Void RaceGhost_RemoveAll ()
 
Integer RaceGhost_GetStartTime (Ident GhostInstId)
 
Integer RaceGhost_GetCurCheckpoint (Ident GhostInstId)
 
Integer RaceGhost_GetCheckpointTime (Ident GhostInstId, Integer Checkpoint)
 
Vec3 RaceGhost_GetPosition (Ident GhostInstId)
 
Boolean RaceGhost_IsVisible (Ident GhostInstId)
 
Boolean RaceGhost_IsReplayOver (Ident GhostInstId)
 
- Public Member Functions inherited from CMode
Void TweakTeamColorsToAvoidHueOverlap ()
 
Void RequestLoadMap ()
 
Void RequestUnloadMap ()
 
Void Hud_Load (Text ModuleName)
 
Void PassOn (CUIConfigEvent EventToPassOn)
 
Void Discard (CUIConfigEvent EventToDiscard)
 
Void Ladder_OpenMatch_Request ()
 
Void Ladder_AddPlayer (CScore PlayerScore)
 
Void Ladder_OpenMatch_BeginRequest ()
 
Void Ladder_OpenMatch_AddPlayer (CScore PlayerScore)
 
Void Ladder_OpenMatch_EndRequest ()
 
Void Ladder_CloseMatchRequest ()
 
Void Ladder_CancelMatchRequest ()
 
Void Ladder_SetResultsVersion (Integer Version)
 
Void Ladder_SetMatchMakingMatchId (Integer MatchId)
 
Void Ladder_EnableChallengeMode (Boolean Enable)
 
Void AutoTeamBalance ()
 
Void Solo_SetNewRecord (CScore PlayerScore, EMedal PlayerScore)
 
Integer Synchro_AddBarrier ()
 
Boolean Synchro_BarrierReached (Integer Barrier)
 
Boolean Users_AreAllies (CUser User1, CUser User2)
 
Void Users_RequestSwitchToSpectator (CUser User)
 
CUser Users_CreateFake (Text NickName, Integer RequestedTeam)
 
Void Users_DestroyFake (CUser User)
 
Void Users_SetNbFakeUsers (Integer NbTeam1, Integer NbTeam2)
 
Void Users_DestroyAllFakes ()
 
Void ItemList_Begin ()
 
Boolean ItemList_Begin ()
 
Ident ItemList_Add (Text ModelName)
 
Ident ItemList_AddWithSkin (Text ModelName, Text SkinNameOrUrl)
 
Void ItemList_End ()
 
Void DemoToken_StartUsingToken ()
 
Void DemoToken_StopUsingToken ()
 
Void DemoToken_GetAndUseToken (CUser User)
 
Void ActionList_Begin ()
 
Boolean ActionList_Begin ()
 
Ident ActionList_Add (Text ActionName)
 
Void ActionList_End ()
 
Void Replay_Start ()
 
Void Replay_Stop ()
 
Text Dbg_DumpDeclareForVariables (CNod Nod, Boolean StatsOnly)
 

Public Attributes

const CTmPlayer[] AllPlayers
 
const CTmPlayer[] Spectators
 
const CTmPlayer[] Players
 
const CTmPlayer[] PlayersRacing
 
const CTmPlayer[] PlayersWaiting
 
const CTmScore[] Scores
 
Integer Clan1Score
 
Integer Clan2Score
 
Integer[] ClanScores
 
const Integer ClansNbTotal
 
const Integer[] ClansNbPlayers
 
const CTmModeEvent[] PendingEvents
 
Integer CutOffTimeLimit
 
Integer NbLaps
 
Boolean IndependantLaps
 
Boolean UseClans
 
Boolean UseForcedClans
 
ETMRespawnBehaviour RespawnBehaviour
 
Boolean UiRounds
 
Boolean UiLaps
 
Boolean UiStuntsMode
 
Boolean UiDisplayStuntsNames
 
Boolean UiDisableHelpMessage
 
Integer UiScoresPointsLimit
 
ETmRaceChronoBehaviour UiRaceChrono
 
Boolean EnableCollisions
 
Boolean EnableScaleCar
 
Boolean EnableCheckpointBonus
 
Boolean EnableUniqueCamera
 
Boolean EnableBonusEvents
 
Boolean HideOpponents
 
Integer ForceMaxOpponents
 
Boolean EnableLegacyXmlRpcCallbacks
 
Boolean MedalGhost_ShowGold
 
Boolean MedalGhost_ShowSilver
 
Boolean MedalGhost_ShowBronze
 
EPersonalGhost PersonalGhost
 
Boolean ValidationGhost_Use
 
Boolean ValidationGhost_Visible
 
const Ident ValidationGhost_Id
 
Boolean StuntModel_EnableCustomisation
 
Boolean StuntModel_MP3Combo
 
Boolean StuntModel_MP3Points
 
Boolean StuntModel_UseStricterAngle
 
Integer StuntModel_MinStuntDuration
 
Integer StuntModel_RespawnPenalty
 
Integer StuntModel_InterComboDelay
 
Integer StuntModel_InterComboDelayExtendPerPoint
 
Real StuntModel_FigureRepeatMalus
 
const Vec3 MapStartLinePos
 
const Vec3[] MapCheckpointPos
 
const Vec3[] MapFinishLinePos
 
const Boolean MapIsLapRace
 
const Integer MapNbLaps
 
- Public Attributes inherited from CMode
Text ModeStatusMessage
 
const CTitle LoadedTitle
 
const Text ServerLogin
 
const Text ServerName
 
const Text ServerModeName
 
const Text MapName
 
const CMap Map
 
const Text MapPlayerModelName
 
const CUser[] Users
 
const CTeam[] Teams
 
Text NeutralEmblemUrl
 
const Text ForcedClubLinkUrl1
 
const Text ForcedClubLinkUrl2
 
Text ClientManiaAppUrl
 
const Integer Now
 
const Integer Period
 
Boolean MatchEndRequested
 
const Boolean ServerShutdownRequested
 
const Boolean MapLoaded
 
const CMapInfo[] MapList
 
Integer NextMapIndex
 
const CUIConfigMgr UIManager
 
const CModulePlaygroundHud Hud
 
const Boolean Ladder_RequestInProgress
 
const CServerAdmin ServerAdmin
 
const Boolean Solo_NewRecordSequenceInProgress
 
const CXmlRpc XmlRpc
 
const CParsingManager Xml
 
const CHttpManager Http
 
const CInputManager Input
 
const CDataFileMgr DataFileMgr
 
const CScoreMgr ScoreMgr
 
const CSystemPlatform System
 
Boolean UseMinimap
 
Boolean Replay_AutoStart
 
const CAchievementsManager AchievementsManager
 
const CModeTurretManager TurretsManager
 
const CModeVehicleManager VehiclesManager
 
const CActionManager ActionsManager
 
- Public Attributes inherited from CNod
const Ident Id
 

Detailed Description

Supported declare modes : Local Persistent Rules API for TrackMania gamemodes.

Member Data Documentation

◆ MapCheckpointPos

const Vec3 [] CTmMode::MapCheckpointPos

You can use MapCheckpointPos.count to get the number of checkpoints.


The documentation for this struct was generated from the following file: