Prydon Coding
Moderator: InsideQC Admins
12 posts
• Page 1 of 1
Prydon Coding
I was talking to FrikaC about starting up coding for prydon again. He told me to contact Mauve, because Frik was not feeling like working on Prydon. So playing around with Prydon for the past month, I've come up with a couple of things I really want implemented in it.
Dodge Frames - I'm tired of seeing the player and monster continuosly swing at eachother, without visual reason why the weapon didn't cause any damage. it looks like it hit one of them, but apparently the player "dodged" the attack. So I'd like to implement some dodging animations through QC, in order to make this look better.
Blocking Frames - If a player has a shield, he should have blocking frames. Pretty much like dodging frames.
Pain Frames - I don't know if this is already implemented, but I know for sure it's not the case for the player. I would love to see Ithael get smacked around from time to time.
This would add some fun into watching Ithael and the monsters fight, rather than just watching them take swings at eachother for minutes at a time without anything visually happening, except a pain noise here and there
Dodge Frames - I'm tired of seeing the player and monster continuosly swing at eachother, without visual reason why the weapon didn't cause any damage. it looks like it hit one of them, but apparently the player "dodged" the attack. So I'd like to implement some dodging animations through QC, in order to make this look better.
Blocking Frames - If a player has a shield, he should have blocking frames. Pretty much like dodging frames.
Pain Frames - I don't know if this is already implemented, but I know for sure it's not the case for the player. I would love to see Ithael get smacked around from time to time.
This would add some fun into watching Ithael and the monsters fight, rather than just watching them take swings at eachother for minutes at a time without anything visually happening, except a pain noise here and there
-

Chillo - Posts: 80
- Joined: Fri Nov 05, 2004 6:29 pm
Now this here is a way better idea: instead of dodging frames for the defender, have hit frames for the attacker. This because you miss so often, it would look weird if the player or the monster constantly does dodge moves. The dodge move would also hinder the attacker from doing anything else (like say attacking), which is more than bad.
With hit frames, I mean the following: imagine the first few frames of swinging a sword, they'd look the same no matter if you hit or not. But as you hit a target (or wall, or whatever, as this *very* simple but seldomly implemented theory applies to anything, not just prydon or other top-down games), your sword would stop swinging, and the character would pull it back up to start position. If you however miss, your sword would keep swinging until the character has realized he missed and breaks the momentum to pull it back up to start position. The check for wether it hit or not would be done on the frame where it could hit, the most extended position, or however you like to see it. Sadly, almost all games are animated to miss, which looks just plain weird. Imagine the Quake axe, if it actually stopped swinging on the moment of the hit, and did a different couple of frames instead to pull it pack than the regular swing frames. Very simple and nice.
Pain and block frames should only exist if those events cause a pause already on the player. I'd imagine pain does (stuns you for half a second), I really don't remember, it was a while ago I played any prydon.
With hit frames, I mean the following: imagine the first few frames of swinging a sword, they'd look the same no matter if you hit or not. But as you hit a target (or wall, or whatever, as this *very* simple but seldomly implemented theory applies to anything, not just prydon or other top-down games), your sword would stop swinging, and the character would pull it back up to start position. If you however miss, your sword would keep swinging until the character has realized he missed and breaks the momentum to pull it back up to start position. The check for wether it hit or not would be done on the frame where it could hit, the most extended position, or however you like to see it. Sadly, almost all games are animated to miss, which looks just plain weird. Imagine the Quake axe, if it actually stopped swinging on the moment of the hit, and did a different couple of frames instead to pull it pack than the regular swing frames. Very simple and nice.
Pain and block frames should only exist if those events cause a pause already on the player. I'd imagine pain does (stuns you for half a second), I really don't remember, it was a while ago I played any prydon.
I was once a Quake modder
-

Urre - Posts: 1109
- Joined: Fri Nov 05, 2004 2:36 am
- Location: Moon
Pain animations are implemented for the monsters, not for the player, because the player is allowed to pretty much continually attack.
I had once allowed the player to go into pain and it just felt kinda weird in game (the battle was basically decided by who attacked first)
There is a block frame (check combat.qc) for the comment "hack"), it's just a frame, not a full animation however. Oh and I guess it's only in MagicHit not standard Hit as well.
To implement dodge is pretty simple, the th hitcheck calls for dodge are right next to the ones for block.
else if (hitcheck(attacker.tohit, targ.dodge))
return FALSE;
I had once allowed the player to go into pain and it just felt kinda weird in game (the battle was basically decided by who attacked first)
There is a block frame (check combat.qc) for the comment "hack"), it's just a frame, not a full animation however. Oh and I guess it's only in MagicHit not standard Hit as well.
To implement dodge is pretty simple, the th hitcheck calls for dodge are right next to the ones for block.
else if (hitcheck(attacker.tohit, targ.dodge))
return FALSE;
- FrikaC
- Site Admin
- Posts: 1026
- Joined: Fri Oct 08, 2004 11:19 pm
Urre's idea sounds cool, but if there was only the animation where the player hits something, the victim player would still be standing perfectly still.
I still don't know, I'd like to go trial and error with this, but my coding skills lack tremendously.
FrikaC, you said when you had pain frames implemented for the player, the winner of the fight turned out to be whoever attacked first. Would there be anyways to randomize this?
I still don't know, I'd like to go trial and error with this, but my coding skills lack tremendously.
FrikaC, you said when you had pain frames implemented for the player, the winner of the fight turned out to be whoever attacked first. Would there be anyways to randomize this?
-

Chillo - Posts: 80
- Joined: Fri Nov 05, 2004 6:29 pm
Id imagine it would be simple to randomize it, by doing the rand calculation within a check for if they did damage, and if so, chance for pain animation.
You could even make it more strict where they only go into pain frames for attacks that do... 10% of their health or more, so on and so forth.
I think ultimately though what Chillo wants is there to be more visual stimulation of the traditional player - creature exchange, not a change in gameplay dynamic. So the question is more of how to make this more visually stimulating without necessarily changing the attack/defend flow of typical PG combat.
You could even make it more strict where they only go into pain frames for attacks that do... 10% of their health or more, so on and so forth.
I think ultimately though what Chillo wants is there to be more visual stimulation of the traditional player - creature exchange, not a change in gameplay dynamic. So the question is more of how to make this more visually stimulating without necessarily changing the attack/defend flow of typical PG combat.
-

scar3crow - InsideQC Staff
- Posts: 1054
- Joined: Tue Jan 18, 2005 8:54 pm
- Location: Alabama
Urre wrote:But as you hit a target (or wall, or whatever, as this *very* simple but seldomly implemented theory applies to anything, not just prydon or other top-down games), your sword would stop swinging, and the character would pull it back up to start position. If you however miss, your sword would keep swinging until the character has realized he missed and breaks the momentum to pull it back up to start position. The check for wether it hit or not would be done on the frame where it could hit, the most extended position, or however you like to see it. Sadly, almost all games are animated to miss, which looks just plain weird. Imagine the Quake axe, if it actually stopped swinging on the moment of the hit, and did a different couple of frames instead to pull it pack than the regular swing frames. Very simple and nice.
/me beats the rush and kills himself
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
- Sajt
- Posts: 1215
- Joined: Sat Oct 16, 2004 3:39 am
I think if we incorporated both urre's idea for making the hitting frames, and the pain/block frames, it would make for more bad ass looking combat within Prydon.
I learned how to do model interpolation (finally) so I'll be able to create much smoother and variated animations, instead of the crappy ones I used to do.
I'm also adding more joints in the models than before, in order to create more flexible looking characters.
Anyone know where i can get the latest source code?
I learned how to do model interpolation (finally) so I'll be able to create much smoother and variated animations, instead of the crappy ones I used to do.
I'm also adding more joints in the models than before, in order to create more flexible looking characters.
Anyone know where i can get the latest source code?
-

Chillo - Posts: 80
- Joined: Fri Nov 05, 2004 6:29 pm
I'm hesitant with the pain frames, it could easily end up with what was mentioned before, that the player/monster would just end up in a pain loop as the attacker keeps attacking without the defender being able to do anything about it.
I was once a Quake modder
-

Urre - Posts: 1109
- Joined: Fri Nov 05, 2004 2:36 am
- Location: Moon
Could someone implement frames into ithael's code;
Walking, Standing and Running frames of Ithael with his weapons drawn, and the same frames of ithael off his guard.
Maybe you could make it so that if ithael is within a certain proximity of monsters, he would switch to his weapons being drawn.
Walking, Standing and Running frames of Ithael with his weapons drawn, and the same frames of ithael off his guard.
Maybe you could make it so that if ithael is within a certain proximity of monsters, he would switch to his weapons being drawn.
-

Chillo - Posts: 80
- Joined: Fri Nov 05, 2004 6:29 pm
That's cool. Either that or make him have his weapons up if he's just come from a fight, and if there's no activity (IE fighting) for a while he puts them down. On the other hand I kind of liked your idea, but with an added animation for drawing the weapons when he senses enemies nearby. Could be a cool effect. On a second note it'd be cool with upper- and lower-body separated, so you could add moves like blocking/pain/readying weapons/victory cheer and whatever without obstructing the players movement.
Damn, I talk a lot.
Chillo: Is Mauve coding stuff for ya?
Damn, I talk a lot.
Chillo: Is Mauve coding stuff for ya?
I was once a Quake modder
-

Urre - Posts: 1109
- Joined: Fri Nov 05, 2004 2:36 am
- Location: Moon
12 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest