Index | FAQ | Search | Memberlist | Usergroups | Profile | Log in to check your private messages | Log in | Register

Prydon Coding

| Inside3d Forums Forum Index -> QuakeC Programming

View previous topic :: View next topic
Author | Message
--- | ---
Chillo Joined: 05 Nov 2004 Posts: 80 |

Posted: Thu Apr 12, 2007 8:11 am Post subject: 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

Back to top |

Urre Joined: 05 Nov 2004 Posts: 1073 Location: Sweden |

Posted: Thu Apr 12, 2007 9:40 am Post subject: |

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.
_________________
Look out for Twigboy

Back to top |

FrikaC Site Admin Joined: 08 Oct 2004 Posts: 947 |

Posted: Thu Apr 12, 2007 3:39 pm Post subject: |

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;
_________________

Back to top |

Chillo Joined: 05 Nov 2004 Posts: 80 |

Posted: Thu Apr 12, 2007 4:21 pm Post subject: |

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?

Back to top |

scar3crow Inside3D Staff Joined: 18 Jan 2005 Posts: 837 Location: Las Vegas, NV

Posted: Thu Apr 12, 2007 4:25 pm Post subject: |

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.

Back to top |

Sajt Joined: 16 Oct 2004 Posts: 1026 |

Posted: Thu Apr 12, 2007 8:32 pm Post subject: |

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.

Teh Half Life crowbar
/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.

Back to top |

Urre Joined: 05 Nov 2004 Posts: 1073 Location: Sweden |

Posted: Fri Apr 13, 2007 6:05 am Post subject: |

Sajt wrote:
Teh Half Life crowbar

Aye! The fact that only Valve realized this makes me sad...
_________________
Look out for Twigboy

Back to top |

Chillo Joined: 05 Nov 2004 Posts: 80 |

Posted: Fri Apr 13, 2007 7:44 am Post subject: |

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?

Back to top |

Urre Joined: 05 Nov 2004 Posts: 1073 Location: Sweden |

Posted: Fri Apr 13, 2007 9:17 am Post subject: |

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. _________________
Look out for Twigboy

Back to top |

FrikaC Site Admin Joined: 08 Oct 2004 Posts: 947 |

Posted: Fri Apr 13, 2007 2:08 pm Post subject: |

This is the last source http://www.quakesrc.org/forums/viewtopic.php?t=5356

Back to top |

Chillo Joined: 05 Nov 2004 Posts: 80 |

Posted: Fri May 11, 2007 6:08 am Post subject: |

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.

Back to top |

Urre Joined: 05 Nov 2004 Posts: 1073 Location: Sweden |

Posted: Fri May 11, 2007 9:27 am Post subject: |

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?
_________________
Look out for Twigboy

Back to top |

Display posts from previous:

| Inside3d Forums Forum Index -> QuakeC Programming | All times are GMT
Page 1 of 1

Jump to:

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2004 phpBB Group