[Help] Low health fade/blood splatter effect
- BadMojo
-
- Wicked
-
- Posts: 224
Please Log in or Create an account to join the conversation.
- Blue Shadow
-
- Administrator
-
- Posts: 1129
The ACS code is imbedded in MAP01, which means it'll only work in that map. The solution is to have the code in a library .CaptainManiac wrote: I tested it on Zandronum 3 alpha and the nice bloodsplatter script is found and run only on map01,in map12 it gives this error.
@BadMojo: The WAD does work in Zandronum 3.0 alpha (at least in the build that I have).
Please Log in or Create an account to join the conversation.
- BadMojo
-
- Wicked
-
- Posts: 224
On the note of having the code in a library, is there any chance of an example wad?
Please Log in or Create an account to join the conversation.
- Blue Shadow
-
- Administrator
-
- Posts: 1129
https://www.dropbox.com/s/57mj0vfuexlfnpz/acslib_demo.wad?dl=1BadMojo wrote: On the note of having the code in a library, is there any chance of an example wad?
Please Log in or Create an account to join the conversation.
- CaptainManiac
-
Topic Author
- Cacodemon
-
- Posts: 103
Please Log in or Create an account to join the conversation.
- BadMojo
-
- Wicked
-
- Posts: 224

Edit: also, Im not sure if this is the latest version of zandronum (2.1.2).. but it was the one of the front page, I wasnt gonna go any deeper than that. But this is the error message I get when trying to run this through that
Execution could not continue.
Script error, "BLOODSPLAT.zip:bloodsplat.wad:DECORATE" line 53:
Invalid state parameter acs_namedexecute
I know you said something about having version 3.0 and it working on that, so maybe Ive just downloaded an outdated version.
@ CaptainManiac
Did your code even compile? I couldnt get "bool enabled = GetCVar("fd_enable");" to compile, so I removed it and just typed it out where necessary, heres what I have come up with in my version, also including the library thing that Blue Shadow was talking about: https://www.dropbox.com/s/267l6avk62rh08e/BLOODSPLAT.zip?dl=0
Ive defaulted fd_enable to TRUE, so that it works straight out of the box, but if you type the command in the console "fd_enable 0" it will disable it and visa versa.
Ive also replaced that while loop with an if statement, the script already loops as it is, so it doesnt hurt to do that.
Also, take note of my intensity values, Ive lowered them to half of what they were, MagicWazard is right about it being too much.
EDIT 2:
Ok so Ive just realized version 3.0 of zandronum is a devbuild, so that makes sense why our version isnt working... @CaptainManiac, If you want it to work in zandronum Id probably suggest downloading that build... Otherwise, imho id just go with gzdoom if this isnt for multiplayer purposes.
Please Log in or Create an account to join the conversation.
- CaptainManiac
-
Topic Author
- Cacodemon
-
- Posts: 103
PS:Sorry for changing your code
Please Log in or Create an account to join the conversation.
- BadMojo
-
- Wicked
-
- Posts: 224

Yea I think I have a doomworld account, but you can submit it here in the sfx shoppe under the other category as a modders resource if you want, but its up to you. you could do both really.
But as for it being ready... I think it could do with some more work to be honest, some better graphics would be good.. But Ill need some time to do them (if you wanted something original). Id also suggest getting some feedback from it first too before anything major.
As for feedback from me, something has to be done about the blood splats not utilizing the whole screen, as it stands it only uses a small portion of the screen.. Ive experimented with that a little bit with no prevail, but Im sure I could get it right after some tweaking. Perhaps create a submission for it here and see what other sort of feedback you get.. Im not sure how doomworld handles it, But its entirely up to you as to whether or not you think its ready.
Edit: Huh, I just looked at the thread you started about this on the doomworld forums, looks like someone has come up with an even more simplified version than mine... After looking at that, Im sure we could do better on the current version (or at least the last version you had posted here).. Theres alot of improvements to be done I think after seeing that.
Please Log in or Create an account to join the conversation.
- CaptainManiac
-
Topic Author
- Cacodemon
-
- Posts: 103
I do not think the blood images make problems with the player and are good,so no more are needed(In The Saboteur this fading was combined with regeneartion system(which i do not want to implement now) and the effect itself was made with a whole OpenGl/DirectX Shader)).As i tested it on Classic Doom it spawns on the whole screen,except the statusbar,i think i can fix this by adding HUDMSG_LAYER_OVERHUD flag,but i am not sure the statusbar will be shown if there are many bloodsplat images.I will publish it,crediting all who helped me,including you.
Please Log in or Create an account to join the conversation.