Page 1 of 1
groundflash visible without LOS
Posted: 28 Dec 2007, 15:24
by TradeMark
yeah, i need that, could someone put in the code if(groundflash["alwaysvisible"] == 1) show_particle = true;
thanks
Re: groundflash visible without LOS
Posted: 28 Dec 2007, 19:41
by Peet
Unfortunately people generally only commit things that will compile.
Re: groundflash visible without LOS
Posted: 29 Dec 2007, 00:40
by TradeMark
what
no that code doesnt work, just example how it probably should be done, lol.
i dont know where is the file which defines which effect is visible and which not
if you know where it is, can you put that option, so we can see groundflash without LOS also?
Re: groundflash visible without LOS
Posted: 29 Dec 2007, 01:10
by Caydr
This is how it worked in OTA, I'm still undecided on whether it was a good thing or not. Do you mean something defined in modinfo, or on a per-weapon basis?
I think we can currently define weapons as being always visible, can we not? I thought I saw that in a changelog. Anyway it's a start.
What would be really great is if we could set buildings as being always visible, then we could have some RA2-ish superweapons.
Re: groundflash visible without LOS
Posted: 29 Dec 2007, 10:54
by TradeMark
i dont care what OTA was, i just need groundflash alwaysvisible tag in it...
Re: groundflash visible without LOS
Posted: 29 Dec 2007, 13:06
by tombom
Caydr wrote:What would be really great is if we could set buildings as being always visible, then we could have some RA2-ish superweapons.
It's possible to set units as alwaysvisible with Lua.
Re: groundflash visible without LOS
Posted: 29 Dec 2007, 17:38
by KDR_11k
AlwaysVisible is a property of WorldObject BTW, I think that variable works for anything, provided it's set. I'm not sure if the groundflash is a real object tho.
Re: groundflash visible without LOS
Posted: 29 Dec 2007, 18:01
by TradeMark
it doesnt work for groundflash, can you make it work for it pls
Re: groundflash visible without LOS
Posted: 30 Dec 2007, 13:53
by rattle
I think KDR was referring to an internal attribute.
Re: groundflash visible without LOS
Posted: 02 Jan 2008, 23:11
by Pxtl
At the very least, shouldn't the groundflash inherit "alwaysvisible" from the object that spawned it? After all, if I can see the object or the explosion, I should damned well see the groundflash, shouldn't I?
However, I could see a modder wanting the groundflashes to be visible when nothing else is, but can't imagine the reverse case.
Re: groundflash visible without LOS
Posted: 03 Jan 2008, 00:01
by TradeMark
yeah i want groundflash visible when my explosion is alwaysvisible too... could someone say which file has that check, and i will change the code for us all...
Re: groundflash visible without LOS
Posted: 03 Jan 2008, 10:29
by KDR_11k
Pxtl wrote:At the very least, shouldn't the groundflash inherit "alwaysvisible" from the object that spawned it? After all, if I can see the object or the explosion, I should damned well see the groundflash, shouldn't I?
However, I could see a modder wanting the groundflashes to be visible when nothing else is, but can't imagine the reverse case.
CEGs don't have such attributes, only the particles they spawn can get it.
Re: groundflash visible without LOS
Posted: 09 Feb 2008, 15:01
by TradeMark
So are we going to get this feature in Spring at all?