Page 1 of 1
disable 'fog of war' and/or 'line of sight'
Posted: 04 Dec 2007, 17:01
by cdquiksilver
Hello All,
I am a long-time TA fan and have just found spring, it looks amazing, great work to all involved!
I enjoy playing LAN games 'skirmish' co-op games on LAN in TA.
we like playing in a 'sandbox' environment holding off waves of AI with base defence. we play with no fog of war and able to see other enemy units.
I can't seem to find the option to set up spring like I used to play TA
can anyone help me locate these options?
many thanks
Posted: 04 Dec 2007, 19:02
by KDR_11k
These options don't exist but I have a LuaRule that makes all units always visible if the mod includes it.
Posted: 04 Dec 2007, 19:32
by ZellSF
KDR_11k wrote:These options don't exist but I have a LuaRule that makes all units always visible if the mod includes it.
Does defences fire at their max range though, or do they wait until the unit comes into "real" los?
Posted: 04 Dec 2007, 19:57
by Pxtl
KDR_11k wrote:These options don't exist but I have a LuaRule that makes all units always visible if the mod includes it.
Also, does that include projectiles/explosions/wreckage/etc, or just units?
Posted: 04 Dec 2007, 20:02
by TradeMark
I suggested this feature like 2 years ago and nothing happened... so forget it.
Posted: 04 Dec 2007, 20:05
by 1v0ry_k1ng
this would be useful for balancing mods too
Posted: 04 Dec 2007, 20:13
by cdquiksilver
Hello All,
thanks for the replies,
KDR_11k - would it be possible to share this LUA? also some info to help 'add' it to a mod if thats possible?
I am quite adapt at modding other games and creating content, but I am very new to spring.
Posted: 04 Dec 2007, 22:24
by KDR_11k
Pxtl wrote:KDR_11k wrote:These options don't exist but I have a LuaRule that makes all units always visible if the mod includes it.
Also, does that include projectiles/explosions/wreckage/etc, or just units?
Only units ATM, wreckages may be possible but to make explosions and projectiles LOS-free, you need to add alwaysVisible to all of them and for weapons that only works with SVN.
The code is really simple:
Code: Select all
function gadget:GetInfo()
return {
name = "noLOS",
desc = "Disables LOS",
author = "KDR_11k (David Becker)",
date = "2007-11-18",
license = "Do what you feel like",
layer = 1,
enabled = true
}
end
if (gadgetHandler:IsSyncedCode()) then
--SYNCED
function gadget:UnitCreated(u, ud, team)
Spring.SetUnitAlwaysVisible(u,true)
end
end
Posted: 07 Dec 2007, 10:30
by Complicated
If it is your AI, press B and you can tract unit movements.
Posted: 07 Dec 2007, 11:00
by KDR_11k
Just noticed there was another question. Yes, units will shoot at alwaysVisible units with full accuracy. Fibre has zero LOS and everything still works nicely.
Re: disable 'fog of war' and/or 'line of sight'
Posted: 28 Dec 2007, 14:47
by GrOuNd_ZeRo
A cheap hack would be a cloaked flying unit that flies at very high altitude and has a huge LOS

Re: disable 'fog of war' and/or 'line of sight'
Posted: 28 Dec 2007, 15:20
by TradeMark
GrOuNd_ZeRo wrote:A cheap hack would be a cloaked flying unit that flies at very high altitude and has a huge LOS

doesnt work, the range where unit can see is limited, spring bug
and i bet that doesnt work perfectly on hilly maps anyways