1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <Defs >
3+
4+ <CombatExtended .AmmoCategoryDef>
5+ <defName >AV_Toxic</defName >
6+ <label >Toxic</label >
7+ <description >Filled with tox gas, a caustic agent that burns the lungs and eyes. Continued exposure to it results in toxic buildup which can be lethal.</description >
8+ <advanced >true</advanced >
9+ </CombatExtended .AmmoCategoryDef>
10+
11+ <CombatExtended .AmmoCategoryDef>
12+ <defName >AV_Deployment</defName >
13+ <label >Deployment</label >
14+ <description >A shell containing with a dormant warurchin. It will activate on impact and attack any nearby creatures.</description >
15+ <advanced >true</advanced >
16+ </CombatExtended .AmmoCategoryDef>
17+
18+ <!-- Ammo Set -->
19+ <CombatExtended .AmmoSetDef>
20+ <defName >AmmoSet_81mmMortarShell_Utilitydirectfire</defName >
21+ <label >81mm mortar shells utility</label >
22+ <ammoTypes >
23+ <Shell_Firefoam >Bullet_81mmMortarShell_UtilityDirectfire_Firefoam</Shell_Firefoam >
24+ <Shell_Smoke >Bullet_81mmMortarShell_UtilityDirectfire_Smoke</Shell_Smoke >
25+ <Shell_Firefoam >Bullet_81mmMortarShell_UtilityDirectfire_Firefoam</Shell_Firefoam >
26+ <Shell_Smoke >Bullet_81mmMortarShell_UtilityDirectfire_Smoke</Shell_Smoke >
27+ <Shell_Toxic MayRequire =" Ludeon.RimWorld.Biotech" >Bullet_81mmMortarShell_UtilityDirectfire_Tox</Shell_Toxic >
28+ <Shell_Deadlife MayRequire =" Ludeon.RimWorld.Anomaly" >Bullet_81mmMortarShell_UtilityDirectfire_Deadlife</Shell_Deadlife >
29+ </ammoTypes >
30+ <isMortarAmmoSet >true</isMortarAmmoSet >
31+ </CombatExtended .AmmoSetDef>
32+
33+ <!-- Projectile -->
34+ <ThingDef Name =" Base81mmMortarShellUtilityDirectfire" ParentName =" BaseExplosiveBullet" Abstract =" true" >
35+ <thingClass >CombatExtended.ProjectileCE_Explosive</thingClass >
36+ <graphicData >
37+ <shaderType >TransparentPostLight</shaderType >
38+ <graphicClass >Graphic_Single</graphicClass >
39+ </graphicData >
40+ <projectile Class =" CombatExtended.ProjectilePropertiesCE" >
41+ <speed >80</speed >
42+ <soundExplode >MortarBomb_Explode</soundExplode >
43+ <flyOverhead >false</flyOverhead >
44+ <dropsCasings >false</dropsCasings >
45+ </projectile >
46+ </ThingDef >
47+
48+ <ThingDef ParentName =" Base81mmMortarShellUtilityDirectfire" >
49+ <defName >Bullet_81mmMortarShell_UtilityDirectfire_Firefoam</defName >
50+ <label >81mm mortar shell (Foam)</label >
51+ <graphicData >
52+ <texPath >Things/Projectile/Mortar/Firefoam</texPath >
53+ </graphicData >
54+ <projectile Class =" CombatExtended.ProjectilePropertiesCE" >
55+ <damageDef >Extinguish</damageDef >
56+ <suppressionFactor >0.0</suppressionFactor >
57+ <dangerFactor >0.0</dangerFactor >
58+ <explosionRadius >5</explosionRadius >
59+ <soundExplode >Explosion_EMP</soundExplode >
60+ <postExplosionSpawnThingDef >Filth_FireFoam</postExplosionSpawnThingDef >
61+ <postExplosionSpawnChance >1</postExplosionSpawnChance >
62+ <postExplosionSpawnThingCount >3</postExplosionSpawnThingCount >
63+ <applyDamageToExplosionCellsNeighbors >true</applyDamageToExplosionCellsNeighbors >
64+ <explosionEffect >ExtinguisherExplosion</explosionEffect >
65+ </projectile >
66+ </ThingDef >
67+
68+ <ThingDef ParentName =" Base81mmMortarShellUtilityDirectfire" >
69+ <defName >Bullet_81mmMortarShell_UtilityDirectfire_Smoke</defName >
70+ <label >81mm mortar shell (Smoke)</label >
71+ <graphicData >
72+ <texPath >Things/Projectile/Mortar/Smoke</texPath >
73+ </graphicData >
74+ <projectile Class =" CombatExtended.ProjectilePropertiesCE" >
75+ <damageDef >Smoke</damageDef >
76+ <suppressionFactor >0.0</suppressionFactor >
77+ <dangerFactor >0.0</dangerFactor >
78+ <explosionRadius >6</explosionRadius >
79+ <soundExplode >Explosion_EMP</soundExplode >
80+ <postExplosionGasType >BlindSmoke</postExplosionGasType >
81+ <preExplosionSpawnChance >1</preExplosionSpawnChance >
82+ <applyDamageToExplosionCellsNeighbors >true</applyDamageToExplosionCellsNeighbors >
83+ <explosionEffect >ExtinguisherExplosion</explosionEffect >
84+ </projectile >
85+ </ThingDef >
86+
87+ <ThingDef ParentName =" Base81mmMortarShellUtilityDirectfire" MayRequire =" Ludeon.RimWorld.Biotech" >
88+ <defName >Bullet_81mmMortarShell_UtilityDirectfire_Tox</defName >
89+ <label >81mm mortar shell (Toxic)</label >
90+ <graphicData >
91+ <texPath >Things/Projectile/Mortar/Toxic</texPath >
92+ </graphicData >
93+ <projectile Class =" CombatExtended.ProjectilePropertiesCE" >
94+ <damageDef >ToxGas</damageDef >
95+ <armorPenetrationSharp >0</armorPenetrationSharp >
96+ <armorPenetrationBlunt >0</armorPenetrationBlunt >
97+ <explosionRadius >0.1</explosionRadius >
98+ <soundExplode >ToxicShellLanded</soundExplode >
99+ <postExplosionSpawnThingDef >Shell_Toxic_Releasing</postExplosionSpawnThingDef >
100+ <postExplosionSpawnThingDefWater >Shell_Toxic_Releasing_Water</postExplosionSpawnThingDefWater >
101+ </projectile >
102+ </ThingDef >
103+
104+ <ThingDef ParentName =" Base81mmMortarShellUtilityDirectfire" MayRequire =" Ludeon.RimWorld.Anomaly" >
105+ <defName >Bullet_81mmMortarShell_UtilityDirectfire_Deadlife</defName >
106+ <label >81mm mortar shell (Deadlife)</label >
107+ <graphicData >
108+ <texPath >Things/Projectile/Mortar/Deadlife</texPath >
109+ <graphicClass >Graphic_Single</graphicClass >
110+ </graphicData >
111+ <projectile Class =" CombatExtended.ProjectilePropertiesCE" >
112+ <damageDef >DeadlifeDust</damageDef >
113+ <armorPenetrationSharp >0</armorPenetrationSharp >
114+ <armorPenetrationBlunt >0</armorPenetrationBlunt >
115+ <explosionRadius >0.1</explosionRadius >
116+ <soundExplode >ToxicShellLanded</soundExplode >
117+ <postExplosionSpawnThingDef >Shell_Deadlife_Releasing</postExplosionSpawnThingDef >
118+ </projectile >
119+ </ThingDef >
120+
121+ <!-- Recipes -->
122+
123+ <!-- Waste Shell Recipe -->
124+ <RecipeDef ParentName =" ArtilleryAmmoRecipeBase" >
125+ <defName >MakeShell_81mmMortar_Waste</defName >
126+ <label >make 81mm (waster) mortar shells x5</label >
127+ <description >Craft 5 81mm (waster) mortar shells.</description >
128+ <jobString >Making 81mm (waster) mortar shells.</jobString >
129+ <researchPrerequisites >
130+ <li >AV_MechanoidShells</li >
131+ </researchPrerequisites >
132+ <workAmount >10600</workAmount >
133+ <ingredients >
134+ <li >
135+ <filter >
136+ <thingDefs >
137+ <li >Steel</li >
138+ </thingDefs >
139+ </filter >
140+ <count >54</count >
141+ </li >
142+ <li >
143+ <filter >
144+ <thingDefs >
145+ <li >AV_CompressedWaste</li >
146+ </thingDefs >
147+ </filter >
148+ <count >5</count >
149+ </li >
150+ <li >
151+ <filter >
152+ <thingDefs >
153+ <li >ComponentIndustrial</li >
154+ </thingDefs >
155+ </filter >
156+ <count >2</count >
157+ </li >
158+ </ingredients >
159+ <fixedIngredientFilter >
160+ <thingDefs >
161+ <li >Steel</li >
162+ <li >AV_CompressedWaste</li >
163+ <li >ComponentIndustrial</li >
164+ </thingDefs >
165+ </fixedIngredientFilter >
166+ <products >
167+ <Shell_81mmMortar_Waste >5</Shell_81mmMortar_Waste >
168+ </products >
169+ </RecipeDef >
170+
171+ <!-- Mechanoid Deployment Shell Recipe -->
172+ <RecipeDef ParentName =" ArtilleryAmmoRecipeBase" >
173+ <defName >MakeShell_81mmMortar_Deployment</defName >
174+ <label >make 81mm mechanoid deployment mortar shells x5</label >
175+ <description >Craft 5 81mm mechanoid deployment mortar shells.</description >
176+ <jobString >Making 81mm mechanoid deployment mortar shells.</jobString >
177+ <researchPrerequisites >
178+ <li >AV_MechanoidShells</li >
179+ </researchPrerequisites >
180+ <workAmount >10600</workAmount >
181+ <ingredients >
182+ <li >
183+ <filter >
184+ <thingDefs >
185+ <li >Steel</li >
186+ </thingDefs >
187+ </filter >
188+ <count >150</count >
189+ </li >
190+ <li >
191+ <filter >
192+ <thingDefs >
193+ <li >Chemfuel</li >
194+ </thingDefs >
195+ </filter >
196+ <count >25</count >
197+ </li >
198+ <li >
199+ <filter >
200+ <thingDefs >
201+ <li >ComponentIndustrial</li >
202+ </thingDefs >
203+ </filter >
204+ <count >1</count >
205+ </li >
206+ <li >
207+ <filter >
208+ <thingDefs >
209+ <li >SubcoreBasic</li >
210+ </thingDefs >
211+ </filter >
212+ <count >1</count >
213+ </li >
214+ </ingredients >
215+ <fixedIngredientFilter >
216+ <thingDefs >
217+ <li >Steel</li >
218+ <li >Chemfuel</li >
219+ <li >SubcoreBasic</li >
220+ <li >ComponentIndustrial</li >
221+ </thingDefs >
222+ </fixedIngredientFilter >
223+ <products >
224+ <Shell_81mmMortar_Deployment >5</Shell_81mmMortar_Deployment >
225+ </products >
226+ </RecipeDef >
227+
228+ <!-- Waste Shell Ammo Definition -->
229+ <ThingDef Class =" CombatExtended.AmmoDef" ParentName =" 81mmMortarShellBaseCraftableBase" >
230+ <defName >Shell_81mmMortar_Waste</defName >
231+ <label >waster shell</label >
232+ <description >An artillery shell containing compressed toxic waste. When fired, it will stick into the ground and pollute the area while releasing tox gas for some time before expiring.\n\nTox gas burns the lungs and eyes, causing a temporary shortness of breath and reduction in sight. Continued exposure to tox gas results in toxic buildup that can be lethal.</description >
233+ <graphicData >
234+ <texPath >Things/Item/Resource/Shell/AV_ShellWaster</texPath >
235+ <graphicClass >Graphic_StackCount</graphicClass >
236+ </graphicData >
237+ <statBases >
238+ <Mass >5</Mass >
239+ <Bulk >8.34</Bulk >
240+ </statBases >
241+ <ammoClass >AV_Toxic</ammoClass >
242+ <detonateProjectile >Bullet_81mmMortarShell_Waster</detonateProjectile >
243+ <comps >
244+ <li Class =" CompProperties_Dissolution" >
245+ <dissolutionAfterDays >150</dissolutionAfterDays >
246+ <dissolutinFactorIndoors >0.1</dissolutinFactorIndoors >
247+ <!-- instantly explodes when on 0-->
248+ <dissolutionFactorRain >2</dissolutionFactorRain >
249+ </li >
250+ <li Class =" CompProperties_DissolutionEffectPollution" >
251+ <cellsToPollutePerDissolution >18</cellsToPollutePerDissolution >
252+ <tilePollutionPerDissolution >0.0005</tilePollutionPerDissolution >
253+ <waterTilePollutionFactor >24</waterTilePollutionFactor >
254+ </li >
255+ <li Class =" CompProperties_GasOnDamage" >
256+ <type >ToxGas</type >
257+ <damageFactor >6</damageFactor >
258+ <useStackCountAsFactor >true</useStackCountAsFactor >
259+ </li >
260+ <li >
261+ <compClass >CompDissolutionEffect_Goodwill</compClass >
262+ </li >
263+ </comps >
264+ </ThingDef >
265+
266+ <!-- Mechanoid Deployment Shell Ammo Definition -->
267+ <ThingDef Class =" CombatExtended.AmmoDef" ParentName =" 81mmMortarShellBaseCraftableBase" >
268+ <defName >Shell_81mmMortar_Deployment</defName >
269+ <label >mechanoid deployment shell</label >
270+ <description >A shell filled with a sleeping warurchin. On impact it will activate and hunt down any hostile creatures.\n\nWhile this makes a good surprise attack, their data processing is limited which makes them see nearly everybody as hostile.</description >
271+ <graphicData >
272+ <texPath >Things/Item/Resource/Shell/AV_ShellDeployment</texPath >
273+ <graphicClass >Graphic_StackCount</graphicClass >
274+ </graphicData >
275+ <statBases >
276+ <Mass >5</Mass >
277+ <Bulk >8.34</Bulk >
278+ </statBases >
279+ <ammoClass >AV_Deployment</ammoClass >
280+ <detonateProjectile >Bullet_81mmMortarShell_Deployment</detonateProjectile >
281+ <tradeTags >
282+ <li >AV_Mechtech</li >
283+ <li >AV_Mechtech_Spacer</li >
284+ </tradeTags >
285+ </ThingDef >
286+
287+ <!-- Waste Shell Projectile -->
288+ <ThingDef ParentName =" Base81mmMortarShell" >
289+ <defName >Bullet_81mmMortarShell_Waster</defName >
290+ <label >waste shell</label >
291+ <thingClass >CombatExtended.ProjectileCE_Explosive</thingClass >
292+ <graphicData >
293+ <texPath >Things/Projectile/ShellHighExplosive</texPath >
294+ <graphicClass >Graphic_Single</graphicClass >
295+ <shaderType >TransparentPostLight</shaderType >
296+ </graphicData >
297+ <projectile Class =" CombatExtended.ProjectilePropertiesCE" >
298+ <damageDef >ToxGas</damageDef >
299+ <explosionRadius >0.1</explosionRadius >
300+ <flyOverhead >true</flyOverhead >
301+ <soundHitThickRoof >Artillery_HitThickRoof</soundHitThickRoof >
302+ <soundExplode >ToxicShellLanded</soundExplode >
303+ <soundImpactAnticipate >MortarRound_PreImpact</soundImpactAnticipate >
304+ <soundAmbient >MortarRound_Ambient</soundAmbient >
305+ <postExplosionSpawnThingDef >AV_Shell_Toxic_Releasing</postExplosionSpawnThingDef >
306+ <postExplosionSpawnThingDefWater >AV_Shell_Toxic_Releasing_Water</postExplosionSpawnThingDefWater >
307+ </projectile >
308+ </ThingDef >
309+
310+ <!-- Mechanoid Deployment Shell Projectile (Proper Pawn Spawning Implementation) -->
311+ <ThingDef ParentName =" Base81mmMortarShell" >
312+ <defName >Bullet_81mmMortarShell_Deployment</defName >
313+ <label >mechanoid deployment shell</label >
314+ <thingClass >CombatExtended.ProjectileCE_SpawnPawnkind</thingClass >
315+ <graphicData >
316+ <texPath >Things/Projectile/ShellHighExplosive</texPath >
317+ <graphicClass >Graphic_Single</graphicClass >
318+ <shaderType >TransparentPostLight</shaderType >
319+ </graphicData >
320+ <projectile Class =" CombatExtended.ProjectilePropertiesCE" >
321+ <damageDef >Smoke</damageDef >
322+ <explosionRadius >0.1</explosionRadius >
323+ <flyOverhead >true</flyOverhead >
324+ <soundHitThickRoof >Artillery_HitThickRoof</soundHitThickRoof >
325+ <soundExplode >MortarBomb_Explode</soundExplode >
326+ <soundImpactAnticipate >MortarRound_PreImpact</soundImpactAnticipate >
327+ <soundAmbient >MortarRound_Ambient</soundAmbient >
328+ <!-- Proper pawn spawning properties -->
329+ <spawnsPawnKind >Mech_WarUrchin</spawnsPawnKind >
330+ <tryAdjacentFreeSpaces >true</tryAdjacentFreeSpaces >
331+ <alwaysHostile >true</alwaysHostile >
332+ <!-- Post-explosion effects -->
333+ <postExplosionSpawnThingDef >AV_Shell_Deploy_Releasing</postExplosionSpawnThingDef >
334+ <postExplosionSpawnThingDefWater >AV_Shell_Deploy_Releasing_Water</postExplosionSpawnThingDefWater >
335+ <shellingProps >
336+ <damage >0</damage >
337+ </shellingProps >
338+ </projectile >
339+ </ThingDef >
340+
341+ </Defs >
0 commit comments