Hallucination scripting?

Archive of the old editing forum
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.
Locked
cee41
Posts: 15
Joined: Wed Dec 01, 2010 9:04 pm

Hallucination scripting?

Post by cee41 »

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? :D
User avatar
Enjay
 
 
Posts: 27140
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Hallucination scripting?

Post by Enjay »

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.
cee41
Posts: 15
Joined: Wed Dec 01, 2010 9:04 pm

Re: Hallucination scripting?

Post by cee41 »

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?
User avatar
Enjay
 
 
Posts: 27140
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Hallucination scripting?

Post by Enjay »

Something like this?
trippy.zip
Script source and decorate are inside the WAD.
Map is ZDoomHexen format for Doom2.
User avatar
Nash
 
 
Posts: 17501
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Hallucination scripting?

Post by Nash »

HOLY CRAP Enjay that is AWESOME!

(Also loved how you timed the noises to the downbeats of the song! GENIUS)
User avatar
Enjay
 
 
Posts: 27140
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Hallucination scripting?

Post by Enjay »

Nash wrote:GENIUS
LUCK! ;)
User avatar
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?

Post by Matt »

GENIUS

Obtained:
+ 1 internet
+ 1 "actual lol" point
+ 1 nomination for 2013 Cacoward if I could still remember by then
cee41
Posts: 15
Joined: Wed Dec 01, 2010 9:04 pm

Re: Hallucination scripting?

Post by cee41 »

YES! Something like that! Thank you, Enjay! Um, instead of SetSectorColor, is it possible to display a translucent, warping image?
cee41
Posts: 15
Joined: Wed Dec 01, 2010 9:04 pm

Re: Hallucination scripting?

Post by cee41 »

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???
User avatar
insightguy
Posts: 1730
Joined: Tue Mar 22, 2011 11:54 pm

Re: Hallucination scripting?

Post by insightguy »

cee41 wrote: XWE
Slade 3 is the way to go my friend
cee41
Posts: 15
Joined: Wed Dec 01, 2010 9:04 pm

Re: Hallucination scripting?

Post by cee41 »

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?
User avatar
Amuscaria
Posts: 6634
Joined: Mon Jul 26, 2004 12:59 pm
Location: Growing from mycelium near you.

Re: Hallucination scripting?

Post by Amuscaria »

The Rave spreads....gooood....gooood.
User avatar
MG_Man
Posts: 1401
Joined: Sat Jul 28, 2007 1:24 pm
Contact:

Re: Hallucination scripting?

Post by MG_Man »

Wasn't there some trick someone did earlier involving transparent camera textures and HOM to emulate motion blur? That would probably help too.
cee41
Posts: 15
Joined: Wed Dec 01, 2010 9:04 pm

Re: Hallucination scripting?

Post by cee41 »

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.
Exactly! That's the kind of effect I was looking for.
Locked

Return to “Editing (Archive)”