[Request][Scripting] Option to disable auto-resurrection GFX and SFX.

2 replies [Last post]
UltiMaxKom
UltiMaxKom's picture
User offline. Last seen 4 years 10 weeks ago. Offline
Joined: 2016-06-26
Posts: 381
[color=white][b][1][/b][/color] Add a Global variable to enable or disable the visual effect when a hog is automatically "Resurrected" via the [i]"SetEffect(hog, heResurrectable, 1)".[/i] Enabled by default. [color=white][b][2][/b][/color] Add a Global variable to enable or disable the sound effect when a hog is automatically "Resurrected" via the [i]"SetEffect(hog, heResurrectable, 1)".[/i] Enabled by default. [hr] [color=white][b]Reason:[/b][/color] More customizability, and because why not. [color=white][b]Difficulty:[/b][/color] I'm really sure it's really easy and simple, not even a single hassle for our devs. [color=white][b]Reward:[/b][/color] A bouquet of appreciation, a hug, and a smile image. Three in one. An absolute must-have gift. [hr] Thank you in advance!
[center][color=#FFFFFF]╟───NW──────┼──────N╢[/color][/center] [float=left][color=#FFFFFF]╓──────────────────╖[/color][/float][float=right] [color=#FFFFFF]╓──────────────────╖[/color][/float] [float=left][color=#FFFF00]⠀HP:[/color] [color=#FF0000]██████████[/color] [color=#00FF00]1E9/1E9[/color][/float][float=right][color=#00FF00]1E9/1E9[/color] [color=#0000FF]██████████[/color] [color=#00FFFF]:MP [/color][/float] [float=left][color=#FFFFFF]╙──────────────────╜[/color][/float][float=right] [color=#FFFFFF]╙──────────────────╜[/color][/float]
Wuzzy
Wuzzy's picture
User offline. Last seen 3 days 14 hours ago. Offline
Joined: 2012-06-20
Posts: 1301
Rejected. You can get rid of the visual effect (explosion sprite) by defining a function for the [code]onGearResurrect[/code] callback. See [kb]LuaEvents[/kb]. This function gives you the ID of the visual gear that a [code]heResurrectable[/code] resurrection creates. You can delete this visual gear by calling [code]DeleteVisualGear[/code] on it. If you do this, there is no visual effect anymore. Example: [code] function onGearResurrect(gear, vgear) DeleteVisualGear(vgear) end [/code] This does not get rid of the sound effect, however. But I don't see why getting rid of the sound effect is so important to you. What's the use case?
Hi, I am a Hedgewars developer. Smile
UltiMaxKom
UltiMaxKom's picture
User offline. Last seen 4 years 10 weeks ago. Offline
Joined: 2016-06-26
Posts: 381
[quote=Wuzzy]This function gives you the ID of the visual gear that a heResurrectable resurrection creates. You can delete this visual gear by calling DeleteVisualGear on it. If you do this, there is no visual effect anymore. Example: ...[/quote] This is new. It doesn't give the VGear id the last time I remembered, which is long ago. Well, I fact-checked and yes, my scripts don't have any of that. [color=white]So this is definitely right to be rejected.[/color] [quote=Wuzzy]This does not get rid of the sound effect, however. But I don't see why getting rid of the sound effect is so important to you. What's the use case?[/quote] Try to imagine if I want to hide the hog away after it "died", with a delay and relocation mechanic because I don't want the hog got killed multiple times in a short window, aka killed again right after respawned, cuz das suck. Now imagine if there's still a sound of it respawned but there's no hog visible. It doesn't sound or looks right, so that's why I need to get rid of the sound. [color=yellow][+][/color] GFX or SFX that is set in stone which is non-customizable would be limiting, and that's bad for modding, which is what I am currently doing, chillin' in Wyoming, all for scripting- Ok, that's enough rhyming. ⠀⠀⠀Let's say it's for a little more customizability in the principle of good modding, or something... This, in case if you need more reason. [hr] Okay, thanks for answering. Now I'll wait for the next response. ⠀ ⠀ ⠀ [color=white][b][E.1][/b][/color] Food coloring.
[center][color=#FFFFFF]╟───NW──────┼──────N╢[/color][/center] [float=left][color=#FFFFFF]╓──────────────────╖[/color][/float][float=right] [color=#FFFFFF]╓──────────────────╖[/color][/float] [float=left][color=#FFFF00]⠀HP:[/color] [color=#FF0000]██████████[/color] [color=#00FF00]1E9/1E9[/color][/float][float=right][color=#00FF00]1E9/1E9[/color] [color=#0000FF]██████████[/color] [color=#00FFFF]:MP [/color][/float] [float=left][color=#FFFFFF]╙──────────────────╜[/color][/float][float=right] [color=#FFFFFF]╙──────────────────╜[/color][/float]
Copyright © 2004-2023 Hedgewars Project. All rights reserved. [ contact ]