boomerang
If an ojvect is given the boomerang component, it should be thrown back to the thrower after either hitting its target, or landing on the thrown tile. Thrown objects should be thrown back to the original thrower with this component, a number of tiles defined by boomerang_throw_range.
Vars | |
boomerang_throw_range | How far should the boomerang try to travel to return to the thrower? |
---|---|
examine_message | Adds an extra big of flavor text on examine. |
last_boomerang_throw | This cooldown prevents our 2 throwing signals from firing too often based on how we implement those signals within thrown impacts. |
thrower_easy_catch_enabled | If this boomerang is thrown, does it re-enable the throwers throw mode? |
Procs | |
aerodynamic_swing | Proc that triggers when the thrown boomerang has been fully thrown, rethrowing the boomerang back to the thrower, and producing visible feedback. |
prepare_throw | Proc'd before the first thrown is performed in order to gather information regarding each throw as well as handle throw_mode as necessary. |
return_hit_throw | Proc that triggers when the thrown boomerang hits an object. |
return_missed_throw | Proc that triggers when the thrown boomerang does not hit a target. |
Var Details
boomerang_throw_range
How far should the boomerang try to travel to return to the thrower?
examine_message
Adds an extra big of flavor text on examine.
last_boomerang_throw
This cooldown prevents our 2 throwing signals from firing too often based on how we implement those signals within thrown impacts.
thrower_easy_catch_enabled
If this boomerang is thrown, does it re-enable the throwers throw mode?
Proc Details
aerodynamic_swing
Proc that triggers when the thrown boomerang has been fully thrown, rethrowing the boomerang back to the thrower, and producing visible feedback.
- throwing_datum: The thrownthing datum that originally impacted the object, that we use to build the new throwing datum for the rebound.
- hit_atom: The atom that has been hit by the boomerang'd object.
prepare_throw
Proc'd before the first thrown is performed in order to gather information regarding each throw as well as handle throw_mode as necessary.
- source: Datum src from original signal call.
- thrown_thing: The thrownthing datum from the parent object's latest throw. Updates thrown_boomerang.
- spin: Carry over from POST_THROW, the speed of rotation on the boomerang when thrown.
return_hit_throw
Proc that triggers when the thrown boomerang hits an object.
- source: Datum src from original signal call.
- hit_atom: The atom that has been hit by the boomerang component.
- init_throwing_datum: The thrownthing datum that originally impacted the object, that we use to build the new throwing datum for the rebound.
return_missed_throw
Proc that triggers when the thrown boomerang does not hit a target.
- source: Datum src from original signal call.
- throwing_datum: The thrownthing datum that originally impacted the object, that we use to build the new throwing datum for the rebound.