-
Notifications
You must be signed in to change notification settings - Fork 0
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;
Physics
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.
_jumpForce = 260f; // Jump height.
health = 3; // Don't change it, it's value to stay as the same difficulty. fireRate = 0.0334f; // The time between each bullet. fireDelay = 0.0f; // the delay between press fire and the bro fire. Example on Brominator.
Animation
canDoIndependentMeleeAnimation = false;
doRollOnLand = false;
useDashFrames = false;
useNewFrames = false;
useNewKnifingFrames = false;
useNewLedgeGrappleFrames = false;
useNewThrowingFrames = false;
useNewPushingFrames = false;
useNewHighFivingFrames = false;
hasNewAirFlexFrames = false;
useNewKnifeClimbingFrames = false;
useNewLadderClimbingFrames = false;
useLadderClimbingTransition = false;
useDuckingFrames = true;
useNewDuckingFrames = false;
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.
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)
If you have questions or need help with creating custom bros, you can join the Free Lives Discord Server and post your questions in the bf-mods channel.