Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
Hitscanning_scumbag

freeze/stop/suspend everything

Question

hey all. sorry if this has been asked before, but i cant find a lot of info on it.

working on a new inventory system, what i want to do (chronologically)

-freeze everything <---where im stuck

-display image

-load inventory at certain places on screen so that it appears as if it's in a grid

-when done, remove picture and unfreeze monsters

 

ive gotten a fair amount done but where im stuck is the freeze event.

i need something to stop/freeze/suspend all monsters& the player if possible..i have a script which freezes the player but unless your using god mode you're just bait at that point.

so what i need is a solution be it ACS, Zscript, decorate, or some other form of trickery to get this working...

(what do i mean by "some other form of trickery?")

-god mode for player (inelegant but it will work)

-silent warp to a unpopulated part of the map (clumsy, not guaranteed to work on a lot of mods)

-time stop

 

i cant seem to find even the smallest info on most of this, can anyone help me out?

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 0

Literally the console command "freeze". (zdoom)

 

EDIT: Looks like you can't just execute console commands from doom mods. I'm lookin.

Share this post


Link to post
  • 0

Looked into a DIO mod. This is the jist of what I found, but I'm not very experienced in doom modding:

 

1. Define a powerup giver like this one.
2. Give the player's inventory the powerup giver for your freeze event.

3. Once you're done with the freeze event, remove the powerup giver AND Powertimefreezer from the player's inventory.

 

There's a bit here that I don't exactly understand, so I'm making my own doom wad & adding comments to see if this actually works. 

Share this post


Link to post
  • 0

OK! Followed the instructions and made a test wad which you can download here: weirdtimestop.zip

Features include no ACS in the test wad! Woohoo!

 

Type in the console "give TimeFreezyPistol" to give yourself the weapon. Yeah, I'm lazy.

 

The weapon's primary fire gives you FreezeEvent, a powerup giver that freezes actors without a certain flag. FreezeEvent lasts 5 seconds before it starts "thawing" actors. I think the thawing looks quite nice, but I think there's a way to remove the thawing effect on actors. 

The weapon's alt-fire removes FreezeEvent from your inventory.

 

Here's the DECORATE code:

ACTOR FreezeEvent : PowerupGiver
{
	Inventory.MaxAmount 0
	Powerup.Type TimeFreezer // this is the real meat of FreezeEvent. it does the thing
	Powerup.Duration -5 // lasts 5 seconds, then thaws actors
	+AUTOACTIVATE
}

ACTOR TimeFreezyPistol : Pistol REPLACES Pistol
{
	States
	{
	Fire:
	PISG A 4 A_GiveInventory("FreezeEvent")
	PISG B 6 
	PISG C 4
	PISG B 5
	Goto Ready
	AltFire:	
	PISG A 4 A_TakeInventory("FreezeEvent") // manually takes the FreezeEvent just in case B)
	PISG B 6
	PISG C 4
	PISG B 5
	Goto Ready
	}
}

// lets see if this works...

 

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×