![]() |
ManiaScript Trackmania 2020
30/10/2024
|
Rules API for ShootMania gamemodes. More...
#include <2024_10_30.h>
Public Types | |
enum | ESmScoreSortOrder { TotalPoints, RoundPoints, EliminationsInflicted, EliminationsTaken, Respawns, DamageInflicted, DamageTaken, BestRace, BestLap, PrevRace, Name, LadderRank } |
enum | EWeapon { Laser, Nucleus, Arrow, Rocket, Missile } |
enum | EActionSlot { Slot_A, Slot_B, Slot_C, Slot_D, Slot_E, Slot_F, Slot_G, Slot_H } |
enum | EActionInput { Weapon, Secondary, Movement, QuickAccess1, QuickAccess2, QuickAccess3, QuickAccess4, QuickAccess5, QuickAccess6, QuickAccess7, QuickAccess8, QuickAccess9, QuickAccess0, Consumable1, Consumable2, None } |
enum | EGameplay { Default, Mp3Beta0 } |
enum | ERespawnBehaviour { Custom, DoNothing, GiveUpBeforeFirstCheckpoint, AlwaysGiveUp, AlwaysRespawn } |
enum | ECheckpointBehaviour { Custom, Default, InfiniteLaps } |
enum | EGiveUpBehaviour { Custom, DoNothing, GiveUp } |
enum | EVehicleTransformType { Reset, CarSnow, CarRally, CarDesert } |
![]() | |
enum | EMedal { None, Finished, Bronze, Silver, Gold, Author } |
Rules API for ShootMania gamemodes.
Supported declare modes :
Definition at line 1564 of file 2024_10_30.h.
Enumerator | |
---|---|
Weapon | |
Secondary | |
Movement | |
QuickAccess1 | |
QuickAccess2 | |
QuickAccess3 | |
QuickAccess4 | |
QuickAccess5 | |
QuickAccess6 | |
QuickAccess7 | |
QuickAccess8 | |
QuickAccess9 | |
QuickAccess0 | |
Consumable1 | |
Consumable2 | |
None |
Definition at line 1609 of file 2024_10_30.h.
enum CSmMode::EActionSlot |
Enumerator | |
---|---|
Custom | |
Default | |
InfiniteLaps |
Definition at line 1647 of file 2024_10_30.h.
enum CSmMode::EGameplay |
Enumerator | |
---|---|
Default | |
Mp3Beta0 |
Definition at line 1630 of file 2024_10_30.h.
Enumerator | |
---|---|
Custom | |
DoNothing | |
GiveUp |
Definition at line 1655 of file 2024_10_30.h.
Enumerator | |
---|---|
Custom | |
DoNothing | |
GiveUpBeforeFirstCheckpoint | |
AlwaysGiveUp | |
AlwaysRespawn |
Definition at line 1637 of file 2024_10_30.h.
Enumerator | |
---|---|
TotalPoints | |
RoundPoints | |
EliminationsInflicted | |
EliminationsTaken | |
Respawns | |
DamageInflicted | |
DamageTaken | |
BestRace | |
BestLap | |
PrevRace | |
Name | |
LadderRank |
Definition at line 1569 of file 2024_10_30.h.
enum CSmMode::EWeapon |
Integer CSmMode::Action_GetCooldown | ( | CSmPlayer | Player, |
CSmMode::EActionInput | ActionInput | ||
) |
Integer CSmMode::Action_GetRemainingCooldown | ( | CSmPlayer | Player, |
CSmMode::EActionInput | ActionInput | ||
) |
Void CSmMode::ActionBind | ( | CSmPlayer | Player, |
CSmMode::EActionSlot | ActionSlot, | ||
CSmMode::EActionInput | ActionInput | ||
) |
Void CSmMode::ActionLoad | ( | CModeTurret | Turret, |
CSmMode::EActionSlot | ActionSlot, | ||
Ident | ModelId | ||
) |
Void CSmMode::ActionLoad | ( | CModeVehicle | Vehicle, |
Integer | VehicleSlotIndex, | ||
CSmMode::EActionSlot | ActionSlot, | ||
Ident | ModelId | ||
) |
Void CSmMode::ActionLoad | ( | CSmPlayer | Player, |
CSmMode::EActionSlot | ActionSlot, | ||
Ident | ModelId | ||
) |
Void CSmMode::ActionLoad | ( | CSmPlayer | Player, |
CSmMode::EActionSlot | ActionSlot, | ||
Ident | ModelId, | ||
Boolean | MeleeMode | ||
) |
Void CSmMode::ActionSetVariant1 | ( | CSmPlayer | Player, |
CSmMode::EActionSlot | ActionSlot, | ||
Integer | ActionVariant | ||
) |
Void CSmMode::ActionSetVariant2 | ( | CSmPlayer | Player, |
CSmMode::EActionSlot | ActionSlot, | ||
Integer | ActionVariant | ||
) |
Void CSmMode::ActionSetVariant3 | ( | CSmPlayer | Player, |
CSmMode::EActionSlot | ActionSlot, | ||
Integer | ActionVariant | ||
) |
Void CSmMode::ActionUnBind | ( | CSmPlayer | Player, |
CSmMode::EActionInput | ActionInput | ||
) |
Void CSmMode::AddPlayerAmmo | ( | CSmPlayer | Player, |
CSmMode::EWeapon | Weapon, | ||
Real | DeltaCount | ||
) |
Void CSmMode::DestroyAllBotPlayers | ( | ) |
Void CSmMode::Discard | ( | CSmModeEvent | Event | ) |
Void CSmMode::Entity_AddArmor | ( | CEntity | Victim, |
Integer | DeltaArmor, | ||
CEntity | Shooter, | ||
Integer | ShooterPoints | ||
) |
Void CSmMode::Entity_RemoveArmor | ( | CEntity | Victim, |
Integer | DeltaArmor, | ||
CEntity | Shooter, | ||
Integer | ShooterPoints | ||
) |
Integer CSmMode::GetPlayerAmmo | ( | CSmPlayer | Player, |
CSmMode::EWeapon | Weapon | ||
) |
Integer CSmMode::GetPlayerAmmoMax | ( | CSmPlayer | Player, |
CSmMode::EWeapon | Weapon | ||
) |
Integer CSmMode::GetWeaponNum | ( | CSmMode::EWeapon | Weapon | ) |
Transfer this ghost checkpoint-times to the score best race. The best lap of this ghost is transferred as the score best lap.
CGhost CSmMode::Ghost_RetrieveFromPlayer | ( | CSmPlayer | Player, |
Boolean | TruncateLaunchedCheckpointsRespawns | ||
) |
CSmMapLandmark CSmMode::GhostDriver_Playlist_GetNextSpawn | ( | CPlayer | Player | ) |
Void CSmMode::GiveUpBehaviour_RespawnAfter_SetLandmark | ( | CSmPlayer | Player, |
CMapSpawn | Spawn, | ||
Integer | Date | ||
) |
Integer CSmMode::Mood_GetDayDuration | ( | ) |
Real CSmMode::Mood_GetTimeOfDay | ( | ) |
Boolean CSmMode::Mood_IsNight | ( | ) |
Void CSmMode::ObjectDestroyAll | ( | ) |
Void CSmMode::PassOn | ( | CSmModeEvent | Event | ) |
Void CSmMode::Player_AddWaypointTime | ( | CSmPlayer | Player, |
Integer | Time, | ||
CSmMapLandmark | Landmark | ||
) |
Void CSmMode::Player_SetFinishTime | ( | CSmPlayer | Player, |
Integer | Time, | ||
CSmMapLandmark | Landmark | ||
) |
Void CSmMode::Replay_SaveInterface | ( | ) |
Void CSmMode::RespawnPlayer | ( | CSmPlayer | Player, |
CMapWaypoint | Waypoint | ||
) |
Void CSmMode::Scores_ClearAll | ( | ) |
Void CSmMode::Scores_ComputeLadderRank | ( | CSmMode::ESmScoreSortOrder | Criteria | ) |
Void CSmMode::Scores_SetSortCriteria | ( | CSmMode::ESmScoreSortOrder | Criteria | ) |
Void CSmMode::SetGameModeNameAndCustomData | ( | Text | GameModeName, |
Text | Leaderbord_CustomData, | ||
Text | GhostDriver_CustomData | ||
) |
Debug helper: create/destroy bot players to match provided values. (see Users_SetNbFakeUsers() for fake players that appear and the score table, ...)
Changes player's vehicle accel coef with a 250ms delay
Changes player's vehicle grip with a 250ms delay
Activate or Deactivate Boost2Down on the player's vehicle with a 250ms delay
Activate or Deactivate Boost2Up on the player's vehicle with a 250ms delay
Activate or Deactivate BoostDown on the player's vehicle with a 250ms delay
Activate or Deactivate BoostUp on the player's vehicle with a 250ms delay
Changes player's vehicle control coef with a 250ms delay
Void CSmMode::SetPlayer_Delayed_Cruise | ( | CSmPlayer | Player, |
Boolean | Activate, | ||
Real | CruiseSpeedValue | ||
) |
Activate or Deactivate Cruise at the given speed on the player's vehicle with a 250ms delay
Activate or Deactivate ForceEngine on the player's vehicle with a 250ms delay
Activate or Deactivate Fragile on the player's vehicle with a 250ms delay
Changes player's vehicle gravity coef with a 250ms delay
Activate or Deactivate NoBrake on the player's vehicle with a 250ms delay
Activate or Deactivate NoEngine on the player's vehicle with a 250ms delay
Activate or Deactivate NoSteer on the player's vehicle with a 250ms delay
Reset all change from the game mode on the player's vehicle with a 250ms delay
Activate or Deactivate SlowMotion on the player's vehicle with a 250ms delay
Changes the color of the player's vehicle tires with a 250ms delay
Void CSmMode::SetPlayer_Delayed_VehicleTransform | ( | CSmPlayer | Player, |
CSmMode::EVehicleTransformType | VehicleTransformType | ||
) |
Transform the car into another car model with a 250ms delay
Void CSmMode::SetPlayerAmmo | ( | CSmPlayer | Player, |
CSmMode::EWeapon | Weapon, | ||
Integer | Count | ||
) |
Void CSmMode::SetPlayerAmmoMax | ( | CSmPlayer | Player, |
CSmMode::EWeapon | Weapon, | ||
Integer | Count | ||
) |
Void CSmMode::SetPlayerWeapon | ( | CSmPlayer | Player, |
CSmMode::EWeapon | DefaultWeapon, | ||
Boolean | AutoSwitchWeapon | ||
) |
Void CSmMode::SetPlayerWeaponAvailable | ( | CSmPlayer | Player, |
CSmMode::EWeapon | Weapon, | ||
Boolean | Available | ||
) |
Void CSmMode::SpawnBotPlayer | ( | CSmPlayer | Player, |
CSmPlayer | Owner, | ||
Integer | Armor, | ||
Vec3 | Offset, | ||
Integer | ActivationDate | ||
) |
Void CSmMode::SpawnBotPlayer | ( | CSmPlayer | Player, |
Integer | ClanNum, | ||
Integer | Armor, | ||
CMapBotPath | BotPath, | ||
Integer | ActivationDate | ||
) |
Void CSmMode::SpawnBotPlayer | ( | CSmPlayer | Player, |
Integer | ClanNum, | ||
Integer | Armor, | ||
CMapBotSpawn | BotSpawn, | ||
Integer | ActivationDate | ||
) |
Void CSmMode::SpawnBotPlayer | ( | CSmPlayer | Player, |
Integer | ClanNum, | ||
Integer | Armor, | ||
CMapSpawn | PlayerSpawn, | ||
Integer | ActivationDate | ||
) |
Void CSmMode::SpawnPlayer | ( | CSmPlayer | Player, |
Integer | ClanNum, | ||
CModeTurret | Turret, | ||
Integer | ActivationDate | ||
) |
Void CSmMode::SpawnPlayer | ( | CSmPlayer | Player, |
Integer | ClanNum, | ||
CModeVehicle | Vehicle, | ||
Integer | ActivationDate | ||
) |
Void CSmMode::SpawnPlayer | ( | CSmPlayer | Player, |
Integer | ClanNum, | ||
CModeVehicle | Vehicle, | ||
Integer | SlotIndex, | ||
Integer | ActivationDate | ||
) |
Void CSmMode::SpawnPlayer | ( | CSmPlayer | Player, |
Integer | ClanNum, | ||
Integer | Armor, | ||
CMapSpawn | PlayerSpawn, | ||
Integer | ActivationDate | ||
) |
Definition at line 1888 of file 2024_10_30.h.
Definition at line 1880 of file 2024_10_30.h.
Boolean CSmMode::Bots_AutoIgnoreBotEvents |
Definition at line 2280 of file 2024_10_30.h.
Boolean CSmMode::Bots_AutoRespawn |
Definition at line 2276 of file 2024_10_30.h.
Boolean CSmMode::Bots_AutoSpawn |
Definition at line 2272 of file 2024_10_30.h.
Boolean CSmMode::CanReTriggerLatestWaypoint |
Definition at line 1800 of file 2024_10_30.h.
Boolean CSmMode::CharCanFly |
Definition at line 1784 of file 2024_10_30.h.
CSmMode::ECheckpointBehaviour CSmMode::CheckpointBehaviour |
Definition at line 1696 of file 2024_10_30.h.
Definition at line 1952 of file 2024_10_30.h.
Integer const CSmMode::ClansNbAlive |
Definition at line 1860 of file 2024_10_30.h.
Integer const CSmMode::ClansNbDead |
Definition at line 1864 of file 2024_10_30.h.
Definition at line 1868 of file 2024_10_30.h.
Definition at line 1872 of file 2024_10_30.h.
Integer const CSmMode::ClansNbTotal |
Definition at line 1856 of file 2024_10_30.h.
Boolean CSmMode::CrudeExtrapolation_AllowDelay |
Allow players to see others with a delay when CrudeExtrapolation is used. The quality of the visuals is better (e.g. cars won't go through walls), but it is not suitable for 'real time' game modes, such as Rounds.
Definition at line 2288 of file 2024_10_30.h.
Boolean CSmMode::DisableDefaultSkinPreload |
Declare that the game mode will only use forced models, so the client can avoid preloading player own skins.
Definition at line 1804 of file 2024_10_30.h.
Integer CSmMode::EndTime |
Definition at line 1676 of file 2024_10_30.h.
Boolean CSmMode::ForceNavMapsComputation |
Navigation maps are needed for bots to move. If the current map has bot paths or items the navigation maps will always be computed, otherwise you will need to set this explicitely to True. May be necessary if you use CreateBotPlayer or SetNbBotPlayers.
Definition at line 2284 of file 2024_10_30.h.
CSmMode::EGameplay CSmMode::Gameplay |
Definition at line 1812 of file 2024_10_30.h.
Integer CSmMode::GameplayVersion |
Definition at line 1808 of file 2024_10_30.h.
CGhostManager* const CSmMode::GhostMgr |
Only available in solo mode and map is loaded.
Definition at line 2436 of file 2024_10_30.h.
Definition at line 2472 of file 2024_10_30.h.
CSmMode::EGiveUpBehaviour CSmMode::GiveUpBehaviour |
Definition at line 1700 of file 2024_10_30.h.
Boolean CSmMode::GiveUpBehaviour_RespawnAfter |
Definition at line 1704 of file 2024_10_30.h.
Boolean CSmMode::GiveUpBehaviour_SkipAfterFinishLine |
Definition at line 1708 of file 2024_10_30.h.
Integer CSmMode::LapCountOverride |
If not 0, we use this number of laps instead of the number defined in the map
Definition at line 1712 of file 2024_10_30.h.
Array<CSmMapBase* const > CSmMode::MapBases |
Definition at line 1904 of file 2024_10_30.h.
Array<CSmMapLandmark* const > CSmMode::MapLandmarks |
Definition at line 1908 of file 2024_10_30.h.
Array<CSmMapLandmark* const > CSmMode::MapLandmarks_BotPath |
Definition at line 1924 of file 2024_10_30.h.
Array<CSmMapLandmark* const > CSmMode::MapLandmarks_BotSpawn |
Definition at line 1928 of file 2024_10_30.h.
Array<CSmMapLandmark* const > CSmMode::MapLandmarks_Foundation |
Definition at line 1940 of file 2024_10_30.h.
Array<CSmMapLandmark* const > CSmMode::MapLandmarks_Gate |
Definition at line 1936 of file 2024_10_30.h.
Array<CSmMapLandmark* const > CSmMode::MapLandmarks_Gauge |
Definition at line 1916 of file 2024_10_30.h.
Array<CSmMapLandmark* const > CSmMode::MapLandmarks_ObjectAnchor |
Definition at line 1932 of file 2024_10_30.h.
Array<CSmMapLandmark* const > CSmMode::MapLandmarks_PlayerSpawn |
Definition at line 1912 of file 2024_10_30.h.
Array<CSmMapLandmark* const > CSmMode::MapLandmarks_Sector |
Definition at line 1920 of file 2024_10_30.h.
Definition at line 2340 of file 2024_10_30.h.
Ident CSmMode::OffZoneCenterLandmarkId |
Definition at line 1840 of file 2024_10_30.h.
Real CSmMode::OffZoneRadius |
Definition at line 1832 of file 2024_10_30.h.
Real CSmMode::OffZoneRadiusSpeed |
Definition at line 1836 of file 2024_10_30.h.
Array<CSmModeEvent* const > CSmMode::PendingEvents |
Definition at line 1892 of file 2024_10_30.h.
Definition at line 1876 of file 2024_10_30.h.
Integer const CSmMode::PlayersNbAlive |
Definition at line 1848 of file 2024_10_30.h.
Integer const CSmMode::PlayersNbDead |
Definition at line 1852 of file 2024_10_30.h.
Integer const CSmMode::PlayersNbTotal |
Definition at line 1844 of file 2024_10_30.h.
Boolean CSmMode::ReadonlyLaunchedCheckpoints |
Definition at line 1780 of file 2024_10_30.h.
CSmMode::ERespawnBehaviour CSmMode::RespawnBehaviour |
Definition at line 1692 of file 2024_10_30.h.
Definition at line 1948 of file 2024_10_30.h.
Boolean CSmMode::Scores_AutoUpdateLadderRank |
Definition at line 2148 of file 2024_10_30.h.
Boolean CSmMode::Scores_AutoUploadPersonalBests |
Definition at line 2152 of file 2024_10_30.h.
CSmMode::ESmScoreSortOrder const CSmMode::Scores_SortCriteria |
Definition at line 2144 of file 2024_10_30.h.
Integer CSmMode::SpawnDelayDuration |
Definition at line 1688 of file 2024_10_30.h.
Integer CSmMode::SpawnInvulnerabilityDuration |
Definition at line 1680 of file 2024_10_30.h.
Definition at line 1884 of file 2024_10_30.h.
Integer CSmMode::StartTime |
Definition at line 1672 of file 2024_10_30.h.
Integer CSmMode::UiScoresPointsLimit |
Definition at line 1944 of file 2024_10_30.h.
Integer CSmMode::UnspawnAnimDuration |
Definition at line 1684 of file 2024_10_30.h.
Boolean CSmMode::UseAllies |
Definition at line 1792 of file 2024_10_30.h.
Boolean CSmMode::UseAmmoBonusOnHit |
Definition at line 1764 of file 2024_10_30.h.
Boolean CSmMode::UseBeaconsWithRecipients |
Definition at line 1760 of file 2024_10_30.h.
Boolean CSmMode::UseClans |
Definition at line 1720 of file 2024_10_30.h.
Boolean CSmMode::UseDefaultActionEvents |
Definition at line 1772 of file 2024_10_30.h.
Boolean CSmMode::UseForcedClans |
Definition at line 1724 of file 2024_10_30.h.
Boolean CSmMode::UseGuns |
Definition at line 1736 of file 2024_10_30.h.
Boolean CSmMode::UseInterractiveScreensIn3d |
Definition at line 1744 of file 2024_10_30.h.
Boolean CSmMode::UseLaserSkewering |
Definition at line 1752 of file 2024_10_30.h.
Boolean CSmMode::UseLaserVsBullets |
Definition at line 1748 of file 2024_10_30.h.
Boolean CSmMode::UseLaunchedCheckpoints |
Definition at line 1776 of file 2024_10_30.h.
Boolean CSmMode::UseMultiClans |
Definition at line 1716 of file 2024_10_30.h.
Boolean CSmMode::UsePlayerTagging |
Definition at line 1756 of file 2024_10_30.h.
Boolean CSmMode::UseProtectClanmates |
Definition at line 1788 of file 2024_10_30.h.
Boolean CSmMode::UsePvECollisions |
Definition at line 1728 of file 2024_10_30.h.
Boolean CSmMode::UsePvPCollisions |
Definition at line 1732 of file 2024_10_30.h.
Boolean CSmMode::UsePvPWeapons |
Definition at line 1740 of file 2024_10_30.h.
Boolean CSmMode::UseSameWallJump |
Definition at line 1768 of file 2024_10_30.h.
Boolean CSmMode::UseStunts |
Definition at line 1796 of file 2024_10_30.h.