Trackmania ManiaScript Reference 2025.6.19.2137
A ManiaScript Reference of the new Trackmania.
Loading...
Searching...
No Matches
CSmPlayer Class Reference

A Shootmania player. More...

#include <doc.h>

Inheritance diagram for CSmPlayer:
[legend]

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

Member Enumeration Documentation

◆ ESpawnStatus

Enumerator
NotSpawned 
Spawning 
Spawned 

Member Data Documentation

◆ AccelCoef

Real CSmPlayer::AccelCoef

Values in range (0.000000-1.000000)

◆ ActionWheelSelectedSlotIndex

Integer CSmPlayer::ActionWheelSelectedSlotIndex

◆ AdherenceCoef

Real CSmPlayer::AdherenceCoef

Values in range (0.000000-1.000000)

◆ AimDirection

Vec3 const CSmPlayer::AimDirection

◆ AimPitch

Real const CSmPlayer::AimPitch

◆ AimRoll

Real const CSmPlayer::AimRoll

◆ AimYaw

Real const CSmPlayer::AimYaw

◆ AllowProgressiveJump

Boolean CSmPlayer::AllowProgressiveJump

◆ AllowWallJump

Boolean CSmPlayer::AllowWallJump

◆ AmmoGain

Real CSmPlayer::AmmoGain

Values in range (0.000000-10.000000)

◆ Armor

Integer CSmPlayer::Armor

◆ ArmorGain

Integer CSmPlayer::ArmorGain

◆ ArmorMax

Integer CSmPlayer::ArmorMax

◆ ArmorPower

Real CSmPlayer::ArmorPower

Values in range (0.100000-10.000000)

◆ ArmorReplenishGain

Integer CSmPlayer::ArmorReplenishGain

◆ CapturedLandmark

CSmMapLandmark* const CSmPlayer::CapturedLandmark

◆ ControlCoef

Real CSmPlayer::ControlCoef

Values in range (0.000000-1.000000)

◆ CurrentClan

Integer const CSmPlayer::CurrentClan

◆ CurrentLapNumber

Integer const CSmPlayer::CurrentLapNumber

◆ CurrentLapRespawns

Integer const CSmPlayer::CurrentLapRespawns

◆ CurrentLapTime

Integer const CSmPlayer::CurrentLapTime

◆ CurrentLapWaypointTimes

Array<Integer> CSmPlayer::CurrentLapWaypointTimes

◆ CurrentRaceRespawns

Integer const CSmPlayer::CurrentRaceRespawns

◆ CurrentRaceTime

Integer const CSmPlayer::CurrentRaceTime

◆ DisplaySpeed

Integer const CSmPlayer::DisplaySpeed

◆ Distance

Real const CSmPlayer::Distance

◆ Dossard

Text CSmPlayer::Dossard

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

◆ Dossard_Color

Vec3 CSmPlayer::Dossard_Color

◆ Dossard_Number

Text CSmPlayer::Dossard_Number

◆ Dossard_Trigram

Text CSmPlayer::Dossard_Trigram

◆ Driver

CSmPlayerDriver* const CSmPlayer::Driver

◆ EndTime

Integer CSmPlayer::EndTime

◆ EnergyLevel

Real CSmPlayer::EnergyLevel

Values in range (0.000000-1.000000)

◆ EngineCurGear

Integer const CSmPlayer::EngineCurGear

◆ EngineRpm

Real const CSmPlayer::EngineRpm

◆ EngineTurboRatio

Real const CSmPlayer::EngineTurboRatio

◆ FlyingDistance

Real const CSmPlayer::FlyingDistance

◆ FlyingDuration

Integer const CSmPlayer::FlyingDuration

◆ ForceColor

Vec3 CSmPlayer::ForceColor

◆ ForceLightTrail

Boolean CSmPlayer::ForceLightTrail

◆ ForceLinearHue

Real CSmPlayer::ForceLinearHue

◆ ForceModelId

Ident CSmPlayer::ForceModelId

◆ GetLinearHue

Real const CSmPlayer::GetLinearHue

Values in range (0.000000-1.000000)

◆ GravityCoef

Real CSmPlayer::GravityCoef

Values in range (0.000000-1.000000)

◆ HandicapForceGasDuration

Integer const CSmPlayer::HandicapForceGasDuration

◆ HandicapNoBrakesDuration

Integer const CSmPlayer::HandicapNoBrakesDuration

◆ HandicapNoGasDuration

Integer const CSmPlayer::HandicapNoGasDuration

◆ HandicapNoGripDuration

Integer const CSmPlayer::HandicapNoGripDuration

◆ HandicapNoSteeringDuration

Integer const CSmPlayer::HandicapNoSteeringDuration

◆ HasShield

Boolean CSmPlayer::HasShield

◆ IdleDuration

Integer const CSmPlayer::IdleDuration

◆ InputGasPedal

Real const CSmPlayer::InputGasPedal

◆ InputIsBraking

Boolean const CSmPlayer::InputIsBraking

◆ InputSteer

Real const CSmPlayer::InputSteer

◆ IsAttractorActivable

Boolean const CSmPlayer::IsAttractorActivable

◆ IsBot

Boolean const CSmPlayer::IsBot

◆ IsCapturing

Boolean const CSmPlayer::IsCapturing

◆ IsEntityStateAvailable

Boolean const CSmPlayer::IsEntityStateAvailable

◆ IsFakePlayer

Boolean const CSmPlayer::IsFakePlayer

◆ IsHighlighted

Boolean CSmPlayer::IsHighlighted

◆ IsInAir

Boolean const CSmPlayer::IsInAir

◆ IsInOffZone

Boolean const CSmPlayer::IsInOffZone

◆ IsInVehicle

Boolean const CSmPlayer::IsInVehicle

◆ IsInWater

Boolean const CSmPlayer::IsInWater

◆ IsOnTech

Boolean const CSmPlayer::IsOnTech

◆ IsOnTechArmor

Boolean const CSmPlayer::IsOnTechArmor

◆ IsOnTechArrow

Boolean const CSmPlayer::IsOnTechArrow

◆ IsOnTechGround

Boolean const CSmPlayer::IsOnTechGround

◆ IsOnTechLaser

Boolean const CSmPlayer::IsOnTechLaser

◆ IsOnTechNoWeapon

Boolean const CSmPlayer::IsOnTechNoWeapon

◆ IsOnTechNucleus

Boolean const CSmPlayer::IsOnTechNucleus

◆ IsOnTechSafeZone

Boolean const CSmPlayer::IsOnTechSafeZone

◆ IsOnTechTeleport

Boolean const CSmPlayer::IsOnTechTeleport

◆ IsPowerJumpActivable

Boolean const CSmPlayer::IsPowerJumpActivable

◆ IsStuck

Boolean CSmPlayer::IsStuck

◆ IsTeleportActivable

Boolean const CSmPlayer::IsTeleportActivable

◆ IsTouchingGround

Boolean const CSmPlayer::IsTouchingGround

◆ IsUnderground

Boolean const CSmPlayer::IsUnderground

◆ JumpPower

Real CSmPlayer::JumpPower

Values in range (0.100000-1.000000)

◆ 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.

◆ LeftDirection

Vec3 const CSmPlayer::LeftDirection

◆ NbActiveAttractors

Integer const CSmPlayer::NbActiveAttractors

◆ Objects

Array<CSmObject* const > CSmPlayer::Objects

◆ Position

Vec3 const CSmPlayer::Position

◆ PreviousLapWaypointTimes

Array<Integer> CSmPlayer::PreviousLapWaypointTimes

◆ RaceWaypointTimes

Array<Integer> CSmPlayer::RaceWaypointTimes

◆ Score

CSmScore* const CSmPlayer::Score

◆ SkiddingDistance

Real const CSmPlayer::SkiddingDistance

◆ SkiddingDuration

Integer const CSmPlayer::SkiddingDuration

◆ SpawnStatus

CSmPlayer::ESpawnStatus const CSmPlayer::SpawnStatus

◆ Speed

Real const CSmPlayer::Speed

◆ SpeedPower

Real CSmPlayer::SpeedPower

Values in range (0.100000-1.000000)

◆ Stamina

Integer CSmPlayer::Stamina

◆ StaminaGain

Real CSmPlayer::StaminaGain

Values in range (0.000000-1.000000)

◆ StaminaMax

Real CSmPlayer::StaminaMax

Values in range (0.100000-3.000000)

◆ StaminaMaxValue

Integer const CSmPlayer::StaminaMaxValue

◆ StaminaPower

Real CSmPlayer::StaminaPower

Values in range (0.100000-1.000000)

◆ StartTime

Integer const CSmPlayer::StartTime

◆ Stunt

CStuntStatus* const CSmPlayer::Stunt

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

◆ ThrowSpeed

Real CSmPlayer::ThrowSpeed

Values in range (0.000000-500.000000)

◆ TrustClientSimu

Boolean CSmPlayer::TrustClientSimu

◆ UpDirection

Vec3 const CSmPlayer::UpDirection

◆ Upwardness

Real const CSmPlayer::Upwardness

◆ UseAlternateWeaponVisual

Boolean CSmPlayer::UseAlternateWeaponVisual

◆ 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).

◆ Vehicle

CModeVehicle* const CSmPlayer::Vehicle

◆ Velocity

Vec3 const CSmPlayer::Velocity

◆ WheelsContactCount

Integer const CSmPlayer::WheelsContactCount

◆ WheelsSkiddingCount

Integer const CSmPlayer::WheelsSkiddingCount

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