ManiaScript Trackmania 2020  14/07/2025
CSmPlayer Class Reference

A Shootmania player. More...

#include <2025_07_14.h>

Inheritance diagram for CSmPlayer:
CPlayer CEntity CNod

Public Types

enum  ESpawnStatus { NotSpawned, Spawning, Spawned }
 

Public Attributes

CSmScore *const Score
 
CSmPlayer::ESpawnStatus const SpawnStatus
 
Integer const StartTime
 
Integer EndTime
 
Array< IntegerRaceWaypointTimes
 
Array< IntegerLapWaypointTimes
 
Array< IntegerCurrentLapWaypointTimes
 
Array< IntegerPreviousLapWaypointTimes
 
Integer const CurrentLapNumber
 
Integer const CurrentRaceTime
 
Integer const CurrentLapTime
 
Integer const CurrentRaceRespawns
 
Integer const CurrentLapRespawns
 
Real AmmoGain
 
Integer ActionWheelSelectedSlotIndex
 
Integer Armor
 
Integer ArmorMax
 
Integer ArmorGain
 
Integer ArmorReplenishGain
 
Real ArmorPower
 
Integer Stamina
 
Integer const StaminaMaxValue
 
Real StaminaMax
 
Real StaminaGain
 
Real StaminaPower
 
Real SpeedPower
 
Real JumpPower
 
Boolean AllowWallJump
 
Boolean AllowProgressiveJump
 
Boolean UseAlternateWeaponVisual
 
Ident ForceModelId
 
Boolean IsHighlighted
 
Real EnergyLevel
 
Vec3 ForceColor
 
Text Dossard
 
Text Dossard_Number
 
Text Dossard_Trigram
 
Vec3 Dossard_Color
 
Real const GetLinearHue
 
Real ForceLinearHue
 
Boolean ForceLightTrail
 
Boolean HasShield
 
Boolean const IsInVehicle
 
Boolean IsStuck
 
Real ThrowSpeed
 
Integer const CurrentClan
 
Integer const IdleDuration
 
Boolean const IsEntityStateAvailable
 
Vec3 const Position
 
Real const AimYaw
 
Real const AimPitch
 
Real const AimRoll
 
Vec3 const AimDirection
 
Vec3 const UpDirection
 
Vec3 const LeftDirection
 
Vec3 const Velocity
 
Real const Speed
 
Boolean const IsUnderground
 
Boolean const IsTouchingGround
 
Boolean const IsInAir
 
Boolean const IsInWater
 
Boolean const IsInOffZone
 
Boolean const IsOnTech
 
Boolean const IsOnTechGround
 
Boolean const IsOnTechLaser
 
Boolean const IsOnTechArrow
 
Boolean const IsOnTechNucleus
 
Boolean const IsOnTechArmor
 
Boolean const IsOnTechSafeZone
 
Boolean const IsOnTechTeleport
 
Boolean const IsOnTechNoWeapon
 
Boolean const IsPowerJumpActivable
 
Boolean const IsTeleportActivable
 
Boolean const IsAttractorActivable
 
Integer const NbActiveAttractors
 
Boolean const IsCapturing
 
CSmMapLandmark *const CapturedLandmark
 
Array< CSmObject *const > Objects
 
CModeVehicle *const Vehicle
 
Boolean const IsFakePlayer
 
Boolean const IsBot
 
Boolean UseCrudeExtrapolation
 
Boolean TrustClientSimu
 
CSmPlayerDriver *const Driver
 
Real AccelCoef
 
Real ControlCoef
 
Real GravityCoef
 
Real AdherenceCoef
 
Real const Upwardness
 
Real const Distance
 
Integer const DisplaySpeed
 
Real const InputSteer
 
Real const InputGasPedal
 
Boolean const InputIsBraking
 
Real const EngineRpm
 
Integer const EngineCurGear
 
Real const EngineTurboRatio
 
Integer const WheelsContactCount
 
Integer const WheelsSkiddingCount
 
Integer const FlyingDuration
 
Integer const SkiddingDuration
 
Real const SkiddingDistance
 
Real const FlyingDistance
 
CStuntStatus *const Stunt
 
Integer const HandicapNoGasDuration
 
Integer const HandicapForceGasDuration
 
Integer const HandicapNoBrakesDuration
 
Integer const HandicapNoSteeringDuration
 
Integer const HandicapNoGripDuration
 
- Public Attributes inherited from CPlayer
CUser *const User
 
Integer const RequestedClan
 
Boolean const RequestsSpectate
 
Integer LandmarkOrderSelector_Race
 
- Public Attributes inherited from CEntity
Ident const MarkerId
 
- Public Attributes inherited from CNod
Ident const Id
 

Detailed Description

A Shootmania player.

Supported declare modes :

  • Local
  • NetworkRead
  • NetworkWrite

Definition at line 9119 of file 2025_07_14.h.

Member Enumeration Documentation

◆ ESpawnStatus

Enumerator
NotSpawned 
Spawning 
Spawned 

Definition at line 9124 of file 2025_07_14.h.

9124  {
9125  NotSpawned,
9126  Spawning,
9127  Spawned,
9128  };

Member Data Documentation

◆ AccelCoef

Real CSmPlayer::AccelCoef

Values in range (0.000000-1.000000)

Definition at line 9468 of file 2025_07_14.h.

◆ ActionWheelSelectedSlotIndex

Integer CSmPlayer::ActionWheelSelectedSlotIndex

Definition at line 9188 of file 2025_07_14.h.

◆ AdherenceCoef

Real CSmPlayer::AdherenceCoef

Values in range (0.000000-1.000000)

Definition at line 9480 of file 2025_07_14.h.

◆ AimDirection

Vec3 const CSmPlayer::AimDirection

Definition at line 9340 of file 2025_07_14.h.

◆ AimPitch

Real const CSmPlayer::AimPitch

Definition at line 9332 of file 2025_07_14.h.

◆ AimRoll

Real const CSmPlayer::AimRoll

Definition at line 9336 of file 2025_07_14.h.

◆ AimYaw

Real const CSmPlayer::AimYaw

Definition at line 9328 of file 2025_07_14.h.

◆ AllowProgressiveJump

Boolean CSmPlayer::AllowProgressiveJump

Definition at line 9244 of file 2025_07_14.h.

◆ AllowWallJump

Boolean CSmPlayer::AllowWallJump

Definition at line 9240 of file 2025_07_14.h.

◆ AmmoGain

Real CSmPlayer::AmmoGain

Values in range (0.000000-10.000000)

Definition at line 9184 of file 2025_07_14.h.

◆ Armor

Integer CSmPlayer::Armor

Definition at line 9192 of file 2025_07_14.h.

◆ ArmorGain

Integer CSmPlayer::ArmorGain

Definition at line 9200 of file 2025_07_14.h.

◆ ArmorMax

Integer CSmPlayer::ArmorMax

Definition at line 9196 of file 2025_07_14.h.

◆ ArmorPower

Real CSmPlayer::ArmorPower

Values in range (0.100000-10.000000)

Definition at line 9208 of file 2025_07_14.h.

◆ ArmorReplenishGain

Integer CSmPlayer::ArmorReplenishGain

Definition at line 9204 of file 2025_07_14.h.

◆ CapturedLandmark

CSmMapLandmark* const CSmPlayer::CapturedLandmark

Definition at line 9436 of file 2025_07_14.h.

◆ ControlCoef

Real CSmPlayer::ControlCoef

Values in range (0.000000-1.000000)

Definition at line 9472 of file 2025_07_14.h.

◆ CurrentClan

Integer const CSmPlayer::CurrentClan

Definition at line 9312 of file 2025_07_14.h.

◆ CurrentLapNumber

Integer const CSmPlayer::CurrentLapNumber

Definition at line 9164 of file 2025_07_14.h.

◆ CurrentLapRespawns

Integer const CSmPlayer::CurrentLapRespawns

Definition at line 9180 of file 2025_07_14.h.

◆ CurrentLapTime

Integer const CSmPlayer::CurrentLapTime

Definition at line 9172 of file 2025_07_14.h.

◆ CurrentLapWaypointTimes

Array<Integer> CSmPlayer::CurrentLapWaypointTimes

Definition at line 9156 of file 2025_07_14.h.

◆ CurrentRaceRespawns

Integer const CSmPlayer::CurrentRaceRespawns

Definition at line 9176 of file 2025_07_14.h.

◆ CurrentRaceTime

Integer const CSmPlayer::CurrentRaceTime

Definition at line 9168 of file 2025_07_14.h.

◆ DisplaySpeed

Integer const CSmPlayer::DisplaySpeed

Definition at line 9492 of file 2025_07_14.h.

◆ Distance

Real const CSmPlayer::Distance

Definition at line 9488 of file 2025_07_14.h.

◆ Dossard

Text CSmPlayer::Dossard

5 ascii chars (ex: '01TMN') or empty for default value

Definition at line 9268 of file 2025_07_14.h.

◆ Dossard_Color

Vec3 CSmPlayer::Dossard_Color

Definition at line 9280 of file 2025_07_14.h.

◆ Dossard_Number

Text CSmPlayer::Dossard_Number

Definition at line 9272 of file 2025_07_14.h.

◆ Dossard_Trigram

Text CSmPlayer::Dossard_Trigram

Definition at line 9276 of file 2025_07_14.h.

◆ Driver

CSmPlayerDriver* const CSmPlayer::Driver

Definition at line 9464 of file 2025_07_14.h.

◆ EndTime

Integer CSmPlayer::EndTime

Definition at line 9144 of file 2025_07_14.h.

◆ EnergyLevel

Real CSmPlayer::EnergyLevel

Values in range (0.000000-1.000000)

Definition at line 9260 of file 2025_07_14.h.

◆ EngineCurGear

Integer const CSmPlayer::EngineCurGear

Definition at line 9512 of file 2025_07_14.h.

◆ EngineRpm

Real const CSmPlayer::EngineRpm

Definition at line 9508 of file 2025_07_14.h.

◆ EngineTurboRatio

Real const CSmPlayer::EngineTurboRatio

Definition at line 9516 of file 2025_07_14.h.

◆ FlyingDistance

Real const CSmPlayer::FlyingDistance

Definition at line 9540 of file 2025_07_14.h.

◆ FlyingDuration

Integer const CSmPlayer::FlyingDuration

Definition at line 9528 of file 2025_07_14.h.

◆ ForceColor

Vec3 CSmPlayer::ForceColor

Definition at line 9264 of file 2025_07_14.h.

◆ ForceLightTrail

Boolean CSmPlayer::ForceLightTrail

Definition at line 9292 of file 2025_07_14.h.

◆ ForceLinearHue

Real CSmPlayer::ForceLinearHue

Definition at line 9288 of file 2025_07_14.h.

◆ ForceModelId

Ident CSmPlayer::ForceModelId

Definition at line 9252 of file 2025_07_14.h.

◆ GetLinearHue

Real const CSmPlayer::GetLinearHue

Values in range (0.000000-1.000000)

Definition at line 9284 of file 2025_07_14.h.

◆ GravityCoef

Real CSmPlayer::GravityCoef

Values in range (0.000000-1.000000)

Definition at line 9476 of file 2025_07_14.h.

◆ HandicapForceGasDuration

Integer const CSmPlayer::HandicapForceGasDuration

Definition at line 9552 of file 2025_07_14.h.

◆ HandicapNoBrakesDuration

Integer const CSmPlayer::HandicapNoBrakesDuration

Definition at line 9556 of file 2025_07_14.h.

◆ HandicapNoGasDuration

Integer const CSmPlayer::HandicapNoGasDuration

Definition at line 9548 of file 2025_07_14.h.

◆ HandicapNoGripDuration

Integer const CSmPlayer::HandicapNoGripDuration

Definition at line 9564 of file 2025_07_14.h.

◆ HandicapNoSteeringDuration

Integer const CSmPlayer::HandicapNoSteeringDuration

Definition at line 9560 of file 2025_07_14.h.

◆ HasShield

Boolean CSmPlayer::HasShield

Definition at line 9296 of file 2025_07_14.h.

◆ IdleDuration

Integer const CSmPlayer::IdleDuration

Definition at line 9316 of file 2025_07_14.h.

◆ InputGasPedal

Real const CSmPlayer::InputGasPedal

Definition at line 9500 of file 2025_07_14.h.

◆ InputIsBraking

Boolean const CSmPlayer::InputIsBraking

Definition at line 9504 of file 2025_07_14.h.

◆ InputSteer

Real const CSmPlayer::InputSteer

Definition at line 9496 of file 2025_07_14.h.

◆ IsAttractorActivable

Boolean const CSmPlayer::IsAttractorActivable

Definition at line 9424 of file 2025_07_14.h.

◆ IsBot

Boolean const CSmPlayer::IsBot

Definition at line 9452 of file 2025_07_14.h.

◆ IsCapturing

Boolean const CSmPlayer::IsCapturing

Definition at line 9432 of file 2025_07_14.h.

◆ IsEntityStateAvailable

Boolean const CSmPlayer::IsEntityStateAvailable

Definition at line 9320 of file 2025_07_14.h.

◆ IsFakePlayer

Boolean const CSmPlayer::IsFakePlayer

Definition at line 9448 of file 2025_07_14.h.

◆ IsHighlighted

Boolean CSmPlayer::IsHighlighted

Definition at line 9256 of file 2025_07_14.h.

◆ IsInAir

Boolean const CSmPlayer::IsInAir

Definition at line 9368 of file 2025_07_14.h.

◆ IsInOffZone

Boolean const CSmPlayer::IsInOffZone

Definition at line 9376 of file 2025_07_14.h.

◆ IsInVehicle

Boolean const CSmPlayer::IsInVehicle

Definition at line 9300 of file 2025_07_14.h.

◆ IsInWater

Boolean const CSmPlayer::IsInWater

Definition at line 9372 of file 2025_07_14.h.

◆ IsOnTech

Boolean const CSmPlayer::IsOnTech

Definition at line 9380 of file 2025_07_14.h.

◆ IsOnTechArmor

Boolean const CSmPlayer::IsOnTechArmor

Definition at line 9400 of file 2025_07_14.h.

◆ IsOnTechArrow

Boolean const CSmPlayer::IsOnTechArrow

Definition at line 9392 of file 2025_07_14.h.

◆ IsOnTechGround

Boolean const CSmPlayer::IsOnTechGround

Definition at line 9384 of file 2025_07_14.h.

◆ IsOnTechLaser

Boolean const CSmPlayer::IsOnTechLaser

Definition at line 9388 of file 2025_07_14.h.

◆ IsOnTechNoWeapon

Boolean const CSmPlayer::IsOnTechNoWeapon

Definition at line 9412 of file 2025_07_14.h.

◆ IsOnTechNucleus

Boolean const CSmPlayer::IsOnTechNucleus

Definition at line 9396 of file 2025_07_14.h.

◆ IsOnTechSafeZone

Boolean const CSmPlayer::IsOnTechSafeZone

Definition at line 9404 of file 2025_07_14.h.

◆ IsOnTechTeleport

Boolean const CSmPlayer::IsOnTechTeleport

Definition at line 9408 of file 2025_07_14.h.

◆ IsPowerJumpActivable

Boolean const CSmPlayer::IsPowerJumpActivable

Definition at line 9416 of file 2025_07_14.h.

◆ IsStuck

Boolean CSmPlayer::IsStuck

Definition at line 9304 of file 2025_07_14.h.

◆ IsTeleportActivable

Boolean const CSmPlayer::IsTeleportActivable

Definition at line 9420 of file 2025_07_14.h.

◆ IsTouchingGround

Boolean const CSmPlayer::IsTouchingGround

Definition at line 9364 of file 2025_07_14.h.

◆ IsUnderground

Boolean const CSmPlayer::IsUnderground

Definition at line 9360 of file 2025_07_14.h.

◆ JumpPower

Real CSmPlayer::JumpPower

Values in range (0.100000-1.000000)

Definition at line 9236 of file 2025_07_14.h.

◆ LapWaypointTimes

Array<Integer> CSmPlayer::LapWaypointTimes

Equals CurrentLapWaypointTimes when not empty. If it is empty (i.e. before the 1st CP of a new lap), equals PreviousLapWaypointTimes.

Definition at line 9152 of file 2025_07_14.h.

◆ LeftDirection

Vec3 const CSmPlayer::LeftDirection

Definition at line 9348 of file 2025_07_14.h.

◆ NbActiveAttractors

Integer const CSmPlayer::NbActiveAttractors

Definition at line 9428 of file 2025_07_14.h.

◆ Objects

Array<CSmObject* const > CSmPlayer::Objects

Definition at line 9440 of file 2025_07_14.h.

◆ Position

Vec3 const CSmPlayer::Position

Definition at line 9324 of file 2025_07_14.h.

◆ PreviousLapWaypointTimes

Array<Integer> CSmPlayer::PreviousLapWaypointTimes

Definition at line 9160 of file 2025_07_14.h.

◆ RaceWaypointTimes

Array<Integer> CSmPlayer::RaceWaypointTimes

Definition at line 9148 of file 2025_07_14.h.

◆ Score

CSmScore* const CSmPlayer::Score

Definition at line 9132 of file 2025_07_14.h.

◆ SkiddingDistance

Real const CSmPlayer::SkiddingDistance

Definition at line 9536 of file 2025_07_14.h.

◆ SkiddingDuration

Integer const CSmPlayer::SkiddingDuration

Definition at line 9532 of file 2025_07_14.h.

◆ SpawnStatus

CSmPlayer::ESpawnStatus const CSmPlayer::SpawnStatus

Definition at line 9136 of file 2025_07_14.h.

◆ Speed

Real const CSmPlayer::Speed

Definition at line 9356 of file 2025_07_14.h.

◆ SpeedPower

Real CSmPlayer::SpeedPower

Values in range (0.100000-1.000000)

Definition at line 9232 of file 2025_07_14.h.

◆ Stamina

Integer CSmPlayer::Stamina

Definition at line 9212 of file 2025_07_14.h.

◆ StaminaGain

Real CSmPlayer::StaminaGain

Values in range (0.000000-1.000000)

Definition at line 9224 of file 2025_07_14.h.

◆ StaminaMax

Real CSmPlayer::StaminaMax

Values in range (0.100000-3.000000)

Definition at line 9220 of file 2025_07_14.h.

◆ StaminaMaxValue

Integer const CSmPlayer::StaminaMaxValue

Definition at line 9216 of file 2025_07_14.h.

◆ StaminaPower

Real CSmPlayer::StaminaPower

Values in range (0.100000-1.000000)

Definition at line 9228 of file 2025_07_14.h.

◆ StartTime

Integer const CSmPlayer::StartTime

Definition at line 9140 of file 2025_07_14.h.

◆ Stunt

CStuntStatus* const CSmPlayer::Stunt

Latest stunt event, and stunt currently building-up. Available when UseStunts is enabled.

Definition at line 9544 of file 2025_07_14.h.

◆ ThrowSpeed

Real CSmPlayer::ThrowSpeed

Values in range (0.000000-500.000000)

Definition at line 9308 of file 2025_07_14.h.

◆ TrustClientSimu

Boolean CSmPlayer::TrustClientSimu

Definition at line 9460 of file 2025_07_14.h.

◆ UpDirection

Vec3 const CSmPlayer::UpDirection

Definition at line 9344 of file 2025_07_14.h.

◆ Upwardness

Real const CSmPlayer::Upwardness

Definition at line 9484 of file 2025_07_14.h.

◆ UseAlternateWeaponVisual

Boolean CSmPlayer::UseAlternateWeaponVisual

Definition at line 9248 of file 2025_07_14.h.

◆ UseCrudeExtrapolation

Boolean CSmPlayer::UseCrudeExtrapolation

Use a low-fi extrapolation to display the player. This extrapolation mode does not take interactions into account. Only use it when this player does not interact with other player (e.g. TM TimeAttack, SM Obstacle).

Definition at line 9456 of file 2025_07_14.h.

◆ Vehicle

CModeVehicle* const CSmPlayer::Vehicle

Definition at line 9444 of file 2025_07_14.h.

◆ Velocity

Vec3 const CSmPlayer::Velocity

Definition at line 9352 of file 2025_07_14.h.

◆ WheelsContactCount

Integer const CSmPlayer::WheelsContactCount

Definition at line 9520 of file 2025_07_14.h.

◆ WheelsSkiddingCount

Integer const CSmPlayer::WheelsSkiddingCount

Definition at line 9524 of file 2025_07_14.h.


The documentation for this class was generated from the following file:
CSmPlayer::Spawning
@ Spawning
Definition: 2025_07_14.h:9126
CSmPlayer::Spawned
@ Spawned
Definition: 2025_07_14.h:9127
CSmPlayer::NotSpawned
@ NotSpawned
Definition: 2025_07_14.h:9125