Skip to content

Variables

Gorzon edited this page Aug 7, 2023 · 14 revisions

Variables that you can change while creating the bro. They are shown with their default value.
Some variables don't have an impact, cause they are for enemies.

canGib = true;
canWallClimb = true; // If false, you still climbing but the animation is messed up
canPushBlocks = true;
canDash = true;
canLedgeGrapple = false;
canDisembowel = false;
canUnFreeze = false;
breakDoorsOpen = false;
canBeCoveredInAcid = true;
canBeStrungUp = false;


JUMP_TIME = 0.123f; // The time you can hold jump for jumping. Be careful adding a small number can really increase time.
speed = 110.0f; // Speed of the bro.
maxFallSpeed = -400f; // The speed for falling when he is in the air.
fireRate = 0.0334f; // The time between each bullet.
fireDelay = 0.0f; // the delay between press fire and the bro fire. Example on Brominator.
_jumpForce = 260f; // Jump height.
health = 3; // Don't change it, it's value to stay as the same difficulty.

// Animation
useNewPushingFrames = false; // Custom animation when pushing something. The gun stay reverse after pushing the block.
useNewLadderClimbingFrames = false; // Custom climbing frame that isn't use for bro. Some sprite are missing.
useLadderClimbingTransition = false; // Do nothing, still missing Enter and Exit frame on the ladder. Because they don't exist.
useNewLedgeGrappleFrames = false; // Better animation who belong '.canLedgeGrapple'

useDashFrames = true;   // Already enabled. If false, your character will just be faster and look like it slide on the ground.
useDuckingFrames = true; // Already enabled. If disable you will not see your bro ducking.
canDoIndependentMeleeAnimation = false; // Don't know how it works

bloodColor = BloodColor.Red; // Change the blood color when hit or gib.
bloodCountAmount = 80; // The number of blood square which spawn on death.
deathSoundVolume = 0.4f;

Here's the variable where BroMaker change their value.

canChimneyFlip = true; // Do the things when you catch a ledge. !! Glitch if disable. !!
doRollOnLand = true; // Do roll on land when it fall from far. !! Glitch if disable. !!
canHear = true;
canCeilingHang = true;

meleeType = MeleeType.Knife; // You can change the value to the one you want. You need to do the method if you change the melee type.

// Better animation.
useDashFrames = true;
useNewFrames = true;
useNewDuckingFrames = true;
useNewThrowingFrames = true;
useNewKnifingFrames = true;
useNewKnifeClimbingFrames = true;

isHero = true;
health = 1;

BroMaker variables

Material bm_DefaultGunMaterial;
Material bm_avatarMaterial;
Material bm_ammoMaterial;
Material bm_secondMaterial;
Material bm_secondGunMaterial;

Shrapnel bm_bulletShell; // Shrapnel which are drop while firing. Leave null if you don't use one.
bool bm_IsInGame = false; // Unused
float bm_originalSpeed; // The original speed
int bm_fireCount; // Count the number of shot if you want.

float bm_ProjectileXRange = 400f; // Change the range of the projectile. (primary fire)