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
onFragment
- Betelgeuse
- Fleet Officer
- Posts: 1920
- Joined: Sun Mar 05, 2006 6:31 am
Crying is not a proper retort!
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.
The trac post requests it work on fragments, but I didn't explain why it should work on fragments as well as weapons there.
- Betelgeuse
- 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!