Bear in mind, this idea is coming from a perspective of a pvp map with minimal number of units/entities.
I was just wondering and an idea came to me which could be useful for many pvp maps...
A real, in-game, replay of a recorded period mimmicking unit movement and environment.
So it could function like an instant action replay providing an in game replay for the last, say, 10 seconds.
The concept of it isn't too complex. Just a matter of setting tons of variables and remwritting them every something (0.1??) seconds. The the game would have a short (10 seconds) history of the positions of any units/projectiles.
Somehow would have to register each action too, like spells and such, maybe create a register with a time stamp.
Then hit a button and the game pauses and replays the last 10 seconds, reading each iteration of variables subsequently to then manipulate each unit command; producing a cinematic.
This would be especialy interesting for player vs player maps to replay the killing blow end game supah punch of any such object. Especially if you have made a highly customised interface on a tangent to the traditional warcraft maps, where you have a potentially high level of feedback from triggers to register as events to be recorded.
Possible Issues
Like?
I was just wondering and an idea came to me which could be useful for many pvp maps...
A real, in-game, replay of a recorded period mimmicking unit movement and environment.
So it could function like an instant action replay providing an in game replay for the last, say, 10 seconds.
The concept of it isn't too complex. Just a matter of setting tons of variables and remwritting them every something (0.1??) seconds. The the game would have a short (10 seconds) history of the positions of any units/projectiles.
Somehow would have to register each action too, like spells and such, maybe create a register with a time stamp.
Then hit a button and the game pauses and replays the last 10 seconds, reading each iteration of variables subsequently to then manipulate each unit command; producing a cinematic.
This would be especialy interesting for player vs player maps to replay the killing blow end game supah punch of any such object. Especially if you have made a highly customised interface on a tangent to the traditional warcraft maps, where you have a potentially high level of feedback from triggers to register as events to be recorded.
JASS:
function PlayBack takes something returns maybe
loop
LoopNo = n of 6000
grab loopN variables
define playback speed
define clocked actions
perform defined actions
move units
animate
effects
projectiles
endloop
endfunction
Possible Issues
- Can Warcraft handle it? FPS would take a big hit.
- The Blizzard created replay system seems to work in an almost exact fassion, some possibilities to get the replay data as its recorded by the in-built one?
- The system may be too complex or resource hungry for larger maps.
Like?
Last edited: