aGorm
(What, me, units in game, no, never...

Moderator: Moderators
Code: Select all
[customParams]{
normaltex=unittextures/Core_normal.tga;
normalmaps=yes;
}
Code: Select all
local function DrawUnit(unitID, material)
glUniform(material.frameLoc, maximum(0,sine(modulo(unitID,10)+GetGameFrame()/(modulo(unitID,7)+6))))
health,maxhealth=GetUnitHealth(unitID)
glUniform(material.healthLoc, 2*maximum(0, (-2*health)/(maxhealth)+1) )--inverse of health, 0 if health is 100%-50%, goes to 1 by 0 health
Code: Select all
local unitName = "cyberlord"
local unitDef = {
name = "Cybernaut Lord",
Description = "Elite Ground Unit",
objectName = "cyberlord.s3o",
script = "cyberlord.lua",
buildPic = "placeholder.png",
--cost
buildCostMetal = 100,
buildCostEnergy = 100,
buildTime = 2,
--Health
maxDamage = 100,
idleAutoHeal = 0,
--Movement
Acceleration = 0.2,
MaxVelocity = 1.5,
BrakeRate = 0.3,
FootprintX = 1,
FootprintZ = 1,
MovementClass = "Default2x2",
TurnRate = 900,
sightDistance = 300,
Upright = 1,
Category = [[LAND]],
Builder = false,
CanAttack = true,
CanGuard = true,
CanMove = true,
CanPatrol = true,
CanStop = true,
LeaveTracks = false,
weapons = {
[1]={name = "Tesla",
onlyTargetCategory = [[LAND]],
},
},
[customParams]{
normaltex=unittextures/Core_normal.tga,
normalmaps=yes,
}
}
return lowerkeys({ [unitName] = unitDef })
missing "" ?normaltex=unittextures/Core_normal.tga,
Code: Select all
customParams = {
normaltex = [[unittextures/Core_normal.tga]],
normalmaps=[[yes]],
},
Code: Select all
LogOutput initialized.
Spring 0.82.7.1 (0.82.7.1)
Build date/time: Jan 8 2011 00:17:26
Available log subsystems: CollisionVolume, unit, ArchiveScanner, VFS-detail, VFS, Sound
Enabled log subsystems: Sound
Enable or disable log subsystems using the LogSubsystems configuration key
or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
Use "none" to disable the default log subsystems.
using default configuration source "C:\3D Work\Cyber_vs_Bears\Spring\spring-0.82.7.1\/springsettings.cfg"
[CMyMath::Init] CPU SSE mask: 127, flags:
SSE 1.0: 1, SSE 2.0: 1
SSE 3.0: 1, SSSE 3.0: 1
SSE 4.1: 1, SSE 4.2: 1
SSE 4.0A: 0, SSE 5.0A: 0
using streflop SSE FP-math mode, CPU supports SSE instructions
OS: Microsoft Windows
Microsoft Windows 7 Business Edition, 64-bit (build 7600)
Intel(R) Core(TM) i7 CPU 870 @ 2.93GHz; 8151MB RAM, 16300MB pagefile
OS: emulated 32bit mode
Using read-write data directory: C:\3D Work\Cyber_vs_Bears\Spring\spring-0.82.7.1\
Scanning: C:\3D Work\Cyber_vs_Bears\Spring\spring-0.82.7.1\maps
Scanning: C:\3D Work\Cyber_vs_Bears\Spring\spring-0.82.7.1\base
Scanning: C:\3D Work\Cyber_vs_Bears\Spring\spring-0.82.7.1\games
Scanning: C:\3D Work\Cyber_vs_Bears\Spring\spring-0.82.7.1\mods
Supported Video modes: 1920x1080, 1680x1050, 1360x768, 1280x1024, 1280x960, 1280x800, 1280x768, 1280x720, 1152x864, 1024x768, 800x600, 720x576, 720x480, 640x480, 640x350
Video mode set to 1440x900/32bit (windowed)
[f=0000000] SDL: 1.2.10
[f=0000000] GL: 3.2.0
[f=0000000] GL: NVIDIA Corporation
[f=0000000] GL: GeForce 310/PCI/SSE2
[f=0000000] GLSL: 1.50 NVIDIA via Cg compiler
[f=0000000] GLEW: 1.5.4
[f=0000000] Joysticks found: 0
[f=0000000] Joystick 0 not found
[f=0000000] Connecting to local server
[f=0000000] Starting GameServer: 7 ms
[f=0000000] Starting demo recording
[f=0000000] Using map Mescaline_V2
[f=0000000] Recording demo demos/20110616_131645_Mescaline_V2_0.82.7.sdf
[f=0000000] Using mod MegaBears VS Cybernauts r1
[f=0000000] [Sound] OpenAL info:
[f=0000000] [Sound] Vendor: OpenAL Community
[f=0000000] [Sound] Version: 1.1 ALSOFT 1.11.753
[f=0000000] [Sound] Renderer: OpenAL Soft
[f=0000000] [Sound] AL Extensions: AL_EXTX_buffer_sub_data AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_OFFSET AL_EXTX_sample_buffer_object AL_EXT_source_distance_model AL_LOKI_quadriphonic
[f=0000000] [Sound] ALC Extensions: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_disconnect ALC_EXT_EFX ALC_EXTX_thread_local_context
[f=0000000] [Sound] ALC_EXT_EFX found (required for air absorption): yes
[f=0000000] [Sound] Device: DirectSound Software
[f=0000000] [Sound] Available Devices:
[f=0000000] [Sound] DirectSound Software
[f=0000000] [Sound] air absorption enabled: 0.1
[f=0000000] Using mod archive meagbears.sdd
[f=0000000] Loading client data: 64 ms
[f=0000000] User number 0 (team 0, allyteam 0)
[f=0000000] [Sound] parsed 3 sounds from gamedata/sounds.lua
[f=0000000] [Sound] Unable to open audio file: sounds/incoming_chat.wav
[f=0000000] Loading sounds: 0 ms
[f=0000000] [Sound] Unable to open audio file: sounds/multiselect.wav
[f=0000000] Camera and mouse: 94 ms
[f=0000000] Parsing unit icons
[f=0000000] Loading GameData Definitions
[f=0000000] WARNING: removed the "cyberfac" entry from the "buildervehicle" build menu
[f=0000000] Loading all definitions: 0.010000
[f=0000000] Loading GameData Definitions: 11 ms
[f=0000000] Parsing Map Information
[f=0000000] Loading SMF
[f=0000000] Loading Map
[f=0000000] Calculating smooth height mesh
[f=0000000] Calculating smooth mesh: 134 ms
[f=0000000] Number of damage types: 2
[f=0000000] Creating unit textures
[f=0000000] Loading weapon definitions
[f=0000000] Loading unit definitions
[f=0000000] Loading feature definitions
[f=0000000] Initializing map features
[f=0000000] Unknown map feature type pedro7
[f=0000000] Reading Estimate PathCosts [8]
[f=0000000] Reading Estimate PathCosts [32]
[f=0000000] [CPathManager] pathing data checksum: 429b565b
[f=0000000] You are missing the "ARB_shadow_ambient" extension (this will probably make shadows darker than they should be)
[f=0000000] Loading .smt tile-file "maps/Mescaline_V2.smt"
[f=0000000] Loading 61429 tiles from file 1/1
[f=0000000] Reading tiles
[f=0000000] Reading tile map
[f=0000000] generating MipMaps: 7 ms
[f=0000000] Generating 3D trees
[f=0000000] [Sound] Unable to open audio file: sounds/mappoint.wav
[f=0000000] Creating Projectile Textures
[f=0000000] Creating sky
[f=0000000] Loading console: 0 ms
[f=0000000] [Sound] Unable to open audio file: FailedCommand
[f=0000000] [Sound] CSound::GetSoundId: could not find sound: FailedCommand
[f=0000000] Loading LuaRules
[f=0000000] Loading gadget: Lua unit script framework <unit_script.lua>
[f=0000000] Loading unit script: scripts/attackvehicledoublebarrel.lua
[f=0000000] Loading unit script: scripts/attackvehiclemultimissile.lua
[f=0000000] Loading unit script: scripts/simpleattackvehicle.lua
[f=0000000] Loading unit script: scripts/buildervehicle.lua
[f=0000000] Loading unit script: scripts/empty.lua
[f=0000000] Loading unit script: scripts/cyberlord.lua
[f=0000000] Loading unit script: scripts/helicopter.lua
[f=0000000] Loading unit script: scripts/hovereffects.lua
[f=0000000] Loading unit script: scripts/hoverweapon.lua
[f=0000000] Loading unit script: scripts/cyberfac.lua
[f=0000000] Loading unit script: scripts/simplehover.lua
[f=0000000] Loaded gadget: Lua unit script framework <unit_script.lua>
[f=0000000] Loaded gadget: Spawn <game_spawn.lua>
[f=0000000] Loaded gadget: CustomUnitShaders <gfx_customunitshaders.lua>
[f=0000000] Loading LuaGaia
[f=0000000] Loading LuaUI
[f=0000000] Using LUAUI_DIRNAME = LuaUI/
[f=0000000] Reloaded ctrlpanel with: LuaUI/ctrlpanel.txt
[f=0000000] LuaUI: bound F11 to the widget selector
[f=0000000] LuaUI: bound CTRL+F11 to tweak mode
[f=0000000] Loading widget from mod: Spring Tanks | HealthBars <unit_healthbars.lua> ...
[f=0000000] Loading widget from user: Mouse Buildspacing <gui_buildspacing.lua> ...
[f=0000000] LuaUI v0.3
[f=0000000] Finalizing...
[f=0000000] Connection attempt from UnnamedPlayer
[f=0000000] -> Version: 0.82.7.1 (0.82.7.1)
[f=0000000] -> Connection established (given id 0)
[f=0000000] Player UnnamedPlayer finished loading and is now ingame
[f=0000000] GameID: 3af4f94dfe46126ffa65624e1cdf4421
[f=0000000] UnnamedPlayer added point: Start 0
[f=0001815] Path cache hits 0 0%
[f=0001815] Path cache hits 0 0%
[f=0001815] Statistics for local connection:
Received: 3273 bytes
Sent: 17373 bytes