DayZ 1.26
DayZ Explorer by KGB
|
Закрытые члены | |
proto string | ToString (bool beautify=true) |
Vector to string. | |
proto float | Normalize () |
Normalizes vector. Returns length. | |
proto vector | Normalized () |
return normalized vector (keeps orginal vector untouched) | |
proto native float | Length () |
Returns length of vector (magnitude) | |
proto native float | LengthSq () |
Returns squared length (magnitudeSqr) | |
vector | Perpend () |
Returns perpendicular vector. Perpendicular vector is computed as cross product between input vector and up vector (0, 1, 0). | |
vector | GetRelAngles () |
Returns relative angles between -180 and 180, not 0 to 360. | |
proto float | VectorToYaw () |
Returns yaw of vector. | |
proto vector | VectorToAngles () |
Converts vector to spherical coordinates with radius = 1. | |
proto vector | AnglesToVector () |
Converts spherical coordinates (yaw, pitch, roll in degrees) to unit length vector. | |
proto void | RotationMatrixFromAngles (out vector mat[3]) |
Creates rotation matrix from angles. | |
proto vector | Multiply4 (vector mat[4]) |
Transforms position. | |
proto vector | Multiply3 (vector mat[3]) |
Transforms vector. | |
proto vector | InvMultiply4 (vector mat[4]) |
Invert-transforms position. | |
proto vector | InvMultiply3 (vector mat[3]) |
Invert-transforms vector. | |
Закрытые статические члены | |
static proto native float | Distance (vector v1, vector v2) |
Returns the distance between tips of two 3D vectors. | |
static proto native float | DistanceSq (vector v1, vector v2) |
Returns the square distance between tips of two 3D vectors. | |
static vector | Direction (vector p1, vector p2) |
Returns direction vector from point p1 to point p2. | |
static vector | RandomDir () |
Returns randomly generated unit vector. | |
static vector | RandomDir2D () |
Returns randomly generated XZ unit vector with the Y(up) axis set to 0. | |
static float | Dot (vector v1, vector v2) |
Returns Dot product of vector v1 and vector v2. | |
proto static native vector | YawToVector (float yaw) |
Returns vector of yaw. | |
static proto native vector | Lerp (vector v1, vector v2, float t) |
Lerp between two vectors. | |
static vector | RotateAroundZeroDeg (vector vec, vector axis, float angle) |
Rotate a vector around 0,0,0 by an angle in degrees. | |
static vector | RotateAroundZeroRad (vector vec, vector axis, float angle) |
Rotate a vector around 0,0,0 by an angle in radians. | |
static vector | RotateAroundZero (vector pos, vector axis, float cosAngle, float sinAngle) |
Rotate a vector around 0,0,0. | |
static vector | RotateAroundPoint (vector point, vector pos, vector axis, float cosAngle, float sinAngle) |
Rotate a vector around point. | |
static vector | ArrayToVec (float arr[]) |
Convert static array of floats into a vector. | |
Закрытые статические данные | |
static const vector | Up = "0 1 0" |
static const vector | Aside = "1 0 0" |
static const vector | Forward = "0 0 1" |
static const vector | Zero = "0 0 0" |
Converts spherical coordinates (yaw, pitch, roll in degrees) to unit length vector.
normalized
direction vector Convert static array of floats into a vector.
arr | vector in array format |
vector
resulting vector Перекрестные ссылки Vector().
Используется в ArrowManagerPlayer::Load() и ObjectSpawnerHandler::SpawnObject().
Returns direction vector from point p1 to point p2.
p1 | vector point from |
p2 | vector point to |
vector
direction vector Используется в EntityLightSource::AttachOnMemoryPoint(), CarScript(), WeaponParticlesBase::CheckOrientationOverride(), ActionFishingNew::OnUpdate(), ActionFishingNew::TrySpawnCatch() и UIScriptedMenu::Update().
Returns the distance between tips of two 3D vectors.
v1 | vector 3D Vector 1 |
v2 | vector 3D Vector 2 |
float
Distance Используется в ActionFillBrakes::ActionCondition(), ActionFillCoolant::ActionCondition(), ActionFillOil::ActionCondition(), ActionCreateIndoorFireplace::ActionCondition(), ActionCreateIndoorOven::ActionCondition(), ActionPlaceFireplaceIndoor::ActionCondition(), ActionPlaceOvenIndoor::ActionCondition(), BotSelectNearestTarget(), Environment::CalcTemperatureFromTemperatureSource(), PluginBase::CalcTemperatureFromTemperatureSource(), PropertyModifiers::CalculateBarrelLength(), CalculateBreadCrumbs(), CanReachSeatFromDoors(), DayZInfected::ChaseAttackLogic(), CheckAllowUpdate(), PoweredOptic_Base::DoMeasurement(), WeaponDebug::DrawLineOfFireCameraHybrid(), WeaponDebug::DrawLineOfFireMuzzleToHit(), UniversalTemperatureSourceLambdaBaseImpl::DryItemsInVicinity(), ContaminatedArea_Dynamic::EEOnCECreate(), InventoryItem::EOnContact(), EffBulletImpactBase::Event_OnStarted(), CGame::ExplosionEffects(), DayZInfected::FightAttackLogic(), GetCeilingHeight(), GetClosestCarWheel(), GetMeleeTargetEx(), GetMouseDistance(), ItemBase::GetNearestSlotIDByState(), Hologram::GetProjectionEntityPosition(), BaseBuildingBase::HasProperDistance(), HitZoneSelection(), AttachmentsOutOfReach::IsAttachmentReachable(), ComponentEnergyManager::IsEnergySourceAtReach(), IsObstructed(), ManBase::IsTargetInActiveRefresherRange(), Hit_MeatBones::OnEnterCalculations(), Grenade_Base::OnExplosionEffects(), Achievements::OnPlayerKilled(), AnalyticsManagerServer::OnPlayerToPlayerHit(), InventoryActionHandler::OnUpdate(), ActionPushObject::OnUpdate(), OnUpdate(), BotStateBase::OnUpdate(), PluginBase::PlayerHitBy(), PluginBase::PlayerKilled(), Environment::ProcessItemsDryness(), Pulling(), PluginRecipesManagerBase::RecipeSanityCheck(), Hud::RefreshPlayerTags(), RefreshTracksCache(), ScriptConsoleVicinityTab::RenderList(), UIScriptedMenu::SetCameraData(), Hologram::SetHologramPosition(), DeveloperTeleport::TeleportAtCursor(), EntityLightSource::TryShadowOptimization(), UpdateDistanceWidget(), PluginBase::UpdateStatWidget() и UniversalTemperatureSourceLambdaBaseImpl::WarmAndCoolItemsInVicinity().
Returns the square distance between tips of two 3D vectors.
v1 | vector 3D Vector 1 |
v2 | vector 3D Vector 2 |
float
Squere distance Используется в ActionFillBottleBase::ActionCondition(), ActionFillFuel::ActionCondition(), ActionEnterLadder::ActionCondition(), ActionTriggerRemotely::ActionCondition(), CalculateLinePointFade(), CCTCursor::Can(), CCTCursorNoObject::Can(), CCTCursorNoRuinCheck::Can(), CCTCursorParent::Can(), CCTMan::Can(), CCTNonRuined::Can(), CCTObject::Can(), CCTParent::Can(), CCTSurface::Can(), CCTTree::Can(), CCTWaterSurface::Can(), Can(), ActionTargets::ComputeUtility(), ComponentEnergyManager::DebugUpdate(), ActionTargets::DistSqrPoint2Line(), ActionRepackTentCB::DropDuringRepacking(), ContaminatedArea_Dynamic::EEOnCECreate(), EvaluateComponentEx(), DayZInfected::FightLogic(), FilterObstructedObjectsByGrouping(), Environment::GatherTemperatureSources(), CfgPlayerRestrictedAreaHandler::GetClosestArea(), Land_WarheadStorage_PowerStation::GetClosestBunker(), GetClosestDoor(), PowerGeneratorStatic::GetClosestGenerator(), GetClosestSafePos(), PlayerRestrictedAreaInstance::GetClosestSafePos3D(), GetMeleeTargetEx(), EntityAI::GetNearestDoorBySoundPos(), ActionTargetsCursor::GetOnScreenPosition(), Hologram::GetProjectionEntityPosition(), HitZoneSelectionRaycast(), ActionBase::IsInReach(), IsObjectObstructedEx(), IsPlaceable(), ItemBase::IsPlaceable(), IsShortDistance(), WeaponStateBase::OnAbort(), OnAbort(), RemoteDetonatorTrigger::OnActivatedByItem(), OnCEUpdate(), RemoteDetonatorTrigger::OnCEUpdate(), ActionEmptyMagazine::OnExecuteServer(), WeaponStateBase::OnExit(), Grenade_Base::OnExplosionEffects(), CGame::OnRPC(), FliesMdfr::OnTick(), PluginBase::ProcessUniversalTemperatureSources(), RefreshFireplaceVisuals(), VicinityItemManager::RefreshVicinityItems(), ResizeParticle(), FlareSimulation::Simulate(), SplitArrayIntoGroupsByDistance(), ManBase::SpreadAgentsEx(), TargetSelection() и AreaDamageTriggerBase::UpdateInsiders().
Returns Dot product of vector v1 and vector v2.
v1 | vector input vector |
v2 | vector input vector |
vector
direction vector Используется в ActionCreateIndoorFireplace::ActionCondition(), ActionCreateIndoorOven::ActionCondition(), ActionPlaceFireplaceIndoor::ActionCondition(), ActionPlaceOvenIndoor::ActionCondition(), CanBeIgnitedBy(), CheckContactCache(), DayZInfected::ComputeHitDirectionAngle(), DayZCreatureAI::ComputeHitDirectionAngleDeg(), DayZInfected::ComputeHitDirectionAngleEx(), ActionTargets::DistSqrPoint2Line(), DropAllItemsInInventoryInBounds(), BoatScript::EOnContact(), DayZInfected::EvaluateCrawlTransitionAnimation(), DayZPlayer::EvaluateDamageHitAnimation(), DayZPlayer::EvaluateDeathAnimation(), EffBulletImpactBase::Event_OnStarted(), VicinityItemManager::ExcludeFromContainer_Phase1(), FilterObstructedObjectsByGrouping(), ActionPushCar::GetDirectionDot(), HitZoneSelectionRaycast(), IsEntityBehindEntityInAngle(), BaseBuildingBase::IsFacingCamera(), BaseBuildingBase::IsFacingPlayer(), IsPlayerOrientedTowardPos(), Weapon::LiftWeaponCheck(), OnAttachmentRuined(), OnContact(), RotateAroundZero(), RotateAroundZeroDeg() и RotateAroundZeroRad().
|
inlineprivate |
Returns relative angles between -180 and 180, not 0 to 360.
float
Relative angles Invert-transforms position.
mat | vector [4] transformation matrix |
vec | vector position to transform |
vector
transformed position Returns length of vector (magnitude)
float
Length of vector Используется в Hologram::AlignProjectionOnTerrain(), CheckContactCache(), EffBulletImpactBase::EvaluateEffect(), EffBulletImpactBase::Event_OnStarted(), Hit_MeatBones::Event_OnStarted(), Entity::RegisterTransportHit() и ScriptConsoleGeneralTab::Update().
Lerp between two vectors.
Используется в Weapon::LiftWeaponCheck() и PPERequester_GameplayBase::SetEffectProgress().
Transforms position.
mat | vector [4] transformation matrix |
vec | vector position to transform |
vector
transformed position Normalizes vector. Returns length.
float
Length of origin vector Используется в CreateArrow(), CreateBridgeArrow(), ComponentEnergyManager::DrawArrow(), WeaponDebug::DrawLineOfFireCameraHybrid(), MeleeTargetSettings(), CGame::OnProjectileStoppedInObject(), CGame::OnProjectileStoppedInTerrain(), ActionFishingNew::OnUpdate(), PluginBase::OnUpdate() и Entity::RegisterTransportHit().
return normalized vector (keeps orginal vector untouched)
Используется в CarScript(), CheckContactCache(), BoatScript::EOnContact(), EffBulletImpactBase::Event_OnStarted(), GetHeadingVector(), Math3D::GetRandomDir(), OnContact(), EntityPlacementCallback::OnSetup(), RandomDir(), RandomDir2D() и DayZIntroSceneXbox::UpdateCharacterPos().
|
inlineprivate |
Returns perpendicular vector. Perpendicular vector is computed as cross product between input vector and up vector (0, 1, 0).
vector
perpendicular vector Перекрестные ссылки Up.
Используется в CreateArrow(), CreateBridgeArrow() и ComponentEnergyManager::DrawArrow().
Returns randomly generated unit vector.
randomly
generated unit vector Перекрестные ссылки Normalized(), Math::RandomFloatInclusive() и Vector().
Returns randomly generated XZ unit vector with the Y(up) axis set to 0.
randomly
generated XZ unit vector Перекрестные ссылки Normalized(), Math::RandomFloatInclusive() и Vector().
Используется в SpookyEventBase::GetSoundPos() и ContaminatedArea_Dynamic::SpawnItems().
|
inlinestaticprivate |
Rotate a vector around point.
point | point to rotate around |
pos | vector to rotate |
axis | axis to rotate around |
cosAngle | cos of angle |
sinAngle | sin of angle |
vector
transformed vector Перекрестные ссылки RotateAroundZero().
|
inlinestaticprivate |
Rotate a vector around 0,0,0.
pos | vector to rotate |
axis | axis to rotate around |
cosAngle | cos of angle |
sinAngle | sin of angle |
vector
transformed vector Перекрестные ссылки Dot().
Используется в FilterObstructedObjectsByGrouping(), RotateAroundPoint() и GameInventory::SetGroundPosByOwnerBounds().
Rotate a vector around 0,0,0 by an angle in degrees.
vec | vector to rotate |
axis | axis to rotate around |
cosAngle | angle in degrees |
vector
transformed vector Перекрестные ссылки Math::Cos(), Math::DEG2RAD, Dot() и Math::Sin().
Используется в Weapon::LiftWeaponCheck().
Rotate a vector around 0,0,0 by an angle in radians.
vec | vector to rotate |
axis | axis to rotate around |
cosAngle | angle in radians |
vector
transformed vector Перекрестные ссылки Math::Cos(), Dot() и Math::Sin().
Creates rotation matrix from angles.
ang | vector which contains angles | |
[out] | mat | vector created rotation matrix |
Vector to string.
beautify | If true verbose vector in more human readable form "<1, 1, 1>" instead of simple form "1 1 1" |
string
Converted vector as parsed string Используется в RecoilBase::ApplyMouseOffset(), PluginBase::CheckInit(), PluginBase::GetPlayerPrefix(), ScriptConsoleGeneralTab::Init(), ScriptConsoleGeneralTab::ProcessTeleportText(), PluginConfigHandler::SetItemDebugPos(), UIScriptedMenu::SetPosition() и HudDebugWinBase::Update().
Converts vector to spherical coordinates with radius = 1.
vector
spherical coordinates (yaw, pitch, roll in degrees) Используется в ActionEnterLadder::ActionCondition() и EffBulletImpactBase::Event_OnStarted().
Returns vector of yaw.
yaw | float Value of yaw |
vector
Yaw converted in vector Используется в RecoilBase::PostInit().
Используется в FilterObstructedObjectsByGrouping().
Используется в AddLightSource(), ApplyForce(), AreaDamageManager(), AreaDamageTriggerBase::AreaDamageTrigger(), ATCCachedObject::ATCCachedTarget(), CCTSurface::Can(), SpookyEventBase::CanPerform(), ActionManagerClient::CanPerformActionFromInventory(), ActionManagerClient::CanPerformActionFromQuickbar(), ActionManagerClient::CanSetActionFromInventory(), ManBase::CommandHandler(), CopyOldPropertiesToNew(), Particle::CreateParticleEffect(), Weapon::CreateWeaponWithAmmo(), DeployableContainer_Base(), EOnPostSimulate(), ExplosivesBase(), ActionManagerClient::FindActionTarget(), CGame::FirearmEffects(), FireplaceBase(), ActionManagerClient::ForceTarget(), GameplayEffectsData::GenerateSequenceRandomPosition(), DayZInfected::GetAttackPitch(), GetCurrentLocalPosition(), EffectSound::GetCurrentLocalPosition(), ScriptConsoleGeneralTab::GetCurrentLocationPos(), EffectParticle::GetCurrentOrientation(), GetCurrentPosition(), Entity::GetDefaultHitPosition(), GetDefaultHitPosition(), Hologram::GetDefaultOrientation(), GetHeadingVector(), AITargetCallbacks::GetHeadPositionWS(), SpookyEventBase::GetMatchingSurfacePos(), GetMemoryPointPosition(), ActionTargetsCursor::GetOnScreenPosition(), Hologram::GetProjectionEntityPosition(), Hologram::GetProjectionOrientation(), Hologram::GetProjectionPosition(), AreaDamageComponentRaycasted::GetRaycastedHitZone(), GetValveAligningPointsWS(), Selection::GetVertexPosition(), AITargetCallbacks::GetVisionPointPositionWS(), Container_Base::GiftBox_Base(), UIScriptedMenu::HandleLights(), UIScriptedMenu::HandleNVG(), ActionBase::HandleReciveData(), ActionWorldCraft::HandleReciveData(), FirearmActionAttachMagazine::HandleReciveData(), FirearmActionAttachMagazineQuick::HandleReciveData(), HitZoneSelectionRaycast(), ScriptConsoleGeneralTab::Init(), Init(), InternalResetTarget(), ATCCachedObject::Invalidate(), Weapon::LiftWeaponCheck(), PluginConfigHandler::LoadScenePlayer(), Math3D::MatrixIdentity4(), OnActivate(), OnCenterPanelDropReceived(), BotWaitForChangeInHands::OnEntry(), CGame::OnEvent(), ActionCreateIndoorFireplace::OnExecuteServer(), ActionCreateIndoorOven::OnExecuteServer(), OnInit(), DayZPlayer::OnInputUserDataProcess(), ManBase::OnParticleEvent(), Trigger::OnRPC(), CGame::OnRPC(), DayZPlayerCameraBase::OnUpdate(), OnUpdate(), ActionManagerClient::PerformActionFromInventory(), ActionManagerClient::PerformActionFromQuickbar(), ManBase::PhysicalPredictiveDropItem(), ManBase::PlacingCompleteLocal(), ManBase::PlacingCompleteServer(), ContaminatedArea_Dynamic::PlayFX(), PlaySmokeParticle(), SEffectManager::PlaySoundOnObject(), FirearmActionAttachMagazineQuick::Post_SetupAction(), ManBase::PredictiveForceSwapEntities(), ManBase::PredictiveSwapEntities(), ManBase::PredictiveTakeEntityToHands(), ScriptConsoleGeneralTab::ProcessTeleportText(), ActionBase::ReadFromContext(), ManBase::ReloadWeapon(), RemoveLightSource(), InventoryActionHandler::SetAction(), ActionManagerClient::SetActionFromInventory(), DeveloperTeleport::SetPlayerPosition(), SetupAction(), CatchingResultBasic::SpawnAndSetup(), PluginBase::SpawnItemOnCrosshair(), UndergroundTriggerCarrierBase::SpawnTrigger(), StandUp(), ItemBase::TentBase(), TestOwnership(), PMTPlayback::TestStopping(), TrySelectFinisherType(), ScriptedWidgetEventHandler::Update(), ActionManagerServer::Update(), CarHornShortActionInput::UpdatePossibleActions(), ToggleLightsActionInput::UpdatePossibleActions(), ToggleNVGActionInput::UpdatePossibleActions(), WeaponParticlesBase::WeaponParticlesBase(), ActionBase::WriteToContext() и WriteToContext().