time freeze weapon

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
deadpool917

time freeze weapon

Post by deadpool917 »

so
i want to make a weapon that freezes time and i have this as an example.. http://www.youtube.com/watch?v=YYwofZQNZLU

but how do i go about making this? i know how to make a basic weapon and at all, but not something for freezing time
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: time freeze weapon

Post by wildweasel »

Well, you could make a weapon freeze time by creating a new TimeFreeze powerup that is activated upon it entering the player's inventory, and have your weapon give that item to the player in its fire state.

I can't watch your video at the moment though, so I have no idea if that's what you want.
Okgo5555
Posts: 80
Joined: Thu Mar 23, 2017 11:18 am

Re: time freeze weapon

Post by Okgo5555 »

Weasel, I want to do the same thing but as a grenade. Soul I put the give inventory into the grenade's death state inatead?
User avatar
Fused
Posts: 72
Joined: Wed Jul 02, 2014 2:44 pm
Contact:

Re: time freeze weapon

Post by Fused »

Do that with a_radiusgive
Okgo5555
Posts: 80
Joined: Thu Mar 23, 2017 11:18 am

Re: time freeze weapon

Post by Okgo5555 »

I got it to work using powerup givers
User avatar
DenTheUA
Posts: 41
Joined: Fri Jun 09, 2017 4:06 am
Location: Land of salo, gorilka and borsch (a.k.a. Ukraine)

Re: time freeze weapon

Post by DenTheUA »

Speaking of PowerupGiver, I've came up with this

Code: Select all

ACTOR timefreeze: PowerupGiver
{
	spawnid 656
	inventory.pickupMessage "You've managed to freeze the time. Congrats!"
	inventory.maxamount 0
	Powerup.Color InverseMap
	Powerup.Duration -20
	PowerUp.Type "TimeFreezer"
	+Inventory.AutoActivate
	States
	{
	Spawn:
		TLPP A -1
		Stop
	}
}

ACTOR BendTime: Weapon
{
		Weapon.SelectionOrder 120
		Weapon.AmmoGive 100
		Weapon.AmmoUse 1
		Weapon.AmmoType "Clip"
		Inventory.PickupMessage "Stop the Time!"
		Inventory.PickupSound none
		+Weapon.NoAlert
		Weapon.Bobstyle Smooth
		Weapon.Bobspeed 0.1
		Weapon.SlotNumber 3
		States
		{
		Spawn:
			TLPP A -1
			Stop
		Ready:
			TLPT A 1 A_WeaponReady
			loop
		Deselect:
			TLPT A 1 A_Lower
			loop
		Select:
			TLPT A 1 A_Raise
			loop
		Fire:
			TLPT A 3
			TLPT B 3 A_GiveInventory("timefreeze", 1)
			TLPT C 3
			TLPT D 3
			TLPT E 3
			Goto Ready
		}
}
User avatar
Exosphere
Posts: 168
Joined: Sun Jun 11, 2017 11:42 am
Location: New England, US

Re: time freeze weapon

Post by Exosphere »

There is actually a weapon in Russian Overkill that does stop time. Its in Yuri's arsenal and it is called the "Comrade". The time stop ability is its alternate fire. Maybe that can give you an idea how the time free effect is done.
Locked

Return to “Editing (Archive)”