![]() |
ManiaScript Trackmania 2020
30/10/2024
|
API for ShootMania bots. More...
#include <2024_10_30.h>
Public Types | |
enum | ESmDriverBehaviour { Static, Turret, Scripted, IA, Patrol, Escape, Saunter, Orbit, Follow } |
enum | ESmDriverPathState { Static, None, Computing, Simple, Full, Incomplete, InFlock } |
enum | ESmDriverPatrolMode { OneTrip, BackAndForth, Loop } |
enum | ESmAttackFilter { All, AllPlayers, AllBots, AllOpposite, OppositePlayers, OppositeBots, Nobody } |
Public Member Functions | |
Void | Scripted_Move (Vec3 Goal) |
Void | Scripted_MoveDelta (Vec3 Delta) |
Void | Scripted_MoveAndAim (Vec3 Goal) |
Void | Scripted_MoveDeltaAndAim (Vec3 Delta) |
Void | Scripted_Aim (Vec3 Goal) |
Void | Scripted_AimDelta (Real DeltaYaw, Real DeltaPitch) |
Void | Scripted_RequestAction () |
Void | Scripted_RequestGunTrigger () |
Void | Scripted_RequestInput (CSmMode::EActionInput Input) |
API for ShootMania bots.
Definition at line 17868 of file 2024_10_30.h.
Enumerator | |
---|---|
All | |
AllPlayers | |
AllBots | |
AllOpposite | |
OppositePlayers | |
OppositeBots | |
Nobody |
Definition at line 17907 of file 2024_10_30.h.
Enumerator | |
---|---|
Static | |
None | |
Computing | |
Simple | |
Full | |
Incomplete | |
InFlock |
Definition at line 17887 of file 2024_10_30.h.
Enumerator | |
---|---|
OneTrip | |
BackAndForth | |
Loop |
Definition at line 17899 of file 2024_10_30.h.
Void CSmPlayerDriver::Scripted_RequestAction | ( | ) |
Same as Scripted_RequestInput(CSmMode::EActionInput::Movement).
Void CSmPlayerDriver::Scripted_RequestGunTrigger | ( | ) |
Same as Scripted_RequestInput(CSmMode::EActionInput::Weapon). This has no effect when ForcedTarget is not Null.
Void CSmPlayerDriver::Scripted_RequestInput | ( | CSmMode::EActionInput | Input | ) |
Real CSmPlayerDriver::Accuracy |
Definition at line 17947 of file 2024_10_30.h.
Real CSmPlayerDriver::AggroRadius |
Definition at line 17927 of file 2024_10_30.h.
CSmPlayerDriver::ESmAttackFilter CSmPlayerDriver::AttackFilter |
Definition at line 17971 of file 2024_10_30.h.
CSmPlayerDriver::ESmDriverBehaviour CSmPlayerDriver::Behaviour |
Definition at line 17919 of file 2024_10_30.h.
Real CSmPlayerDriver::DisengageDistance |
Definition at line 17939 of file 2024_10_30.h.
Vec3 CSmPlayerDriver::Escape_AnchorPoint |
Note that CSmMode::SpawnPlayer and CSmMode::SpawnBotPlayer may reset this value to the spawn position.
Definition at line 18035 of file 2024_10_30.h.
Real CSmPlayerDriver::Escape_DistanceMaxEscape |
Definition at line 18047 of file 2024_10_30.h.
Real CSmPlayerDriver::Escape_DistanceMinEscape |
Definition at line 18043 of file 2024_10_30.h.
Real CSmPlayerDriver::Escape_DistanceSafe |
Definition at line 18039 of file 2024_10_30.h.
Real CSmPlayerDriver::FlockAlignmentWeight |
Flocking is a work in progress. How much the driver values going the same direction as its neighbours.
Definition at line 18160 of file 2024_10_30.h.
Real CSmPlayerDriver::FlockCohesionWeight |
Flocking is a work in progress. How much the driver values going towards its neighbours.
Definition at line 18155 of file 2024_10_30.h.
Real CSmPlayerDriver::FlockFov |
Flocking is a work in progress. The field of view angle the driver uses to see its neighbours. Value in degrees.Values in range (0.000000-360.000000)
Definition at line 18150 of file 2024_10_30.h.
Array<CSmPlayerDriver*> CSmPlayerDriver::FlockPartners |
Flocking is a work in progress. You need to fill this array and define a default behaviour for each member of the flock.
Definition at line 18140 of file 2024_10_30.h.
Real CSmPlayerDriver::FlockRadius |
Flocking is a work in progress. How far the driver see its neighbours.
Definition at line 18145 of file 2024_10_30.h.
Real CSmPlayerDriver::FlockSeparationWeight |
Flocking is a work in progress. How much the driver values not hitting its neighbours.
Definition at line 18165 of file 2024_10_30.h.
Vec3 CSmPlayerDriver::Follow_AnchorPoint |
Definition at line 18099 of file 2024_10_30.h.
Boolean CSmPlayerDriver::Follow_ForceAimInLeaderDir |
Definition at line 18087 of file 2024_10_30.h.
Boolean CSmPlayerDriver::Follow_HasLeader |
Definition at line 18091 of file 2024_10_30.h.
CSmPlayer* CSmPlayerDriver::Follow_Leader |
Definition at line 18095 of file 2024_10_30.h.
Vec3 CSmPlayerDriver::Follow_Offset |
Definition at line 18083 of file 2024_10_30.h.
CSmPlayer* CSmPlayerDriver::ForcedTarget |
Definition at line 18103 of file 2024_10_30.h.
Boolean const CSmPlayerDriver::IsStuck |
Definition at line 17979 of file 2024_10_30.h.
Integer CSmPlayerDriver::LostTargetChaseDuration |
How long the driver will try to chase its target after it can't see it, 0 to disable.
Definition at line 18135 of file 2024_10_30.h.
Real CSmPlayerDriver::MaxPathDivergence |
Definition at line 18123 of file 2024_10_30.h.
CSmMode::EActionInput CSmPlayerDriver::OnStuckInput |
Definition at line 18119 of file 2024_10_30.h.
Vec3 CSmPlayerDriver::Orbit_AnchorPoint |
Note that CSmMode::SpawnPlayer and CSmMode::SpawnBotPlayer may reset this value to the spawn position.
Definition at line 18067 of file 2024_10_30.h.
Boolean CSmPlayerDriver::Orbit_IsClockWise |
Definition at line 18075 of file 2024_10_30.h.
Real CSmPlayerDriver::Orbit_Radius |
Definition at line 18071 of file 2024_10_30.h.
CSmPlayer* const CSmPlayerDriver::Owner |
Definition at line 17987 of file 2024_10_30.h.
Real CSmPlayerDriver::PathSpeedCoef |
Definition at line 17943 of file 2024_10_30.h.
CSmPlayerDriver::ESmDriverPathState const CSmPlayerDriver::PathState |
PathFinding takes some time to compute and doesn't always reach the intended goal. The player will most probably reach the goal in the case CSmPlayerDriver::ESmDriverPathState::Full.
Definition at line 17983 of file 2024_10_30.h.
CSmPlayerDriver::ESmDriverPatrolMode CSmPlayerDriver::Patrol_Mode |
Definition at line 18027 of file 2024_10_30.h.
CMapBotPath* CSmPlayerDriver::Patrol_Path |
Definition at line 18031 of file 2024_10_30.h.
Boolean CSmPlayerDriver::PredictJump |
Definition at line 18111 of file 2024_10_30.h.
Boolean CSmPlayerDriver::PursueTarget |
Definition at line 17923 of file 2024_10_30.h.
Integer CSmPlayerDriver::ReactionTime |
Definition at line 17951 of file 2024_10_30.h.
Boolean CSmPlayerDriver::RocketAnticipation |
Definition at line 17963 of file 2024_10_30.h.
Vec3 CSmPlayerDriver::Saunter_AnchorPoint |
Note that CSmMode::SpawnPlayer and CSmMode::SpawnBotPlayer may reset this value to the spawn position.
Definition at line 18051 of file 2024_10_30.h.
Integer CSmPlayerDriver::Saunter_BaseChillingTime |
Definition at line 18055 of file 2024_10_30.h.
Integer CSmPlayerDriver::Saunter_ChillingTimeDelta |
Definition at line 18059 of file 2024_10_30.h.
Real CSmPlayerDriver::Saunter_Radius |
Definition at line 18063 of file 2024_10_30.h.
Boolean CSmPlayerDriver::Scripted_ForceAimInMoveDir |
Definition at line 18079 of file 2024_10_30.h.
Integer CSmPlayerDriver::ShootPeriodMax |
Definition at line 17959 of file 2024_10_30.h.
Integer CSmPlayerDriver::ShootPeriodMin |
Definition at line 17955 of file 2024_10_30.h.
Real CSmPlayerDriver::ShootRadius |
Definition at line 17931 of file 2024_10_30.h.
CSmPlayer* const CSmPlayerDriver::Target |
Definition at line 17975 of file 2024_10_30.h.
Real CSmPlayerDriver::TargetDetectionFov |
The field of view angle the driver uses to search for targets. Value in degrees.Values in range (0.000000-360.000000)
Definition at line 17967 of file 2024_10_30.h.
Real CSmPlayerDriver::TargetMinDistance |
Definition at line 17935 of file 2024_10_30.h.
Definition at line 18107 of file 2024_10_30.h.
Real CSmPlayerDriver::TargetWorldPriority |
How much the driver value attacking the world rather than players. 0.0 for players only, 1.0 for world only, 0.5 for no preference.Values in range (0.000000-1.000000)
Definition at line 18131 of file 2024_10_30.h.
Real CSmPlayerDriver::TargetWorldRadius |
If larger than 0.0, this bot can attack destructible parts of the world.
Definition at line 18127 of file 2024_10_30.h.
Boolean CSmPlayerDriver::UsePathFinding |
Definition at line 18115 of file 2024_10_30.h.