Jazz2::Scripting::Legacy::jjPLAYERDRAW struct

Controls which parts of a player are drawn and how.

Public functions

auto get_shield(std::int32_t shield) const -> bool
Returns whether the given shield effect is drawn.
auto set_shield(std::int32_t shield, bool enable) -> bool
Sets whether the given shield effect is drawn.
auto get_player() const -> jjPLAYER*
Returns the player this draw configuration belongs to.

Public variables

bool name
Whether the player's name is drawn.
bool sprite
Whether the player's sprite is drawn.
bool sugarRush
Whether the sugar rush effect is drawn.
bool gunFlash
Whether the gun muzzle flash is drawn.
bool invincibility
Whether the invincibility effect is drawn.
bool trail
Whether the motion trail is drawn.
bool morphingExplosions
Whether morphing explosions are drawn.
bool airboardBouncingMotion
Whether the airboard bouncing motion is drawn.
bool airboardPuff
Whether the airboard puff effect is drawn.
std::int32_t spriteMode
Sprite blend mode used to draw the player.
std::uint8_t spriteParam
Parameter for the sprite blend mode.
std::int32_t lightType
Light type emitted by the player.
std::int8_t light
Brightness of the light around the player.
std::int32_t layer
Layer the player is drawn on.
std::uint32_t curFrame
Current sprite frame index.
std::int32_t angle
Rotation angle applied when drawing.
float xOffset
Horizontal draw offset.
float yOffset
Vertical draw offset.
float xScale
Horizontal draw scale.
float yScale
Vertical draw scale.
std::int32_t flag
Capture-the-flag flag state.