Added Assault,Defender,Sniper Components,Entities. Added ShieldAbility,Sprintability-Component (not implemented). Changed BoostSystem to use a childed Boost to the player. All friendly fire is 0 damage.

This commit is contained in:
verysecrethero
2016-02-18 10:40:09 +01:00
parent c3ed429377
commit 7f489b3569
19 changed files with 125 additions and 32 deletions
@@ -385,11 +385,10 @@ bool AssaultWeaponBehaviour::shoot(double damage)
}
// Do Not Check for friendly fire
//// Check for friendly fire
//if ((ComponentInfo::EnumType)victim["Team"]["Team"] == (ComponentInfo::EnumType)m_Player["Team"]["Team"]) {
// return false;
//}
// BoostUpdate: If friendly fire - reduce damage to 0
if ((ComponentInfo::EnumType)victim["Team"]["Team"] == (ComponentInfo::EnumType)m_Player["Team"]["Team"]) {
damage = 0;
}
// Deal damage!
Events::PlayerDamage ePlayerDamage;