Fixes to projectiles going through walls:
- Continuous collision detection (body.IsBullet) is disabled when the body is moving slow enough, not immediately when it hits something. - The prismatic joint that sticks projectiles to walls/characters stays active for a minimum of 1 s to prevent the projectile from immediately overshooting the joint limits and falling off (usually at the wrong side of a wall/door it hit). - Separate properties for determining which types of bodies the projectile can stick to (character/structure/item). - Spears and syringes only stick to characters. - Increased syringe launch impulse. Closes #122
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
<Containable name="chem"/>
|
||||
</ItemContainer>
|
||||
|
||||
<Projectile launchimpulse="10.0" doesstick="true">
|
||||
<Projectile launchimpulse="20.0" sticktocharacters="true">
|
||||
<Attack damage="5" bleedingdamage="0.2" structuredamage="1" damagetype="Blunt" stun="0.1" targetforce="5"/>
|
||||
<StatusEffect type="OnImpact" target="Contained, Character" Condition="-50.0" disabledeltatime="true" >
|
||||
<sound file="Content/Items/Medical/syringe.ogg" range="500"/>
|
||||
|
||||
Reference in New Issue
Block a user