mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-14 20:23:47 +00:00
Added GameModeName to Scene Added function to get number of active scenes Added logic to level/client loading to enact gameplay mode logic driven by either Scene's GameModeName or project setting's default game mode Added template module.cs file for module creation and adjusted new module logic in AssetBrowser to create off template Updated FPSGameplay code to have deathmatchGame mode work with new GameMode logic Updated EmptyLevel scene to define deathMatchGame as gamemode Updated FPSGameplay module script to properly client/server initialize
123 lines
3.5 KiB
Text
123 lines
3.5 KiB
Text
//--- OBJECT WRITE BEGIN ---
|
|
new Scene(EmptyLevel) {
|
|
canSave = "1";
|
|
canSaveDynamicFields = "1";
|
|
gameModeName="DeathMatchGame";
|
|
cdTrack = "2";
|
|
CTF_scoreLimit = "5";
|
|
enabled = "1";
|
|
musicTrack = "lush";
|
|
|
|
new LevelInfo(TheLevelInfo) {
|
|
nearClip = "0.1";
|
|
visibleDistance = "1000";
|
|
visibleGhostDistance = "0";
|
|
decalBias = "0.0015";
|
|
fogColor = "0.6 0.6 0.7 1";
|
|
fogDensity = "0";
|
|
fogDensityOffset = "700";
|
|
fogAtmosphereHeight = "0";
|
|
canvasClearColor = "0 0 0 255";
|
|
ambientLightBlendPhase = "1";
|
|
ambientLightBlendCurve = "0 0 -1 -1";
|
|
advancedLightmapSupport = "0";
|
|
soundAmbience = "AudioAmbienceDefault";
|
|
soundDistanceModel = "Linear";
|
|
canSave = "1";
|
|
canSaveDynamicFields = "1";
|
|
desc0 = "A blank room ready to be populated with Torque objects. Guns, anyone?";
|
|
enabled = "1";
|
|
levelName = "Blank Room";
|
|
preview = "data/FPSGameplay/levels/EmptyLevel_preview";
|
|
};
|
|
new SkyBox(theSky) {
|
|
Material = "DesertSkyMat";
|
|
drawBottom = "0";
|
|
fogBandHeight = "0";
|
|
position = "0 0 0";
|
|
rotation = "1 0 0 0";
|
|
scale = "1 1 1";
|
|
canSave = "1";
|
|
canSaveDynamicFields = "1";
|
|
};
|
|
new Sun(theSun) {
|
|
azimuth = "230.396";
|
|
elevation = "45";
|
|
color = "0.968628 0.901961 0.901961 1";
|
|
ambient = "0.443137 0.576471 0.603922 1";
|
|
brightness = "1";
|
|
castShadows = "1";
|
|
staticRefreshFreq = "250";
|
|
dynamicRefreshFreq = "8";
|
|
coronaEnabled = "1";
|
|
coronaScale = "0.5";
|
|
coronaTint = "1 1 1 1";
|
|
coronaUseLightColor = "1";
|
|
flareScale = "1";
|
|
attenuationRatio = "0 1 1";
|
|
shadowType = "PSSM";
|
|
texSize = "1024";
|
|
overDarkFactor = "3000 1500 750 250";
|
|
shadowDistance = "200";
|
|
shadowSoftness = "0.25";
|
|
numSplits = "4";
|
|
logWeight = "0.9";
|
|
fadeStartDistance = "0";
|
|
lastSplitTerrainOnly = "0";
|
|
representedInLightmap = "0";
|
|
shadowDarkenColor = "0 0 0 -1";
|
|
includeLightmappedGeometryInShadow = "0";
|
|
position = "0 0 0";
|
|
rotation = "1 0 0 0";
|
|
scale = "1 1 1";
|
|
canSave = "1";
|
|
canSaveDynamicFields = "1";
|
|
bias = "0.1";
|
|
Blur = "1";
|
|
enabled = "1";
|
|
height = "1024";
|
|
lightBleedFactor = "0.8";
|
|
minVariance = "0";
|
|
pointShadowType = "PointShadowType_Paraboloid";
|
|
shadowBox = "-100 -100 -100 100 100 100";
|
|
splitFadeDistances = "1 1 1 1";
|
|
width = "3072";
|
|
};
|
|
new SimGroup(PlayerDropPoints) {
|
|
canSave = "1";
|
|
canSaveDynamicFields = "1";
|
|
enabled = "1";
|
|
|
|
new SpawnSphere() {
|
|
autoSpawn = "0";
|
|
spawnTransform = "0";
|
|
radius = "5";
|
|
sphereWeight = "1";
|
|
indoorWeight = "1";
|
|
outdoorWeight = "1";
|
|
isAIControlled = "0";
|
|
dataBlock = "SpawnSphereMarker";
|
|
position = "0 0 2";
|
|
rotation = "1 0 0 0";
|
|
scale = "1 1 1";
|
|
canSave = "1";
|
|
canSaveDynamicFields = "1";
|
|
enabled = "1";
|
|
homingCount = "0";
|
|
lockCount = "0";
|
|
};
|
|
};
|
|
new GroundPlane() {
|
|
squareSize = "128";
|
|
scaleU = "25";
|
|
scaleV = "25";
|
|
Material = "Grid_512_Gray";
|
|
canSave = "1";
|
|
canSaveDynamicFields = "1";
|
|
enabled = "1";
|
|
position = "0 0 0";
|
|
rotation = "1 0 0 0";
|
|
scale = "1 1 1";
|
|
};
|
|
};
|
|
//--- OBJECT WRITE END ---
|