RimWorld

RimWorld

The Frying Pan!
Uncertainty Jul 27, 2020 @ 12:14pm
Deflection XML Example
<li Class="CompDeflector.CompProperties_Deflector"> <baseDeflectChance>0.40</baseDeflectChance> <useManipulationInCalc>true</useManipulationInCalc> <useSkillInCalc>true</useSkillInCalc> <deflectSound>PAN</deflectSound> <deflectSkill>Melee</deflectSkill> <deflectRatePerSkillPoint>0.015</deflectRatePerSkillPoint> <canReflect>true</canReflect> <reflectSkill>Melee</reflectSkill> <reflectRatePerSkillPoint>3</reflectRatePerSkillPoint> <DeflectVerb Class="VerbProperties"> <verbClass>Verb_Shoot</verbClass> <hasStandardCommand>true</hasStandardCommand> <defaultProjectile>Projectile_PanShoot</defaultProjectile> <warmupTime>0</warmupTime> <range>40</range> <muzzleFlashScale>9</muzzleFlashScale> </DeflectVerb>

Should be like this in xml
Last edited by Uncertainty; Aug 8, 2020 @ 10:37pm
< >
Showing 1-4 of 4 comments
Gunmar  [developer] Jul 28, 2020 @ 7:02am 
@BUTTERSKY11

Thank you so much!
Also, I set up Projectile_PanShoot using the jecstools author's mod "Star Wars - Fully Functional Lightsabers" as a reference, and it worked well.

I would like to ask you to tell me something.
I believe reflectRatePerSkillPoint is something that shoots back at an opponent who shoots at you, is this a 3% increase in probability per melee skill point?
Uncertainty Jul 28, 2020 @ 5:17pm 
this.baseDeflectChance + this.deflectRatePerSkillPoint
It seems like it, otherwise it would of been a 0.3 chance for you to deflect. You should test to make sure.
Gunmar  [developer] Jul 29, 2020 @ 3:50am 
<li Class="CompDeflector.CompProperties_Deflector">
<baseDeflectChance>0.15</baseDeflectChance>
<useManipulationInCalc>true</useManipulationInCalc>
<useSkillInCalc>true</useSkillInCalc>
<deflectSound>PAN</deflectSound>
<deflectSkill>Melee</deflectSkill>
<deflectRatePerSkillPoint>0.0075</deflectRatePerSkillPoint>
<canReflect>true</canReflect>
<reflectSkill>Melee</reflectSkill>
<reflectRatePerSkillPoint>3</reflectRatePerSkillPoint>
<DeflectVerb Class="VerbProperties">
<verbClass>Verb_Shoot</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<defaultProjectile>Projectile_PanShoot</defaultProjectile>
<warmupTime>0</warmupTime>
<range>24</range>
<muzzleFlashScale>9</muzzleFlashScale>
</DeflectVerb>
</li>

This is what I did for now.
I left <reflectRatePerSkillPoint> at 3 without modifying it too much.
The <deflectSound> was able to specify what it needed from SoundDefs in the core.
For now, I'm going to upload the mod in this way.
Gunmar  [developer] Jul 29, 2020 @ 3:54am 
Thank you so much for your help.
I am so grateful to you for being so kind to me as a beginner.
< >
Showing 1-4 of 4 comments
Per page: 1530 50