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
time freeze weapon
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.
- 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
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.
I can't watch your video at the moment though, so I have no idea if that's what you want.
Re: time freeze weapon
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?
Re: time freeze weapon
Do that with a_radiusgive
Re: time freeze weapon
I got it to work using powerup givers
- 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
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
}
}
Re: time freeze weapon
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.