Author Topic: Ranged weapons code?  (Read 3343 times)

Kaerli

  • Hydlaa Resident
  • *
  • Posts: 157
    • View Profile
Ranged weapons code?
« on: November 14, 2007, 01:39:38 pm »
Does anyone know what it'd take to make ranged weapons work in PS?  (code-wise that is)

ThomPhoenix

  • Testers
  • Forum Addict
  • *
  • Posts: 2678
  • A Phoenix, what'd you expect?
    • View Profile
Re: Ranged weapons code?
« Reply #1 on: November 14, 2007, 03:02:39 pm »
I'm not sure in what way you'd like to see ranged weapons, but I see it like this. First create an "arrow" effect, using the same method spell effects are shown now. Then code up the check to have a bow equipped when attacking. You'd also need a module doing the damage calculation depending on speed, bow quality, arrow quality and a hit/miss rate depending on skill.

For art you'd need an arrow effect, a bow mesh+texture and a firing animation.

Go for it! :D
« Last Edit: November 14, 2007, 03:06:09 pm by ThomPhoenix »
We're not evil. We're simply amazing.

LigH

  • Forum Legend
  • *
  • Posts: 7096
    • View Profile
Re: Ranged weapons code?
« Reply #2 on: November 14, 2007, 03:22:11 pm »
So I'd already speculate: Simplified model (maximum distance and damage according to weapon and skill, but linear flight curve) vs. ballistic model (parabolic flight curve)? Bow, crossbow, what else?

I'm pretty sure Xordan already worked on something. Can you find this thread again?

Gag Harmond
Knight and Ambassador
The Royal House of Purrty

peeg

  • Testers
  • Hydlaa Notable
  • *
  • Posts: 560
    • View Profile
Re: Ranged weapons code?
« Reply #3 on: November 14, 2007, 06:42:46 pm »
I'm pretty sure that it wouldn't take too much to implement ranged combat - at least a simple prototype could easily be made by using parts of the current magic system . I'm not sure if that's what the devs have in mind though.
A model for a bow is already included in the client btw :)
[ PSde ] - Join the german community!
Peeg Chaoswind - Mentor in The Rangers Of Yliakum

Ver

  • Hydlaa Resident
  • *
  • Posts: 156
    • View Profile
Re: Ranged weapons code?
« Reply #4 on: November 22, 2007, 04:29:49 am »
Bows...shields...stuff you'd think would be in game by now.

LigH

  • Forum Legend
  • *
  • Posts: 7096
    • View Profile
Re: Ranged weapons code?
« Reply #5 on: November 22, 2007, 08:05:16 am »
Be happy that daggers and swords are implemented. In the previous generation there was no combat at all, I read (only crystal hunts as time wasting activity).

Gag Harmond
Knight and Ambassador
The Royal House of Purrty

Xillix Queen of Fools

  • Veteran
  • *
  • Posts: 1876
    • View Profile
Re: Ranged weapons code?
« Reply #6 on: December 02, 2007, 02:16:59 am »
You'd think it'd be in game already?

You first need all the races done then someone to to the anims for shooting for all of those races, plus rogues, I don't think this is as easy as folks would like to think.

The code itself is most likely not the hold up, nor is the "effect." I am pretty sure the animations would be the most difficult part.

In my mind, finishing the base models and anims for all characters should be first.

Xordan

  • Crystal Space Developer
  • Forum Addict
  • *
  • Posts: 3845
  • For God and the Empire
    • View Profile
Re: Ranged weapons code?
« Reply #7 on: December 02, 2007, 03:54:16 am »
Aye, the hardest part is getting the animations for the character and the effect for the bow. The rest is half-done, not sure when I'll have time to finish it. Soon hopefully.