Editing Modding Tutorials/Weapons Guns

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.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 157: Line 157:
 
| <drawGUIOverlay> || ''boolean'' || Whether GUI will show up when you select this thing.
 
| <drawGUIOverlay> || ''boolean'' || Whether GUI will show up when you select this thing.
 
|-
 
|-
| &lt;tickerType&gt; || Never<br/>Normal<br/>... || Whether this thing has a C# Tick() function; whether something happens to the thing every in-game [[Tick]].
+
| &lt;tickerType%gt; || Never<br/>Normal<br/>... || Whether this thing has a C# Tick() function; whether something happens to the thing every in-game [[Tick]].
 
|-
 
|-
 
| &lt;inspectorTabs&gt; || ''ITab list'' || A list of ITabs that will show up in the inspector when you select this item. These ITabs are for example the "Bills" buttons (ITab_Bills) and the art description (ITab_Art).
 
| &lt;inspectorTabs&gt; || ''ITab list'' || A list of ITabs that will show up in the inspector when you select this item. These ITabs are for example the "Bills" buttons (ITab_Bills) and the art description (ITab_Art).
Line 174: Line 174:
 
===Source===
 
===Source===
  
It's not recommended to edit these parents. A recent copy of them can be taken from ''../Mods/Core/Defs/ThingDefs/Weapons_Guns.xml'', and the RimWorld834Win (Version 0.11.834) version is shown below:<br/>
+
It's not recommended to edit these parents. A recent copy of them can be taken from ''../Mods/Core/Defs/ThingDefs/Weapons_Guns.xml'', and the RimWorld834Win ([[version/0.11.834|Alpha 11]]) version is shown below:<br/>
 
<source lang="xml"><ThingDef Name="BaseGun" Abstract="True">
 
<source lang="xml"><ThingDef Name="BaseGun" Abstract="True">
 
<category>Item</category>
 
<category>Item</category>
Line 428: Line 428:
 
===Burstfire===
 
===Burstfire===
  
Some guns, including the [[Assault rifle]] use the following code to add burstfire:<br/>
+
Some guns, including the [[Assault Rifle]] use the following code to add burstfire:<br/>
  
 
<source lang="xml"><ThingDef ParentName="BaseHumanGun">
 
<source lang="xml"><ThingDef ParentName="BaseHumanGun">
Line 443: Line 443:
 
===Sniper rifles===
 
===Sniper rifles===
  
The [[Sniper rifle]] is only used by specific [[Raider]]s, and won't be used by the rest. This is because of the following code:<br/>
+
The [[Sniper Rifle]] is only used by specific [[Raider]]s, and won't be used by the rest. This is because of the following code:<br/>
  
 
<source lang="xml"><ThingDef ParentName="BaseHumanGun">
 
<source lang="xml"><ThingDef ParentName="BaseHumanGun">
Line 496: Line 496:
 
===Spacer technology===
 
===Spacer technology===
  
Guns like the [[Charge rifle]] only spawn on pawns with Spacer technology:<br/>
+
Guns like the [[Charge Rifle]] only spawn on pawns with Spacer technology:<br/>
  
 
<source lang="xml"><ThingDef ParentName="BaseHumanGun">
 
<source lang="xml"><ThingDef ParentName="BaseHumanGun">
Line 531: Line 531:
 
</ThingDef></source><br/>
 
</ThingDef></source><br/>
  
[[Mechanoid#Centipede|Centipedes]] will spawn with MechanoidGunHeavy weaponry. Heavy raiders will spawn with GunHeavy. The equippedStatOffsets of MoveSpeed of -0.25 slows its wearer down by 0.25 c/s<br/><br/>
+
[[Mechanoid#Centipede|Centipedes]] will spawn with MechanoidGunHeavy weaponry. Heavy raiders will spawn with GunHeavy. The equippedStatOffsets of MoveSpeed of -0.25 slows its wearer down by 25%.<br/><br/>
  
 
===Doomsday rocket===
 
===Doomsday rocket===

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, 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. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)