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 428: | Line 428: | ||
===Burstfire=== | ===Burstfire=== | ||
− | Some guns, including the [[Assault | + | 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 | + | 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 | + | 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"> |