Request: Widget that replaces smoke with flames?

Request: Widget that replaces smoke with flames?

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Aether_0001
Posts: 228
Joined: 25 Feb 2008, 03:41

Request: Widget that replaces smoke with flames?

Post by Aether_0001 »

I dunno if this sounds like a spam post, but I want a widget that replaces the image of smoke emanating from wrecks with images of fire. Basically I want flaming wrecks. Please. :D
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Request: Widget that replaces smoke with flames?

Post by knorke »

didnt that come up before or something?
do you want this for your own mod or do you want a widget that gives you flames instead of smoke in ie BA?
because that is not possible. Well, it would be possible to very complicated draw your own flames or w/e but you can not spawn particle effects (like flames) in unsynced widgets. And you cant just replace the smoke texture because the Spring would notice that the mod was changed and then you could not play multiplayer.

edit
thinking of it..i think in ca you could turn on/off units on fire...but i dont remember if that was just a glow effect of the burning unit or actual flames. if it was real flames it might have been lups which might be unsync (i have no idea)
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Request: Widget that replaces smoke with flames?

Post by CarRepairer »

knorke wrote:edit
thinking of it..i think in ca you could turn on/off units on fire...but i dont remember if that was just a glow effect of the burning unit or actual flames. if it was real flames it might have been lups which might be unsync (i have no idea)
Lups can be set up in unsynced, like drawing units on fire. The issue is that sometimes synced gadgets need to communicate to the widgets when to draw something, such as telling luaui that the unit is on fire. Also sometimes gadgets are needed to turn off particles, like replacing engine nano with lups nano.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Request: Widget that replaces smoke with flames?

Post by knorke »

sometimes synced gadgets need to communicate to the widgets when to draw something, such as telling luaui that the unit is on fire.
i think that would be no problem in that case as luaui can just read unit health on its own and show flames if health < 25% etc.
ofc luaui can only "see" units that player has los on but that is ok in this case. And then there are some units with HideDamge=true but i think those are rare.
tl;dr
find someone who knows lups.
Post Reply

Return to “Lua Scripts”