mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-06 19:01:06 +03:00
Fix blade damaging player when initially disabled.
This commit is contained in:
parent
0a7fe24994
commit
e220c649e5
1 changed files with 2 additions and 2 deletions
|
@ -32,8 +32,8 @@ namespace TEN::Entities::Traps
|
|||
SetAnimation(item, WALL_MOUNTED_BLADE_ANIM_IDLE);
|
||||
|
||||
// Used for GenericSphereBoxCollision.
|
||||
item.ItemFlags[0] = WALL_MOUNTED_BLADE_JOINT;
|
||||
item.ItemFlags[3] = WALL_MOUNTED_BLADE_HARM_DAMAGE;
|
||||
item.ItemFlags[0] = WALL_MOUNTED_BLADE_JOINT; // Damaging mesh joint.
|
||||
item.ItemFlags[3] = 0; // Set the Damage initially to 0 to avoid player being damaged when the blade is disabled.
|
||||
item.ItemFlags[4] = 1; // NOTE: avoid the blade pushing lara in GenericSphereBoxCollision() !
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue