HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Projectile Library + JCast Spells

01-03-2011, 06:20 AM#1
rogueteddybear
I was looking through the xe system/modules and really liked how xefx and xecollider worked. However I noticed that it was a bit difficult to get angled/arced motion with the xecollider. I knew there were other systems like custom missile or xemissile but I decided to try to make my own.

A lot of base code is heavily inspired/taken from xecollider. This includes the indexing/timer/recycling system. However I chose to use GroupUtils for group recycling because I am used to it.

Notes:
- The Projectile library uses another library I made called Vector3, as well as xefx, xebasic, BoundSentinel and GroupUtils
- Vector3 is a library/struct for 3D vectors and related functionality.
- Uses xefx for the effects aspect of the library (delegates like xecollider does)
- The test map I am including has a bunch of junk for presentation, such as hero revival, damage numbers, cast bar, effects, etc.
- The test map uses JCast for the spell system. Projectile does not require JCast.

Pros:
- Detailed properties and useful events for fully controllable projectiles.
- Easy to use, by just extending and implementing events (like in xecollider)

Cons:
- Uses multiple Vector3 structs per projectile.
- Does not consider terrain height. So a projectile flying over bumpy terrain will follow the ground and might look like it's tripping out. I may change this later.


I was hoping to get some comments/suggestions/criticism.
If you guys like it enough I can try to submit it to your database.
Please try out the test map, and thanks for reading.


Here's the library:
Expand Projectile:

And the vector library:
Expand Vector3:

Here is a short example:
Expand HOW TO USE:

Extra model resources thanks to: Vexorian (Dummy model), Dan van Ohllus (Missile), s4nji (Icy Spike)
Attached Files
File type: w3xProjectileSpells.w3x (266.3 KB)
01-04-2011, 05:14 AM#2
BlackRose
You may want to check this and this as well. Why? Idk.

Anyways, I played with your testmap, cool spells :P I like how the projectiles act all "crazy". You make so cool stuff T__T
01-04-2011, 07:57 PM#3
rogueteddybear
Thanks for the reply.

Yes I imagined people would have already this kind of thing many times. I wanted to give it a shot myself and see how it went.

Edit: I added a "How to use" section.