
Hallucination scripting?
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Hallucination scripting?
I want to create a script where the player's character will occasionally get hallucinations. For example, the hallucination will display a warping image, the RadiusQuake command will start, sounds of screaming and pain will play, all that fun stuff. Also, I want to have the player's weapons temporarily disabled until the hallucination is over. I'm fairly new to DECORATE and ACS, so what commands should I use to make this possible? 

Re: Hallucination scripting?
You could temporarily freeze the player using [wiki]SetPlayerProperty[/wiki].
If you only want him to not be able to use his weapons but still be able to move, you could create a weapon that uses the WRF_DISABLESWITCH flag (and perhaps have it use the fist sprites or something). The weapon would do nothing other than have an impotent firing state sequence and prevent the player from changing away from the weapon. When the hallucination starts, give the player the weapon and change to the weapon using a script. When the hallucination is over, take the weapon away to allow the player to use his other weapons normally.
If you only want him to not be able to use his weapons but still be able to move, you could create a weapon that uses the WRF_DISABLESWITCH flag (and perhaps have it use the fist sprites or something). The weapon would do nothing other than have an impotent firing state sequence and prevent the player from changing away from the weapon. When the hallucination starts, give the player the weapon and change to the weapon using a script. When the hallucination is over, take the weapon away to allow the player to use his other weapons normally.
Re: Hallucination scripting?
That's a good idea, but I don't know how to script that? Like I said, I'm new to ACS and DECORATE. I barely know any commands, so would someone be able to help me out?
Re: Hallucination scripting?
Something like this?
Map is ZDoomHexen format for Doom2.
Script source and decorate are inside the WAD.Map is ZDoomHexen format for Doom2.
Re: Hallucination scripting?
HOLY CRAP Enjay that is AWESOME!
(Also loved how you timed the noises to the downbeats of the song! GENIUS)
(Also loved how you timed the noises to the downbeats of the song! GENIUS)
Re: Hallucination scripting?
LUCK!Nash wrote:GENIUS

- Matt
- Posts: 9696
- Joined: Sun Jan 04, 2004 5:37 pm
- Preferred Pronouns: They/Them
- Operating System Version (Optional): Debian Bullseye
- Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
- Contact:
Re: Hallucination scripting?
GENIUS
Obtained:
+ 1 internet
+ 1 "actual lol" point
+ 1 nomination for 2013 Cacoward if I could still remember by then
Obtained:
+ 1 internet
+ 1 "actual lol" point
+ 1 nomination for 2013 Cacoward if I could still remember by then
Re: Hallucination scripting?
YES! Something like that! Thank you, Enjay! Um, instead of SetSectorColor, is it possible to display a translucent, warping image?
Re: Hallucination scripting?
I put that script from trippy.wad into my WAD, but it doesn't work? I changed the sounds and music in the script. When I activate it, it reads "Unknown script." XWE isn't compiling my scripts lump into BEHAVIOR properly, it doesn't work? What do I DO???
- insightguy
- Posts: 1730
- Joined: Tue Mar 22, 2011 11:54 pm
Re: Hallucination scripting?
Slade 3 is the way to go my friendcee41 wrote: XWE
Re: Hallucination scripting?
UPDATE: I fixed my script, and it compiled properly! =D Well anyway, I have a Sector_SetColor command for my hallucination, but nothing happens. I have background music change, but no RadiusQuake or Sector_SetColor. Do I need to have a Sector Tag in the script itself? Do I need to actually assign an individual script for each hallucination? Is it possible to display a warping, translucent image in front of the player's vision?
Re: Hallucination scripting?
The Rave spreads....gooood....gooood.
Re: Hallucination scripting?
Wasn't there some trick someone did earlier involving transparent camera textures and HOM to emulate motion blur? That would probably help too.
Re: Hallucination scripting?
Exactly! That's the kind of effect I was looking for.MG_Man wrote:Wasn't there some trick someone did earlier involving transparent camera textures and HOM to emulate motion blur? That would probably help too.