您的位置:首页 > 产品设计 > UI/UE

TORQUE脚本的全局变量参考手册(List of script globals linked to engine code)

2006-07-03 23:28 531 查看
Note:this resource is a complete list of all the global script variables accessed by the engine code, along with definitions. The definitions are a work in progress.

最近忙了一段时间,周日回来后搞了个TORQUE的研究社区网站:www.torquecn.com ,觉得有必要让其他朋友一起发表和搜集资料并一起学习TORUQE,这个社区提供下载,翻译文档,和开发日志,只要是会员就可以发表自己的学习日志,真正做到一起学习!呵呵,重要的还是找个地方把平时搜集的资料保存起来,不然太浪费了.而且现在可以大家一起搜集,是不是周到一点呀!呵呵.废话不说,请各位热心的朋友多多共享资料呀! 首先还是到www.torquecn.com 注册登陆啦.
另外要说的是,虽然有了www.torquecn.com,但是CSDN的"EddieTorque的专栏"还是不变的,毕竟我们是从这里开始的.

下面是TORQUE们整理出来完整的TORQUE脚本的全局变量,有些有变量的说明,有些的还没有,继续完善中,如果您清楚那些没有说明的变量,请留言共享出来,大家一起进步,我只做了前面几个变量的翻译,以后会继续的.

$Game::argc
命令行参数的数量,包括程序的名称.

$Game::argv
命令行参数,这个是个array列表变量,索引从0到$Game::argc-1

$GameBase::boundingBox
通过设置这个全局变量,可以显示或者隐藏bounding boxes用于调试
备注:bounding boxes是模型附带绑定的一个BOX,用于模型物理空间的和法线方向定位.

$Camera::movementSpeed
这个变量存储free-flying摄像机的移动速度.

$Client::MissionFile
Name of the current mission file; used when creating a name for the lighting (.ml) file.
当前任务的文件的名称,

$Con::Prompt
控制器的命令提示符号.

$Con::WindowTitle,
控制器窗口的名称(只用于win32 和mac系统)

$AnisotropySupported

$Audio::numActiveLoopingStreams


$Audio::numActiveStreams

$Audio::numCulledLoopingStreams

$Audio::numInactiveLoopingStreams

$Audio::numLoopingStreams

$Audio::numNullActiveStreams

$Audio::numOpenHandles

$Audio::numOpenLoopingHandles

$Collision::boxSize

$Collision::depthRender

$Collision::depthSort

$Collision::renderAlways

$Collision::testClippedPolyList

$Collision::testDepthSortList

$Collision::testExtrudedPolyList

$Collision::testPolytope

$DamageType::Ground

$DamageType::Impact

$DamageType::Water

$DbgSetCursorWatch

$Demo::playbackTime

$DisableSystemProfiling, win32 and mac only

$DocRoot

$EventModifier::ALT
$EventModifier::CTRL
$EventModifier::LALT
$EventModifier::LCTRL
$EventModifier::LSHIFT
$EventModifier::RALT
$EventModifier::RCTRL
$EventModifier::RSHIFT
$EventModifier::SHIFT

$FP::DisableAsserts

$FogCoordSupported

$GUI::clipboardFile

$GUI::fontCacheDirectory

$InspectingObject

$Inspector

$Interior::DontRestrictOutside

$Interior::insideDistanceFalloff

$Item::maxLatencyTicks

$Item::maxWarpTicks

$Item::minWarpTicks

$MasterServerAddress

$ModRoot

$OpenGL::primCount array, indices 0 through 3, win32 only

$OpenGL::triCount array, indices 0 through 3, win32 only

$PalettedTextureSupported

$Player::maxLatencyTicks

$Player::maxPredictionTicks

$Player::maxWarpTicks

$Player::minWarpTicks

$PlayingOnline, win32 and unix only

$Pref::Audio::ForceMaxDistanceUpdate
May have something to do with detecting if the cutoff distance changes for sounds; however, currently this variable is ignored. (Engine code that would link to this is commented out.)

$Pref::Client::ServerFavoriteCount
Number of favorite servers.

$Pref::Client::ServerFavorite array, indices 0 through $Pref::Client::ServerFavoriteCount-1
Favorite server name, followed by tab, followed by server address:port.

$Pref::CloudOutline
Whether to outline the clouds.

$Pref::CloudsOn
Enable/disable cloud layers.

$Pref::Decal::DecalTimeout
Decal lifetime in milliseconds.

$Pref::Decal::MaxNumDecals
Maximum number of decals.

$Pref::DecalsOn
Whether to add decals.

$Pref::Editor::VisibleDistance
Visible distance when the editor is active.

$Pref::EnvironmentMaps
Enable/disable environment mapping effects on objects.

$Pref::Input::Joystickx::Axis array, x is device ID, indices 0 through numAxes-1, unix only

$Pref::Input::JoystickEnabled, win32 and unix only
Enable/disable joystick input.

$Pref::Input::KeyboardEnabled, win32 and unix only
Enable/disable keyboard input.

$Pref::Input::MouseEnabled, win32 and unix only
Enable/disable mouse input.

$Pref::Interior::DetailAdjust
Adjust the structure's calculated visible size before selecting level of detail (from 0.3 to 1.0).

$Pref::Interior::DynamicLights
Enable/disable rendering of dynamic lights on structures.

$Pref::Interior::LightUpdatePeriod
Milliseconds between lighting recalculation for structures.

$Pref::Interior::LockArrays
Enable/disable compiled vertex arrays optimization (if supported).

$Pref::Interior::ShowEnvironmentMaps
Enable/disable environment mapping effects on structures.

$Pref::Interior::TexturedFog
Enable/disable textured fog in structures (if supported).

$Pref::Interior::VertexLighting
Enable/disable vertex lighting (instead of lightmaps).

$Pref::Master array, indices 0 through 9
Master server region number followed by colon followed by master server address:port.

$Pref::Net::BindAddress
IP address to bind the server port to, if more than one is available.

$Pref::Net::LagThreshold
Ping time above which GameConnection::setLagIcon is called for a client.

$Pref::Net::PacketRateToClient
$Pref::Net::PacketRateToServer
Rate controls for client/server communication; ranges of 1-32 and 8-32 respectively.

$Pref::Net::PacketSize
Initial size in bytes of the comm buffer (may be enlarged if necessary); range 100-450.

$Pref::Net::RegionMask
Region number used to select master server.

$Pref::NumCloudLayers
Number of cloud layers to render.

$Pref::OpenGL::AllowCompression

$Pref::OpenGL::AllowTexGen

$Pref::OpenGL::Anisotropy

$Pref::OpenGL::DisableARBMultitexture

$Pref::OpenGL::DisableARBTextureCompression

$Pref::OpenGL::DisableEXTCompiledVertexArray

$Pref::OpenGL::DisableEXTFogCoord, win32 only

$Pref::OpenGL::DisableEXTPalettedTexture

$Pref::OpenGL::DisableEXTTexEnvCombine

$Pref::OpenGL::DisableSubImage

$Pref::OpenGL::Force16BitTexture

$Pref::OpenGL::ForcePalettedTexture

$Pref::OpenGL::GammaCorrection

$Pref::OpenGL::InteriorMipReduction, win32 only

$Pref::OpenGL::LightingAmbientColor

$Pref::OpenGL::MaterialAmbientColor

$Pref::OpenGL::MaterialDiffuseColor

$Pref::OpenGL::MaxHardwareLights

$Pref::OpenGL::MipReduction, win32 only

$Pref::OpenGL::NPatch

$Pref::OpenGL::NPatchLevel

$Pref::OpenGL::NoDrawArraysAlpha

$Pref::OpenGL::NoEnvColor

$Pref::OpenGL::NumFSAASamples, mac only

$Pref::OpenGL::SkyMipReduction, win32 only

$Pref::OpenGL::TextureAnisotropy

$Pref::OpenGL::TextureTrilinear

$Pref::Player::RenderMyItems
Enable/disable drawing images mounted on the client's player.

$Pref::Player::RenderMyPlayer
Enable/disable rendering the client's own player object.

$Pref::PrecipitationOn
Enable/disable precipitation.

$Pref::PrePause
Enable/disable motion of precipitation.

$Pref::SceneLighting::CacheLighting

$Pref::SceneLighting::CacheSize

$Pref::SceneLighting::PurgeMethod

$Pref::SceneLighting::TerrainAllowLexelSplits

$Pref::SceneLighting::TerrainGenerateLevel

$Pref::Server::Info
String describing the server, provided to queries.

$Pref::Server::MaxPlayers
Maximum number of clients that can connect to the server.

$Pref::Server::Name
Name of server, provided to queries.

$Pref::Server::Password
Password for server access.

$Pref::Server::RegionMask
Bitfield specifying which region(s) the server belongs to... region numbering scheme unknown?

$Pref::Shadows

$Pref::SkyOn

$Pref::Terrain::DynamicLights

$Pref::Terrain::EnableDetails

$Pref::Terrain::NPatch

$Pref::Terrain::NPatchLevel

$Pref::Terrain::ScreenError

$Pref::Terrain::TexDetail

$Pref::Terrain::TextureCacheSize

$Pref::TradeshowDemo

$Pref::TS::AutoDetail

$Pref::TS::DetailAdjust

$Pref::TS::FogTexture

$Pref::TS::ScreenError

$Pref::TS::SkipFirstFog

$Pref::TS::SkipLoadDLs

$Pref::TS::SkipRenderDLs

$Pref::Video::AllowD3D

$Pref::Video::AllowOpenGL

$Pref::Video::AppliedPref

$Pref::Video::ClipHigh

$Pref::Video::DefaultsRenderer, win32 and mac only

$Pref::Video::DefaultsVendor, win32 and mac only

$Pref::Video::DeleteContext, win32 and mac only

$Pref::Video::DisableVerticalSync

$Pref::Video::DisplayDevice

$Pref::Video::FullScreen
Select fullscreen or windowed display.

$Pref::Video::MonitorNum, mac only

$Pref::Video::Only16

$Pref::Video::PreferOpenGL

$Pref::Video::ProfiledRenderer, win32 and mac only

$Pref::Video::ProfiledVendor, win32 and mac only

$Pref::Video::Resolution

$Pref::Video::SafeModeOn, win32 and mac only

$Pref::Video::WindowedRes, mac only

$Pref::VisibleDistanceMod

$SB::DFDec

$SB::WODec

$SceneLighting::lightingProgress

$SceneLighting::terminateLighting

$ScriptError

$Server::BotCount

$Server::Dedicated
Whether the server is a dedicated server or also moonlighting as its own client.

$Server::GameType
The name of your product or project.

$Server::GuidList

$Server::MissionName
The name of the current environment.

$Server::MissionType
The name of the style of gameplay currently in use.

$Server::PlayerCount
The number of clients currently connected.

$Server::ServerType
"SinglePlayer" or "MultiPlayer".

$ServerInfo::Address
$ServerInfo::BotCount
$ServerInfo::CPUSpeed
$ServerInfo::Dedicated
$ServerInfo::Favorite
$ServerInfo::GameType
$ServerInfo::Info
$ServerInfo::MaxPlayers
$ServerInfo::MissionName
$ServerInfo::MissionType
$ServerInfo::Name
$ServerInfo::Password
$ServerInfo::Ping
$ServerInfo::PlayerCount
$ServerInfo::State
$ServerInfo::Status
$ServerInfo::Version
Info returned from a server query.

$Sim::Time
Value from free-running milliseconds timer.

$SwapIntervalSupported

$T2::FogRejections

$T2::dynamicTextureCount

$T2::fullMipCount

$T2::levelZeroCount

$T2::renderOutline

$T2::staticTSU

$T2::staticTextureCount

$T2::textureSpaceUsed

$T2::unusedTextureCount

$TSControl::frameCount

$TextureCompressionSupported

$ThisControl

$TypeMasks::CameraObjectType
$TypeMasks::CorpseObjectType
$TypeMasks::DamagableItemObjectType
$TypeMasks::DebrisObjectType
$TypeMasks::EnvironmentObjectType
$TypeMasks::ExplosionObjectType
$TypeMasks::ForceFieldObjectType
$TypeMasks::GameBaseObjectType
$TypeMasks::GoalObjectType
$TypeMasks::GuiControlObjectType
$TypeMasks::InteriorObjectType
$TypeMasks::ItemObjectType
$TypeMasks::MarkerObjectType
$TypeMasks::PhysicalZoneObjectType
$TypeMasks::PlayerObjectType
$TypeMasks::ProjectileObjectType
$TypeMasks::ShapeBaseObjectType
$TypeMasks::StaticObjectType
$TypeMasks::StaticRenderedObjectType
$TypeMasks::StaticShapeObjectType
$TypeMasks::StaticTSObjectType
$TypeMasks::TerrainObjectType
$TypeMasks::TriggerObjectType
$TypeMasks::VehicleBlockerObjectType
$TypeMasks::VehicleObjectType
$TypeMasks::WaterObjectType
Values used in the bitflags returned by obj.getType().

$Video::numTexelsLoaded

$Video::texResidentPercentage

$Video::textureCacheMisses

$cameraFov

$dbgResult

$enableDirectInput, win32 only

$farDistance

$firstPerson

$fps::real

$fps::realTotal

$fps::virtual

$fps::virtualTotal

$frameSkip

$instantGroup
The group that game objects will be added to when created, unless they are created inside the creation statement of some SimGroup or SimSet.

$maxTerrPoints

$movementSpeed

$mvBackwardAction

$mvDownAction

$mvForwardAction

$mvFreeLook

$mvLeftAction

$mvMouseRoll

$mvPitch

$mvPitchDownSpeed

$mvPitchUpSpeed

$mvRightAction

$mvRoll

$mvRollLeftSpeed

$mvRollRightSpeed

$mvTriggerCount array, indices 0 through MaxTriggerKeys-1

$mvUpAction

$mvYaw

$mvYawLeftSpeed

$mvYawRightSpeed

$onSetWatch

$only

$platform

$platformUnixType, unix only

$screenSize

$showAutoDetail

$showBackwardAction

$showDownAction

$showForwardAction

$showLeftAction

$showMovementSpeed

$showPitch

$showRightAction

$showTransition

$showTransitionDuration

$showTransitionSynched

$showTransitionTargetPlay

$showUpAction

$showYaw

$specialFog

$terrainTestBmp

$timeAdvance

$timeScale
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐