ManiaPlanet 3 ManiaScript Reference 2015.06.18.1510
A ManiaScript Reference of the ManiaPlanet 3 game (frozen installation). This is OUTDATED, and exists only for entertainment purposes.
Loading...
Searching...
No Matches
CSmMode Struct Reference

#include <doc.h>

Inheritance diagram for CSmMode:
[legend]

Public Types

enum  EWeapon { Laser , Rocket , Nucleus , Arrow }
 
enum  EActionSlot {
  Slot_A , Slot_B , Slot_C , Slot_D ,
  Slot_E , Slot_F , Slot_G , Slot_H
}
 
enum  EActionInput {
  Weapon , Movement , Activable1 , Activable2 ,
  Activable3 , Activable4 , Consumable1 , Consumable2 ,
  None
}
 
enum  EGameplay { Default , Mp3Beta0 }
 
- Public Types inherited from CMode
enum  EMedal {
  None , Finished , Bronze , Silver ,
  Gold , Author
}
 

Public Member Functions

Void PassOn (CSmModeEvent Event)
 
Void Discard (CSmModeEvent Event)
 
Void SpawnPlayer (CSmPlayer Player, Integer ClanNum, Integer Armor, CSmMapPlayerSpawn PlayerSpawn, Integer ActivationDate)
 
Void SpawnBotPlayer (CSmPlayer Player, Integer ClanNum, Integer Armor, CSmMapPlayerSpawn PlayerSpawn, Integer ActivationDate)
 
Void SpawnBotPlayer (CSmPlayer Player, Integer ClanNum, Integer Armor, CSmMapBotPath BotPath, Integer ActivationDate)
 
Void UnspawnPlayer (CSmPlayer Player)
 
Void ClearScores ()
 
Void SetPlayerClan (CSmPlayer Player, Integer ClanNum)
 
Void SetPlayerWeapon (CSmPlayer Player, EWeapon DefaultWeapon, Boolean AutoSwitchWeapon)
 
Void SetPlayerReloadAllWeapons (CSmPlayer Player, Boolean ReloadAllWeapons)
 
Void SetPlayerAmmo (CSmPlayer Player, EWeapon Weapon, Integer Count)
 
Integer GetPlayerAmmo (CSmPlayer Player, EWeapon Weapon)
 
Void AddPlayerAmmo (CSmPlayer Player, EWeapon Weapon, Real DeltaCount)
 
Void SetPlayerAmmoMax (CSmPlayer Player, EWeapon Weapon, Integer Count)
 
Integer GetPlayerAmmoMax (CSmPlayer Player, EWeapon Weapon)
 
Void AddPlayerArmor (CSmPlayer Victim, Integer DeltaArmor, CSmPlayer Shooter, Integer ShooterPoints)
 
Void RemovePlayerArmor (CSmPlayer Victim, Integer DeltaArmor, CSmPlayer Shooter, Integer ShooterPoints)
 
Integer GetWeaponNum (EWeapon Weapon)
 
Boolean CanRespawnPlayer (CSmPlayer Player)
 
Void RespawnPlayer (CSmPlayer Player)
 
Void RespawnPlayer (CSmPlayer Player, CSmMapLandmark CheckpointLandmark)
 
CSmPlayer CreateBotPlayer (Ident ModelId, Integer TeamNum)
 
Void DestroyBotPlayer (CSmPlayer BotPlayer)
 
Void DestroyAllBotPlayers ()
 
Void ScriptedBot_Move (CSmPlayer BotPlayer, Vec3 Goal)
 
Void ScriptedBot_MoveDelta (CSmPlayer BotPlayer, Vec3 Delta)
 
Void ScriptedBot_MoveAndAim (CSmPlayer BotPlayer, Vec3 Goal)
 
Void ScriptedBot_MoveDeltaAndAim (CSmPlayer BotPlayer, Vec3 Delta)
 
Void ScriptedBot_Aim (CSmPlayer BotPlayer, Vec3 Goal)
 
Void ScriptedBot_AimDelta (CSmPlayer BotPlayer, Real DeltaYaw, Real DeltaPitch)
 
Void ScriptedBot_RequestAction (CSmPlayer BotPlayer)
 
Void ScriptedBot_RequestGunTrigger (CSmPlayer BotPlayer)
 
Void ActionLoad (CSmPlayer Player, EActionSlot ActionSlot, Ident ModelId)
 
Void ActionBind (CSmPlayer Player, EActionSlot ActionSlot, EActionInput ActionInput)
 
Void ActionSetVariant (CSmPlayer Player, EActionSlot ActionSlot, Integer ActionVariant)
 
Void SetNbFakePlayers (Integer NbClan1, Integer NbClan2)
 
CSmObject ObjectCreate (Ident ModelId)
 
Void ObjectDestroy (CSmObject Object)
 
Void ObjectDestroyAll ()
 
Void Replay_SaveAttackScore (CSmPlayer Player, Integer Score)
 
Void Replay_SaveDefenseScore (CSmPlayer Player, Integer Score)
 
Void Replay_SaveTeamScore (Integer Team, Integer Score)
 
Void Replay_SavePlayerOfInterest (CSmPlayer Player)
 
Void Replay_SaveWinner (CSmPlayer Player)
 
Void Replay_SaveInterface ()
 
- Public Member Functions inherited from CMode
Void TweakTeamColorsToAvoidHueOverlap ()
 
Void RequestLoadMap ()
 
Void RequestUnloadMap ()
 
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)
 
Boolean Admin_KickUser (CUser User, Text Reason)
 
Void Admin_SetLobbyInfo (Boolean IsLobby, Integer LobbyPlayerCount, Integer LobbyMaxPlayerCount, Real LobbyPlayersLevel)
 
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 ()
 
Ident ItemList_Add (Text ModelName)
 
Ident ItemList_AddWithSkin (Text ModelName, Text SkinName)
 
Void ItemList_End ()
 
Void DemoToken_StartUsingToken ()
 
Void DemoToken_StopUsingToken ()
 
Void DemoToken_GetAndUseToken (CUser User)
 
Void ActionList_Begin ()
 
Ident ActionList_Add (Text ActionName)
 
Void ActionList_End ()
 
Void Replay_Start ()
 
Void Replay_Stop ()
 

Public Attributes

Integer StartTime
 
Integer EndTime
 
Integer SpawnInvulnerabilityDuration
 
Boolean UseClans
 
Boolean UseForcedClans
 
Boolean UsePvPCollisions
 
Boolean UsePvPWeapons
 
Boolean UseInterractiveScreensIn3d
 
Boolean UseLaserVsBullets
 
Boolean UseLaserSkewering
 
Boolean UsePlayerTagging
 
Boolean UseBeaconsWithRecipients
 
Boolean UseAmmoBonusOnHit
 
Boolean UseSameWallJump
 
Boolean UseDefaultActionEvents
 
Boolean UseAllies
 
Boolean UseAutoSpawnBots
 
Boolean ForceNavMapsComputation
 
Integer GameplayVersion
 
EGameplay Gameplay
 
Boolean UseProtectClanmates
 
Real OffZoneRadius
 
Real OffZoneRadiusSpeed
 
Ident OffZoneCenterLandmarkId
 
const Integer PlayersNbTotal
 
const Integer PlayersNbAlive
 
const Integer PlayersNbDead
 
const Integer ClansNbTotal
 
const Integer ClansNbAlive
 
const Integer ClansNbDead
 
const Integer[] ClansNbPlayers
 
const Integer[] ClansNbPlayersAlive
 
const CSmPlayer[] Players
 
const CSmPlayer[] BotPlayers
 
const CSmPlayer[] Spectators
 
const CSmPlayer[] AllPlayers
 
const CSmModeEvent[] PendingEvents
 
const CSmMapBase[] MapBases
 
const CSmMapLandmark[] MapLandmarks
 
const CSmMapLandmark[] MapLandmarks_PlayerSpawn
 
const CSmMapLandmark[] MapLandmarks_Gauge
 
const CSmMapLandmark[] MapLandmarks_Sector
 
const CSmMapLandmark[] MapLandmarks_BotPath
 
const CSmMapLandmark[] MapLandmarks_ObjectAnchor
 
const CSmMapLandmark[] MapLandmarks_Gate
 
const CSmScore[] Scores
 
Integer[] ClanScores
 
const CSmObject[] Objects
 
- 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
 
const Integer Now
 
const Integer Period
 
Boolean MatchEndRequested
 
const Boolean ServerShutdownRequested
 
const Boolean MapLoaded
 
const CMapInfo[] MapList
 
Integer NextMapIndex
 
const CUIConfigMgr UIManager
 
const Boolean Ladder_RequestInProgress
 
const Boolean Solo_NewRecordSequenceInProgress
 
const CXmlRpc XmlRpc
 
const CXmlManager Xml
 
const CHttpManager Http
 
Boolean UseMinimap
 
Boolean Replay_AutoStart
 
- Public Attributes inherited from CNod
const Ident Id
 

Detailed Description

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


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