[Code] Bullet-Time / Slow-Motion

Post your example zscripts/ACS scripts/etc here.

[Code] Bullet-Time / Slow-Motion

Postby The Zombie Killer » Mon Jul 08, 2013 11:51 pm

REQUIRES AT LEAST VERSION 2.7.0!
This is something I've been working on for a while, I'm finally at a point where I'd like to release it.
It's not completely finished yet, the algorithms and stuff used are finished, but implementing that into the monsters and items is what is still WIP.

To use, simply change the console command "sv_timescale".

Currently slow-mo-ified actors:
DoomPlayer
ZombieMan
ShotgunGuy
ChaingunGuy
DoomImp
Demon
Spectre
LostSoul
Cacodemon
HellKnight
BaronOfHell

Known bugs:
* Due to the slow-mo effect changing the player's gravity and jump height, the player jumps lower in slow motion, and higher in fast-motion.
* The "FAST" keyword for actor states isn't completely supported, so it's handled differently. If the console command "skill" is 4, then the FAST stuff will take place. I don't know how to retrieve actor flags like "NEVERFAST" yet though, so this functionality is limited at this time.

Things waiting for new features:
* Slow-motion weapons (awaiting A_SetTics to work with weapons)

Still working on:
* Making the following actors slow-mo:
WolfensteinSS
BetaSkull
Arachnotron
PainElemental
Revenant
Fatso
ArchVile
SpiderMastermind
CyberDemon
CommanderKeen
Plus all of the item pickups and stuff (gravity)

Download:

sv_timescale.pk3

-TZK
You do not have the required permissions to view the files attached to this post.
User avatar
The Zombie Killer
King of the Kangaroos
 
Joined: 14 Jul 2011
Location: Gold Coast, Queensland, Australia
Discord: Zombie#1795

Re: [Code] Bullet-Time / Slow-Motion

Postby Nash » Tue Jul 09, 2013 1:59 am

Things waiting for new features:
* Slow-motion weapons (awaiting A_SetTics to work with weapons)


It doesn't? That sucks, I was planning to use it for some advanced weapon coding.

How do I do slow motion? sv_timescale seems to only make the monsters faster; never slower. Negative values don't work either.
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

Re: [Code] Bullet-Time / Slow-Motion

Postby The Zombie Killer » Tue Jul 09, 2013 2:07 am

@Nash
sv_timescale 0.5, use decimal values. 1 is normal speed, 2 is double speed, 0.5 is half speed, etc
It works just like Quake 3's timescale command, or Half-Life 2's host_timescale command.

-TZK
User avatar
The Zombie Killer
King of the Kangaroos
 
Joined: 14 Jul 2011
Location: Gold Coast, Queensland, Australia
Discord: Zombie#1795

Re: [Code] Bullet-Time / Slow-Motion

Postby Nash » Tue Jul 09, 2013 3:52 am

Ahh, I see.

The implementation looks like a nightmare though... especially with more complex DECORATE actors. Also, physics aren't affected (blasting a monster with a rocket at 0.5 timescale will still hurl the body in full force... not to mention the rocket moves at full speed too)

Still an interesting demonstration of DECORATE/ACS hybrid!

Also, can I get a confirmation on A_SetTics on weapons? Is it really not working? Could it be a bug? If it's a bug, you should report it.
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes


Return to Script Library

Who is online

Users browsing this forum: No registered users and 0 guests