onFragment

Post ideas & suggestions you have pertaining to the game here.
Post Reply
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

A good event that came up in irc is onFragment. onFragment would fire whenever its weapon would fragment.

It would need (as global variables)

location of fragmentation
object hit (if any)
where on object hit (if any object hit)
direction of the shot that fragmented
velocity of the shot that fragmented

This could be used for many things like

directional fragmenting
new weapon paths (like a wave weapon)
accelerating weapons that do more damage as they accelerate

Any thoughts?
What would you use this for?

here is a link to the trac post
Crying is not a proper retort!
User avatar
Atarlost
Fleet Admiral
Fleet Admiral
Posts: 2391
Joined: Tue Aug 26, 2008 12:02 am

It should be noted that to be used for weapons paths the event would have to be placed on fragments, not just weapons because pathed weapons would require nested fragments.

The trac post requests it work on fragments, but I didn't explain why it should work on fragments as well as weapons there.
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

not really each onFragment could be a different weapon allowing you to have paths without making it placed on fragments. It would need alot of weapons but the fragment weapon would need lots of fragments too.
Crying is not a proper retort!
User avatar
Atarlost
Fleet Admiral
Fleet Admiral
Posts: 2391
Joined: Tue Aug 26, 2008 12:02 am

Ah. true. we wouldn't be doing normal fragmentation at all. We'd be doing sysCreateWeaponsFire. Silly me.
Post Reply