Overview
I try to gather advanced knowledge about the Broforce Level Editor in this guide, as well as providing usefull tools to furhter edit them outside of the game.Finally be able to assign functions/actions to switches. Make it rain mooks and fire and actual rain at the same time with a push of a button? All possible now.
Entity Names
The game has a SpawnResource Function, which allows you to spawn in resources through triggers.
This List was originally created by SoupCalhoun and myself, most of the credit goes to him though, especially for recent updates (post-hell).
Normal Mooks: mooks/zmook mooks/zmook grenadier mooks/zmookarmouredguy mooks/zmookbazooka mooks/zmookbigguy mooks/zmookdog mooks/zmookjetpack mooks/zmookninja mooks/zmookriotshield mooks/zmookscout mooks/zmookskinless mooks/zmooksuicide Vehicles: vehicles/mookartillerytruck vehicles/mookdrillcarrier vehicles/mooktruck Aliens: aliens/alien sandworm facehugger launcher //Spawn with method: Activate aliens/alien sandworm facehugger launcher behind aliens/aliengiantboss sandworm //front part aliens/aliengiantsandworm //still activates on perimeter aliens/alienminiboss sandworm aliens/zalienbrute aliens/zalienfacehugger aliens/zalienmelter aliens/zalienmosquito aliens/zalienxenomorph aliens/zalienxenomorphbrainbox Hell Units: hell creatures/hell boneworm hell creatures/hell miniboss boneworm hell creatures/hell miniboss boneworm behind mooks/warlockportal mooks/warlockportal suicide mooks/warlockportallarge mooks/warlockportalsouldestroyer mooks/zhellbigguy mooks/zhelldog mooks/zhelllostsoul mooks/zmookhellboomer mooks/zmookhellsoulcatcher mooks/zmookundead mooks/zmookundeadstartdead mooks/zmookundeadsuicide mooks/zmookwarlock Bosses: Boss/Boss_Tank GoliathMech GoliathMech 1 //Beta Model boss/flamesandworm mooks/dolflundgrensoldier //GR666 mooks/satanminibossstage1 PureEvil: mooks/zconradbronebanks mooks/zsatan mooks/zmookgeneral //Calls reinforcements Animals: mooks/pig mooks/pig rotten //Spawns a pig surrounded by flies, that explodes on death mooks/seagull Friendly: citizens/agent1 citizens/citizen1 citizens/citizen2 citizens/citizen3 citizens/citizen4 citizens/citizen5 citizens/citizen6 citizens/citizen7 citizens/citizen8 citizens/citizen9 citizens/presidant_billclinton denizens/denizen1 denizens/denizen2 villagers/villager1 //Male villagers/villager2 //Female Unsorted Enemies: mooks/zmookcaptain mooks/zmookcaptaincutscene mooks/zmookcaptainexpendabro mooks/zmookhellarmouredbigguy mooks/zmookmortar Grenades: grenades/flashbang grenades/grenade airstrike grenades/grenade alien pheromones grenades/grenade mechdrop grenades/grenade molotov fire grenades/grenade molotove grenades/grenade summon tank grenades/grenadecluster grenades/grenadeevilbig grenades/grenadeevilhelicopter grenades/grenadeevilmedium grenades/grenadeevilsmall grenades/grenadeflamewave grenades/grenadehologram grenades/grenadeshrapnel grenades/grenadeteargas grenades/grenadetollbroad Projectiles: projectiles/lightning bombardment projectiles/robrocoptargetingsystem projectiles/rocket launch airstrike Effects: effects/reviveblast Heroes: heroes/Ash Brolliams heroes/BA_Broracus2 //Spawns Broracus heroes/Blade //Spawns Brade heroes/BoondockBro heroes/Bro Dredd heroes/Bro Hard heroes/BroLee heroes/BroMax heroes/Brobocop heroes/Brochete heroes/Brodel Walker heroes/Broden heroes/Bromander //Spawns Brommando heroes/Brominator heroes/BronanTheBrobarian heroes/BroniversalSoldier heroes/Brononymous heroes/Broveheart heroes/CherryBroling heroes/Col James Brodock heroes/DirtyHarry heroes/DoubleBroSeven heroes/EllenRipbro heroes/Indiana Brones heroes/MadMaxBrotansky //Spawns BroDredd…. heroes/McBrover heroes/Nebro heroes/Predabro heroes/Rambo //Spawns Rambro heroes/SnakeBroSkin heroes/TankBro heroes/TheBrocketeer heroes/TheBrode heroes/TheBrofessional heroes/TheBrolander heroes/Time Bro Van Damme heroes/broyang heroes/broc heroes/broceasar heroes/broneyross heroes/bronnarjensen heroes/leebroxmass heroes/tollbroad heroes/trentbroser heroes/billyconnoly //Boondock Bro grenade heroes/hobro //Spawn with method: Free heroes/brondlefly heroes/broshiptrooper heroes/suicidebro Extra: aliens/sandwormheadgibholder mooks/tankbrostank //Spawns Tank (spawn in midair to prevent jump death) player/chatellipsis
Legacy Resource Names (Pre 2019 builds)
flashbang billyconnoly grenade airstrike grenade alien pheromones grenade mechdrop grenade molotov fire grenade molotove grenade summon tank grenadecluster grenadeevilbig grenadeevilhelicopter grenadeevilmedium grenadeevilsmall grenadeflamewave grenadehologram grenadeshrapnel grenadeteargas grenadetollbroad lightning bombardment hobro martini grenade readyplayercanvas reviveblast robrocoptargetingsystem rocket launch airstrike Ash Brolliams BA_Broracus2 Blade BoondockBro Bro Dredd Bro Hard BroLee BroMax Brobocop Brochete Brodel Walker Broden Bromander Brominator BronanTheBrobarian BroniversalSoldier Brononymous Broveheart CherryBroling Col James Brodock DirtyHarry DoubleBroSeven EllenRipbro Indiana Brones MadMaxBrotansky McBrover Nebro Predabro Rambo SnakeBroSkin TankBro TheBrocketeer TheBrode TheBrofessional TheBrolander Time Bro Van Damme broyang expendabros/broc expendabros/broceasar expendabros/broneyross expendabros/bronnarjensen expendabros/leebroxmass expendabros/tollbroad expendabros/trentbroser brondlefly broshiptrooper suicidebro
Raw Resource Name Dump
[link]
Execute Functions
There is also a function type called ExecuteFunctions, you can access them by typing smokinggun in the main menu.
After you have done that the new trigger type should be available in the editor.
Execute Functions are case sensitive.
Recent iterations of this list are all possible thanks to SoupCalhoun.
===Units=== =Bros and some enemies= AddSpeedLeft AddSpeedRight AirDashUp Awake BurstChest ClearFireInput ClearAllInput CoverInAcid CreateFaderTrailInstance CreateSkeleton DestroyCharacter //destroys the character, doesn’t count as kill Disable DisConnectFaceHugger BrosMustFailToWin //used once in the Expandabros campaign HideAndDisableCharacter Kick Melt OpenParachute //doesn’t work on scouts, dogs, jetpacks or bigguys PlayAttackSound PlayAttractedSound PlayBackflipGruntSound PlayBassDropSoundSound PlayBleedSound PlayConfusedSound PlayDeathSound PlayDeathGargleSound PlayDecapitateSound PlayExitLadderSound PlayFallDamageSound PlayFireSound PlayGibSound PlayGreetingSound PlayHighFiveSound PlayJumpSound PlayLandSound PlayLaughterSound PlaySliceSound PlaySpecialSound PlayWallSound PressDashButton PressSpecial PressSpecial2 RecallBro RecoverFromInsemination ReducePockettedSpecialAmmo Reenable ReleaseRemoteControlCar RemoveAcid ResetSpecialAmmo RollOnLand RunUpwardDash SetAirDashLeftSpeed SetAirDashRightSpeed SetImmuneToOutOfBounds ShowAndEnableCharacter ShowCharacterInternal ShowStartBubble ShowKickBubble SilentDeath Start StartHighFive StartMelee Stun SuspendFromRope ThrowAirstrikeGrenade ThrowAlienPheromoneGrenade ThrowMechDropGrenade TimeSlowSpecialRPC Unrevive UseFire UsePockettedSpecial UseSpecial UseSteroids =Mooks= Death SkinUnit SquirtDecapitatedBlood =Mook Grenadier= DropDeathGrenade =Alien= GrowFromChestBurster //Custom alien spawn anim (call method on spawn or in EF if idle) =AlienSpawner= SpawnAlien =Dog= TransformIntoMegaDog //Transforms dog into big dog (1 frame), executefunction or via Call method on spawn =Sandworm= Activate Deactivate ExplodeWithinHead FireProjectile SetHeadDead ShowHurtMaterials StartSpitting SwallowGrenade =TerrorCrawler= QuickSpit =HellDog= GrowFromEgg =Hell Suicide Bomber= CreateFaderTrailInstance =Hell Trooper= Resurrect =Hell Boomer/Soul Catcher= SpawnMooksOnDeath GibMaggots =HellForceField= Start FadeForceField =LostSoul= ForceStartDiving =Warlock= ProjectileDied =Vehicles= BounceOnDeath FireWeapon InvokeDeath Land Start =MookDrillCarrier (vehicle 4)= Activate BloodyDrill StopDrilling //Make DrillRockets with the following Toggle Loop: //ON: Start, Loop: BounceOnDeath, InvokeDeath //OFF: Land =SatanMiniboss= AnimateForceField FinishReveal SetSatanStage2 StartDeathRattle StartFlameFiring =Satan Final Form= Start StopRising =Mook Mech/Tank Bro Tank= ForceJump PressDashButton PressSpecial ResetDamageAmounts ResetSpecialAmmo SetAmericaMaterials SetHurtMaterial SetUnhurtMaterial =Air Fortress= Start CrushGround DropSides RunThrusters RunStanding SpawnMook ===Enviromental=== =AlarmTower= Activate =Alien Grass= SuckIn =Boulder/Cage/Crate/Beehive= AssignBlockToMap ClearBlock ClearBlockOnRoll DamageGroundUnderneath Disturb ForceBurn HitUnits Land ResetBlock SetupBlockAtStart Start Weaken //Reset Blocks with sequence: ClearBlockOnRoll, ClearBlock, ResetBlock, AssignBlockToMap, Start, SetupBlockAtStart. //Rain boulders with loop Disturb and ResetBlock. =Chain (HangingDoodad)= Start //Resets broken chain. StrainChain =Checkpoint= ActivateInternal ReactivateInternal =ClonePod (vehicle 6)= Drop Disturb SetSpawnFrame SpawnMook =Cage= CollapseForced =Door= Close =Destructible Doodads= Collapse CreateBloodOnDeath CreateExplosion CreateLeafBurstDamaged CreateLeafBurstDeath FlipXRandom SetAlight_Local Start =Effects= Start //loop to increase drip rate. =Elevator= Collapse GoUp GoDown StartMoving StopElevator =Land Mine= SetupMines =MookDoor= SpawnMook Collapse DestroyDoor TriggerCollapse =Shifting Hell Block= StartCrushing StopCrushing =Spikes= MakeImpaleEffects =WallofGuns= Activate Retract =Zipline= ResetZipline ===Specific Bros=== =DoubleBroSeven= Put On Balaclava //without spaces, had to add them cause steam censorship =Brodator= TurnOnStealthMode SelfDestruct =Brocketeer= BlastOff AirDashLeft AirDashRight =Broden= ExplosiveEndToSpecialAttack =Brolander= PerformZap ReduceSpecialAmmo =Bronan= ShowMaxCharge =Anderbro Brode Lee= SetAirdashAvailable StopAirDashing AirDashLeft AirDashRight =SnakeBroskin= CreateHoloTrailInstance ActivateGlider =Hobro= Free ============= Variable Dependent Execute Functions ============= //Check the box that allows to set variables as parameters. //Variable typically determines duration of function or magnitude of direction. =Bros and some enemies= Blind Boost CreateElectricShockPuff FallDamage ForceFaceDirection RollOnto SetSpecialAmmoRPC Stun TempInvulnerability TimeBroBoost UseAttackJumpForceForSeconds =Boulder/Crate/Tyre= Push Rotate =Bronan/Brolander= CreateMinorGroundWave =HellForceField= SetLife =Door= Open =Mooks= DisableGravity EnableGravity ForgetPlayer =MookRiotShield= DisarmShield =Sandworm= SetPosition SetSpriteOrientations SetWormPositions StunSandworm =Vehicles= SetPosition SetSpriteTurn =Villager= ArmVillagerRPC
Using Variable Dependent Execute Function
First have a trigger use a Variable Action in order for the variable to be used:

Then have a trigger use an Execute Action and apply the variable to it by checking the box
“Use Scripted Value As Parameter” and inputting the variable name:

In this example the player is set to be invulnerable for 0 seconds, by setting variable “Zero” to 0, and applying that variable to the function “TempInvulnerability” will use it to determine the duration of the function. Other functions that work similarly include: “Stun” “Blind” “CreateMinorGroundWave”
Some functions determine which player or faction the object will effect, like “ArmVillagerRPC” or “ForgetPlayer”. Negative numbers can make evil villagers.
There are also functions that determine magnitude and direction with positive and negative numbers: “RollOnto” “Push” “Roll” “Open” “ForceFaceDirection”
Numbers greater than 1 may be needed for them to work.
Tools
Download the Broforce Level Tool here [www.dropbox.com]
Alternate link [drive.google.com]
The tool allows for decompressing and re-compressing the level files to make manual changes with a text editor of your choice (i recommend Notepad++ with the XML extension to refactor and highlight decompressed files).
/Edit: New Version, now with switch support.
There is a funciton that adds 3 triggers with 3 ExecuteFunctions each to every map. It also adds 3 ExecuteFunctions to every switch on every map, therefore unlocking access to create switch puzzles, or simple elevator call buttons.
Be advised that this is not necessary anymore, as you have the “smokinggun” cheatcode now, which is frankly more reliable 😉
Decompressed files give you advanced editing power.
Fe. it its possible to edit block spawning actions to spawn any block. An example level for that is linked in my thread (look at last section).
If you are worried about what the tool exactly does:
The level files of Broforce are compressed with a method to make them smaller (LZF), my tool simply uses a free library to decompress and compress them. Adding the triggers is simply doing the steps of hopping into a text editor and writing lots of lines manually, for you.
Finally, i have added functions to simply mass-spawn stuff etc, on an XML base.
Your published levels (or others) cant be opened with this tool.
Read the ReadMe to learn how to use it. Oh, and the blockSpawnReplace bat wants two coordinates that describe a box and will spawn in given foreground terrain via a trigger (background and doodads are still wip).
Guide Future & Tool updates
This guide is up to date for now, the tool is not, and might still get expanded on, but i have nothing sheduled on this right now.
Alternativly subscribe to this thread, i’ll post updates there as well:
[link]
Also give Soup a big shoutout as he did most of the work on this topic.
Greetings
Stolen