Skip to content

Class "MultiShotParams"⚓︎

Info

MultiShotParams contains information the game uses to properly calculate the position and velocity of every tear fired, among other things.

You can get this class by using the following functions:

Example Code
1
local params = Game():GetPlayer(0):GetMultiShotParams(WeaponType.WEAPON_TEARS)

Functions⚓︎

GetMultiEyeAngle ()⚓︎

float GetMultiEyeAngle ( )⚓︎

When more than one eye is active, defines the angle the eyes are offset to eachother. Similar to cross eye effect.

Example: for The Wiz, this is 45.


GetNumEyesActive ()⚓︎

int GetNumEyesActive ( )⚓︎

Returns the number of eyes simultaniously shooting. Examples: For The Wiz, its 2, for mutant Spider its 1.


GetNumLanesPerEye ()⚓︎

int GetNumLanesPerEye ( )⚓︎

Returns the amount of lanes used to spread the shot tears onto. Lane positions are calculated by dividing the area, defined by the shooting direction +- the spreadAngle, by the number of lanes. This will create a pattern similar to a symetrical hand fan. Normally the number of lanes should be the same number as the amount of tears divided by the number of eyes.

A smaller number of lanes than the amount of tears will cause tears to overlap each other. A higher lane count than tears will make the fan pattern asymetrical.


GetNumRandomDirTears ()⚓︎

int GetNumRandomDirTears ( )⚓︎

Returns the amount of tears additionally shot in random directions. Same effect as "Eye Sore" collectible.


GetNumTears ()⚓︎

int GetNumTears ( )⚓︎

Returns the amount of tears the player can currently simultaneously fire.


GetSpreadAngle ()⚓︎

float GetSpreadAngle ( WeaponType WeaponType )⚓︎

Get the spread angle for the given WeaponType.


IsCrossEyed ()⚓︎

boolean IsCrossEyed ( )⚓︎

Returns if a cross eye effect is active, aka. player shoots in two directions with 45° offset to eachother.


IsShootingBackwards ()⚓︎

boolean IsShootingBackwards ( )⚓︎

Returns if an additional shot backwards will be triggered. Similar effect to Mom's Eye.


IsShootingSideways ()⚓︎

boolean IsShootingSideways ( )⚓︎

Returns if two additional shots sideways will be triggered. Similar effect to Loki's horns.


SetIsCrossEyed ()⚓︎

void SetIsCrossEyed ( boolean Value )⚓︎

Set if a cross eye effect is active, aka. player shoots in two directions with 45° offset to eachother.


SetIsShootingBackwards ()⚓︎

void SetIsShootingBackwards ( boolean Value )⚓︎

Set if an additional shot backwards will be triggered. Similar effect to Mom's Eye.


SetIsShootingSideways ()⚓︎

void SetIsShootingSideways ( boolean Value )⚓︎

Set if two additional shots sideways will be triggered. Similar effect to Loki's horns.


SetMultiEyeAngle ()⚓︎

void SetMultiEyeAngle ( float Angle )⚓︎

When more than one eye is active, defines the angle the eyes are offset to eachother. Similar to cross eye effect.

Example: for The Wiz, this is 45.


SetNumEyesActive ()⚓︎

void SetNumEyesActive ( int Value )⚓︎

Set the number of eyes simultaniously shooting. Examples: For The Wiz, its 2, for mutant Spider its 1.


SetNumLanesPerEye ()⚓︎

void SetNumLanesPerEye ( int Value )⚓︎


SetNumRandomDirTears ()⚓︎

void SetNumRandomDirTears ( int Value )⚓︎

Set the amount of tears additionally shot in random directions. Same effect as "Eye Sore" collectible.


SetNumTears ()⚓︎

void SetNumTears ( int Value )⚓︎

Set the amount of tears the player can currently simultaneously fire.


SetSpreadAngle ()⚓︎

void SetSpreadAngle ( WeaponType WeaponType, float Angle )⚓︎

Set the spread angle for the given WeaponType.