Bullet Type IDs
An Bullet Type ID (Also known as Act ID or bullet code) is a number that defines an Bullet's type.
A table of default Bullet properties are stored in a
bullet.tbl file in the data folder. You may edit this table with your favorite Cave Story editor. When Bullets of a set type are spawned they will initially use properties from their Bullet Table entry, although these properties can be changed for Bullets with scripting at any time.
Some vanilla Bullets change their damage or other features gotten from the Bullet Table dynamically. Changing the Bullet Table properties on these Bullet will most likely have little effect.
Bullet Type reference
|Bullet Type ID
|Missile Launcher Rocket
|Missile Launcher Explosion
|Bubbline Level 3 Thorns
|Blade Level 3 Slashes
|Falling Spike (In "Egg Corridor?")
|Super Missile Launcher Rocket
|Super Missile Launcher Explosion
ModCS allows you to override an Bullet type's act code. If a function in the
ModCS.Bullet.Act array is defined with the index
X is the Bullet Type ID of the Bullet Type you want to override) in your Lua script the game will run that function instead of the built-in Bullet act code. A ModCS.Bullet will be passed as the first argument of the function when it's called.
This example will set the Rect of Bullet Type 1 (The Snake Level 1 Bullet) to 16,0,32,16.
1 2 3