Editing
Modding
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Reference: weapon stats == New weapons are added in <code>gml_GlobalScript_bStatInitLevel1</code> by copying an existing weapon's block. Increment <code>gunnum</code> (<code>gunnum += 1</code>) above every new weapon. <div class="dw-shot" style="width:624px">https://pix-equivalent-burst-tested.trycloudflare.com/extensions/DownwellTheme/resources/modding/img56.png</div> Most stats are arrays of two values: <code>[gunnum][0]</code> applies '''without gem high''', <code>[gunnum][1]</code> '''with gem high''' (typically slightly stronger). {| class="wikitable" ! Stat !! Meaning |- | <code>bStatName</code> || Pickup name, quoted, usually capitalised, e.g. <code>"NOPPY"</code> |- | <code>bStatGunSprite</code> || Letter shown on the collectible: position in the alphabet minus one (11 = "L") |- | <code>bStatObject</code> || Bullet object index: 261 for MACHINEGUN/SHOTGUN/TRIPLE/PUNCHER/BURST/NOPPY, 260 for LASER |- | <code>bStatBulletSprite</code> || Bullet sprite index (LASER: 466 normal, 465 gem high) |- | <code>bStatSound</code> || Firing sound index (LASER: 20 normal, 21 gem high) |- | <code>bStatMuzzle</code> || Muzzle-flash sprite index (SHOTGUN: 603 normal, 602 gem high) |- | <code>bStatConRate</code> || Charge consumed per shot |- | <code>bStatRof</code> || Rate of fire; lower is faster; negatives appear to disable it |- | <code>bStatRecoil</code> || Vertical speed lost when firing |- | <code>bStatScreenShake</code> / <code>bStatScreenShakeDur</code> || Screen-shake strength / duration |- | <code>bStatDelayKill</code> || Unclear; rapid-fire weapons set 1 |- | <code>bStatBurst</code> || Burst-fire flag; only SHOTGUN and BURST set 1 |- | <code>bStatBurstRate</code> || Delay between burst bullets; lower is faster |- | <code>bStatBurstAmount</code> || Bullets per trigger pull |- | <code>bStatDamage</code> || Damage per bullet (MACHINEGUN: 9 normal, 15 gem high) |- | <code>bStatSpeed</code> || Bullet speed |- | <code>bStatAccuracy</code> || Random spread |- | <code>bStatPierce</code> || 1 = bullets pass through enemies/objects while damaging them (LASER) |- | <code>bStatWave</code> || Unused |- | <code>bStatExplode</code> || Unused by vanilla; set 1 and every bullet explodes; balance accordingly |- | <code>bStatRangeRandom</code> / <code>bStatRangeTimer</code> || Bullet lifetime and its randomisation (how SHOTGUN pellets vanish unevenly) |- | <code>bStatSpType</code> || Appears to control TRIPLE's three-bullet spawn |- | <code>bStatSpTy1</code>β<code>3</code> || Undetermined; copy from the closest vanilla weapon |- | <code>bStatAimAngleAccl</code> / <code>Dccl</code> / <code>Limit</code> || Aim rotation speed/deceleration/max angle; only NOPPY aims (limit 25) |} [[Category:Modding]]
Summary:
Please note that all contributions to Downwiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Downwiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information
Community
r/Downwell
Downwell Discord