ManiaScript Trackmania 2020  30/10/2024
CSmPlayer Class Reference

A Shootmania player. More...

#include <2024_10_30.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 9091 of file 2024_10_30.h.

Member Enumeration Documentation

◆ ESpawnStatus

Enumerator
NotSpawned 
Spawning 
Spawned 

Definition at line 9096 of file 2024_10_30.h.

9096  {
9097  NotSpawned,
9098  Spawning,
9099  Spawned,
9100  };

Member Data Documentation

◆ AccelCoef

Real CSmPlayer::AccelCoef

Values in range (0.000000-1.000000)

Definition at line 9440 of file 2024_10_30.h.

◆ ActionWheelSelectedSlotIndex

Integer CSmPlayer::ActionWheelSelectedSlotIndex

Definition at line 9160 of file 2024_10_30.h.

◆ AdherenceCoef

Real CSmPlayer::AdherenceCoef

Values in range (0.000000-1.000000)

Definition at line 9452 of file 2024_10_30.h.

◆ AimDirection

Vec3 const CSmPlayer::AimDirection

Definition at line 9312 of file 2024_10_30.h.

◆ AimPitch

Real const CSmPlayer::AimPitch

Definition at line 9304 of file 2024_10_30.h.

◆ AimRoll

Real const CSmPlayer::AimRoll

Definition at line 9308 of file 2024_10_30.h.

◆ AimYaw

Real const CSmPlayer::AimYaw

Definition at line 9300 of file 2024_10_30.h.

◆ AllowProgressiveJump

Boolean CSmPlayer::AllowProgressiveJump

Definition at line 9216 of file 2024_10_30.h.

◆ AllowWallJump

Boolean CSmPlayer::AllowWallJump

Definition at line 9212 of file 2024_10_30.h.

◆ AmmoGain

Real CSmPlayer::AmmoGain

Values in range (0.000000-10.000000)

Definition at line 9156 of file 2024_10_30.h.

◆ Armor

Integer CSmPlayer::Armor

Definition at line 9164 of file 2024_10_30.h.

◆ ArmorGain

Integer CSmPlayer::ArmorGain

Definition at line 9172 of file 2024_10_30.h.

◆ ArmorMax

Integer CSmPlayer::ArmorMax

Definition at line 9168 of file 2024_10_30.h.

◆ ArmorPower

Real CSmPlayer::ArmorPower

Values in range (0.100000-10.000000)

Definition at line 9180 of file 2024_10_30.h.

◆ ArmorReplenishGain

Integer CSmPlayer::ArmorReplenishGain

Definition at line 9176 of file 2024_10_30.h.

◆ CapturedLandmark

CSmMapLandmark* const CSmPlayer::CapturedLandmark

Definition at line 9408 of file 2024_10_30.h.

◆ ControlCoef

Real CSmPlayer::ControlCoef

Values in range (0.000000-1.000000)

Definition at line 9444 of file 2024_10_30.h.

◆ CurrentClan

Integer const CSmPlayer::CurrentClan

Definition at line 9284 of file 2024_10_30.h.

◆ CurrentLapNumber

Integer const CSmPlayer::CurrentLapNumber

Definition at line 9136 of file 2024_10_30.h.

◆ CurrentLapRespawns

Integer const CSmPlayer::CurrentLapRespawns

Definition at line 9152 of file 2024_10_30.h.

◆ CurrentLapTime

Integer const CSmPlayer::CurrentLapTime

Definition at line 9144 of file 2024_10_30.h.

◆ CurrentLapWaypointTimes

Array<Integer> CSmPlayer::CurrentLapWaypointTimes

Definition at line 9128 of file 2024_10_30.h.

◆ CurrentRaceRespawns

Integer const CSmPlayer::CurrentRaceRespawns

Definition at line 9148 of file 2024_10_30.h.

◆ CurrentRaceTime

Integer const CSmPlayer::CurrentRaceTime

Definition at line 9140 of file 2024_10_30.h.

◆ DisplaySpeed

Integer const CSmPlayer::DisplaySpeed

Definition at line 9464 of file 2024_10_30.h.

◆ Distance

Real const CSmPlayer::Distance

Definition at line 9460 of file 2024_10_30.h.

◆ Dossard

Text CSmPlayer::Dossard

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

Definition at line 9240 of file 2024_10_30.h.

◆ Dossard_Color

Vec3 CSmPlayer::Dossard_Color

Definition at line 9252 of file 2024_10_30.h.

◆ Dossard_Number

Text CSmPlayer::Dossard_Number

Definition at line 9244 of file 2024_10_30.h.

◆ Dossard_Trigram

Text CSmPlayer::Dossard_Trigram

Definition at line 9248 of file 2024_10_30.h.

◆ Driver

CSmPlayerDriver* const CSmPlayer::Driver

Definition at line 9436 of file 2024_10_30.h.

◆ EndTime

Integer CSmPlayer::EndTime

Definition at line 9116 of file 2024_10_30.h.

◆ EnergyLevel

Real CSmPlayer::EnergyLevel

Values in range (0.000000-1.000000)

Definition at line 9232 of file 2024_10_30.h.

◆ EngineCurGear

Integer const CSmPlayer::EngineCurGear

Definition at line 9484 of file 2024_10_30.h.

◆ EngineRpm

Real const CSmPlayer::EngineRpm

Definition at line 9480 of file 2024_10_30.h.

◆ EngineTurboRatio

Real const CSmPlayer::EngineTurboRatio

Definition at line 9488 of file 2024_10_30.h.

◆ FlyingDistance

Real const CSmPlayer::FlyingDistance

Definition at line 9512 of file 2024_10_30.h.

◆ FlyingDuration

Integer const CSmPlayer::FlyingDuration

Definition at line 9500 of file 2024_10_30.h.

◆ ForceColor

Vec3 CSmPlayer::ForceColor

Definition at line 9236 of file 2024_10_30.h.

◆ ForceLightTrail

Boolean CSmPlayer::ForceLightTrail

Definition at line 9264 of file 2024_10_30.h.

◆ ForceLinearHue

Real CSmPlayer::ForceLinearHue

Definition at line 9260 of file 2024_10_30.h.

◆ ForceModelId

Ident CSmPlayer::ForceModelId

Definition at line 9224 of file 2024_10_30.h.

◆ GetLinearHue

Real const CSmPlayer::GetLinearHue

Values in range (0.000000-1.000000)

Definition at line 9256 of file 2024_10_30.h.

◆ GravityCoef

Real CSmPlayer::GravityCoef

Values in range (0.000000-1.000000)

Definition at line 9448 of file 2024_10_30.h.

◆ HandicapForceGasDuration

Integer const CSmPlayer::HandicapForceGasDuration

Definition at line 9524 of file 2024_10_30.h.

◆ HandicapNoBrakesDuration

Integer const CSmPlayer::HandicapNoBrakesDuration

Definition at line 9528 of file 2024_10_30.h.

◆ HandicapNoGasDuration

Integer const CSmPlayer::HandicapNoGasDuration

Definition at line 9520 of file 2024_10_30.h.

◆ HandicapNoGripDuration

Integer const CSmPlayer::HandicapNoGripDuration

Definition at line 9536 of file 2024_10_30.h.

◆ HandicapNoSteeringDuration

Integer const CSmPlayer::HandicapNoSteeringDuration

Definition at line 9532 of file 2024_10_30.h.

◆ HasShield

Boolean CSmPlayer::HasShield

Definition at line 9268 of file 2024_10_30.h.

◆ IdleDuration

Integer const CSmPlayer::IdleDuration

Definition at line 9288 of file 2024_10_30.h.

◆ InputGasPedal

Real const CSmPlayer::InputGasPedal

Definition at line 9472 of file 2024_10_30.h.

◆ InputIsBraking

Boolean const CSmPlayer::InputIsBraking

Definition at line 9476 of file 2024_10_30.h.

◆ InputSteer

Real const CSmPlayer::InputSteer

Definition at line 9468 of file 2024_10_30.h.

◆ IsAttractorActivable

Boolean const CSmPlayer::IsAttractorActivable

Definition at line 9396 of file 2024_10_30.h.

◆ IsBot

Boolean const CSmPlayer::IsBot

Definition at line 9424 of file 2024_10_30.h.

◆ IsCapturing

Boolean const CSmPlayer::IsCapturing

Definition at line 9404 of file 2024_10_30.h.

◆ IsEntityStateAvailable

Boolean const CSmPlayer::IsEntityStateAvailable

Definition at line 9292 of file 2024_10_30.h.

◆ IsFakePlayer

Boolean const CSmPlayer::IsFakePlayer

Definition at line 9420 of file 2024_10_30.h.

◆ IsHighlighted

Boolean CSmPlayer::IsHighlighted

Definition at line 9228 of file 2024_10_30.h.

◆ IsInAir

Boolean const CSmPlayer::IsInAir

Definition at line 9340 of file 2024_10_30.h.

◆ IsInOffZone

Boolean const CSmPlayer::IsInOffZone

Definition at line 9348 of file 2024_10_30.h.

◆ IsInVehicle

Boolean const CSmPlayer::IsInVehicle

Definition at line 9272 of file 2024_10_30.h.

◆ IsInWater

Boolean const CSmPlayer::IsInWater

Definition at line 9344 of file 2024_10_30.h.

◆ IsOnTech

Boolean const CSmPlayer::IsOnTech

Definition at line 9352 of file 2024_10_30.h.

◆ IsOnTechArmor

Boolean const CSmPlayer::IsOnTechArmor

Definition at line 9372 of file 2024_10_30.h.

◆ IsOnTechArrow

Boolean const CSmPlayer::IsOnTechArrow

Definition at line 9364 of file 2024_10_30.h.

◆ IsOnTechGround

Boolean const CSmPlayer::IsOnTechGround

Definition at line 9356 of file 2024_10_30.h.

◆ IsOnTechLaser

Boolean const CSmPlayer::IsOnTechLaser

Definition at line 9360 of file 2024_10_30.h.

◆ IsOnTechNoWeapon

Boolean const CSmPlayer::IsOnTechNoWeapon

Definition at line 9384 of file 2024_10_30.h.

◆ IsOnTechNucleus

Boolean const CSmPlayer::IsOnTechNucleus

Definition at line 9368 of file 2024_10_30.h.

◆ IsOnTechSafeZone

Boolean const CSmPlayer::IsOnTechSafeZone

Definition at line 9376 of file 2024_10_30.h.

◆ IsOnTechTeleport

Boolean const CSmPlayer::IsOnTechTeleport

Definition at line 9380 of file 2024_10_30.h.

◆ IsPowerJumpActivable

Boolean const CSmPlayer::IsPowerJumpActivable

Definition at line 9388 of file 2024_10_30.h.

◆ IsStuck

Boolean CSmPlayer::IsStuck

Definition at line 9276 of file 2024_10_30.h.

◆ IsTeleportActivable

Boolean const CSmPlayer::IsTeleportActivable

Definition at line 9392 of file 2024_10_30.h.

◆ IsTouchingGround

Boolean const CSmPlayer::IsTouchingGround

Definition at line 9336 of file 2024_10_30.h.

◆ IsUnderground

Boolean const CSmPlayer::IsUnderground

Definition at line 9332 of file 2024_10_30.h.

◆ JumpPower

Real CSmPlayer::JumpPower

Values in range (0.100000-1.000000)

Definition at line 9208 of file 2024_10_30.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 9124 of file 2024_10_30.h.

◆ LeftDirection

Vec3 const CSmPlayer::LeftDirection

Definition at line 9320 of file 2024_10_30.h.

◆ NbActiveAttractors

Integer const CSmPlayer::NbActiveAttractors

Definition at line 9400 of file 2024_10_30.h.

◆ Objects

Array<CSmObject* const > CSmPlayer::Objects

Definition at line 9412 of file 2024_10_30.h.

◆ Position

Vec3 const CSmPlayer::Position

Definition at line 9296 of file 2024_10_30.h.

◆ PreviousLapWaypointTimes

Array<Integer> CSmPlayer::PreviousLapWaypointTimes

Definition at line 9132 of file 2024_10_30.h.

◆ RaceWaypointTimes

Array<Integer> CSmPlayer::RaceWaypointTimes

Definition at line 9120 of file 2024_10_30.h.

◆ Score

CSmScore* const CSmPlayer::Score

Definition at line 9104 of file 2024_10_30.h.

◆ SkiddingDistance

Real const CSmPlayer::SkiddingDistance

Definition at line 9508 of file 2024_10_30.h.

◆ SkiddingDuration

Integer const CSmPlayer::SkiddingDuration

Definition at line 9504 of file 2024_10_30.h.

◆ SpawnStatus

CSmPlayer::ESpawnStatus const CSmPlayer::SpawnStatus

Definition at line 9108 of file 2024_10_30.h.

◆ Speed

Real const CSmPlayer::Speed

Definition at line 9328 of file 2024_10_30.h.

◆ SpeedPower

Real CSmPlayer::SpeedPower

Values in range (0.100000-1.000000)

Definition at line 9204 of file 2024_10_30.h.

◆ Stamina

Integer CSmPlayer::Stamina

Definition at line 9184 of file 2024_10_30.h.

◆ StaminaGain

Real CSmPlayer::StaminaGain

Values in range (0.000000-1.000000)

Definition at line 9196 of file 2024_10_30.h.

◆ StaminaMax

Real CSmPlayer::StaminaMax

Values in range (0.100000-3.000000)

Definition at line 9192 of file 2024_10_30.h.

◆ StaminaMaxValue

Integer const CSmPlayer::StaminaMaxValue

Definition at line 9188 of file 2024_10_30.h.

◆ StaminaPower

Real CSmPlayer::StaminaPower

Values in range (0.100000-1.000000)

Definition at line 9200 of file 2024_10_30.h.

◆ StartTime

Integer const CSmPlayer::StartTime

Definition at line 9112 of file 2024_10_30.h.

◆ Stunt

CStuntStatus* const CSmPlayer::Stunt

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

Definition at line 9516 of file 2024_10_30.h.

◆ ThrowSpeed

Real CSmPlayer::ThrowSpeed

Values in range (0.000000-500.000000)

Definition at line 9280 of file 2024_10_30.h.

◆ TrustClientSimu

Boolean CSmPlayer::TrustClientSimu

Definition at line 9432 of file 2024_10_30.h.

◆ UpDirection

Vec3 const CSmPlayer::UpDirection

Definition at line 9316 of file 2024_10_30.h.

◆ Upwardness

Real const CSmPlayer::Upwardness

Definition at line 9456 of file 2024_10_30.h.

◆ UseAlternateWeaponVisual

Boolean CSmPlayer::UseAlternateWeaponVisual

Definition at line 9220 of file 2024_10_30.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 9428 of file 2024_10_30.h.

◆ Vehicle

CModeVehicle* const CSmPlayer::Vehicle

Definition at line 9416 of file 2024_10_30.h.

◆ Velocity

Vec3 const CSmPlayer::Velocity

Definition at line 9324 of file 2024_10_30.h.

◆ WheelsContactCount

Integer const CSmPlayer::WheelsContactCount

Definition at line 9492 of file 2024_10_30.h.

◆ WheelsSkiddingCount

Integer const CSmPlayer::WheelsSkiddingCount

Definition at line 9496 of file 2024_10_30.h.


The documentation for this class was generated from the following file:
CSmPlayer::Spawning
@ Spawning
Definition: 2024_10_30.h:9098
CSmPlayer::Spawned
@ Spawned
Definition: 2024_10_30.h:9099
CSmPlayer::NotSpawned
@ NotSpawned
Definition: 2024_10_30.h:9097