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

Modelled Shields

| Inside3d Forums Forum Index -> QuakeC Programming

View previous topic :: View next topic
Author | Message
--- | ---
Skippy Joined: 14 Sep 2007 Posts: 4 |

Posted: Thu Sep 20, 2007 3:05 am Post subject: Modelled Shields |

Wondering if anyone can give any insight on how to do a shield similar to counter-strike. From what I've read, attached models lose collision info, so I guess it would need to be following the player some other way. I imagine I could simply animate all the frames for the shield placing it where it would be on the player, that way it would just have to align with the player origin and angles, but beyond that concept I'm pretty lost.
Per poly collision would probably be a good idea for accuracy, unless someone has a brilliant plan to get a hitbox to follow a moving and animating object.

Back to top |

Sajt Joined: 16 Oct 2004 Posts: 1026 |

Posted: Thu Sep 20, 2007 6:08 am Post subject: |

Yeah, per-poly is your only really good bet (as long as you're using DarkPlaces). Bounding boxes can't rotate, so if you were at a 45 degree angle it would be a lot bigger than it should be. The shield could either be attached to a tag on an md3 model, or a quake2-vwep-style thing animated along with the player, and attached with MOVETYPE_FOLLOW or something similar.
The other alternative is a bunch of hard-coded math If you hard coded shield orientations per frame (or used a tag), and used some dot product math you might be able to simulate a round shield.
_________________
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 |

leileilol Joined: 15 Oct 2004 Posts: 1321 |

Posted: Thu Sep 20, 2007 6:51 pm Post subject: Re: Modelled Shields |

Skippy wrote:
From what I've read, attached models lose collision info

This is true. Can't do HITMODEL with attachments :/ this is severely hindering my projects as well

Back to top |

Sajt Joined: 16 Oct 2004 Posts: 1026 |

Posted: Fri Sep 21, 2007 12:43 am Post subject: |

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

leileilol Joined: 15 Oct 2004 Posts: 1321 |

Posted: Fri Sep 21, 2007 1:36 am Post subject: |

yeah, i was hoping to do pleasure zones attached to tags

Back to top |

Sajt Joined: 16 Oct 2004 Posts: 1026 |

Posted: Fri Sep 21, 2007 2:34 am Post subject: |

_________________ 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 Sep 21, 2007 1:52 pm Post subject: |

/me coughs something about gettaginfo and Matrices _________________ Look out for Twigboy

Back to top |

xaGe Joined: 01 Mar 2006 Posts: 329 Location: Upstate, New York |

Posted: Mon Sep 24, 2007 1:57 am Post subject: |

/me **cough cough** ..something reguarding anime pron..

leileilol wrote:
yeah, i was hoping to do pleasure zones attached to tags

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