DarkflameServer/dGame/dBehaviors
David Markowitz a2ca273370
Cleanup behavior bitstream reads (#888)
* Add failArmor server side

Address out of bounds reading in behavior

Address the basicAttackBehavior reading out of bounds memory and reading bits that didnt exist, which occasionally caused crashes and also caused the behavior to do undefined behavior due to the bad reads.

Tested that attacking a wall anywhere with a projectile now does not crash the game.  Tested with logs that the behavior correctly returned when there were no allocated bits or returned when other states were met.

Add back logs and add fail handle

Remove comment block

Revert "Add back logs and add fail handle"

This reverts commit db19be0906fc8bf35bf89037e2bfba39f5ef9c0c.

Split out checks

* Cleanup Behavior streams
2022-12-16 15:23:02 -06:00
..
AirMovementBehavior.cpp Cleanup behavior bitstream reads (#888) 2022-12-16 15:23:02 -06:00
AirMovementBehavior.h Cleanup behavior bitstream reads (#888) 2022-12-16 15:23:02 -06:00
AndBehavior.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
AndBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
ApplyBuffBehavior.cpp format codebase 2022-07-28 08:39:57 -05:00
ApplyBuffBehavior.h format codebase 2022-07-28 08:39:57 -05:00
AreaOfEffectBehavior.cpp Cleanup behavior bitstream reads (#888) 2022-12-16 15:23:02 -06:00
AreaOfEffectBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
AttackDelayBehavior.cpp Cleanup behavior bitstream reads (#888) 2022-12-16 15:23:02 -06:00
AttackDelayBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
BasicAttackBehavior.cpp Fix crash in BasicAttackBehavior (#862) 2022-12-15 22:10:58 -08:00
BasicAttackBehavior.h Fix crash in BasicAttackBehavior (#862) 2022-12-15 22:10:58 -08:00
Behavior.cpp Add Remove Buff Behavior and patch infinite use Imagination Backpack(#845) 2022-11-27 16:40:14 -08:00
Behavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
BehaviorBranchContext.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
BehaviorBranchContext.h convert to unix line endings 2022-08-05 22:01:59 -05:00
BehaviorContext.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
BehaviorContext.h convert to unix line endings 2022-08-05 22:01:59 -05:00
BehaviorSlot.h convert to unix line endings 2022-08-05 22:01:59 -05:00
BehaviorTemplates.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
BehaviorTemplates.h convert to unix line endings 2022-08-05 22:01:59 -05:00
BlockBehavior.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
BlockBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
BuffBehavior.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
BuffBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
CarBoostBehavior.cpp format codebase 2022-07-28 08:39:57 -05:00
CarBoostBehavior.h format codebase 2022-07-28 08:39:57 -05:00
ChainBehavior.cpp Cleanup behavior bitstream reads (#888) 2022-12-16 15:23:02 -06:00
ChainBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
ChangeOrientationBehavior.cpp format codebase 2022-07-28 08:39:57 -05:00
ChangeOrientationBehavior.h format codebase 2022-07-28 08:39:57 -05:00
ChargeUpBehavior.cpp Cleanup behavior bitstream reads (#888) 2022-12-16 15:23:02 -06:00
ChargeUpBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
ClearTargetBehavior.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
ClearTargetBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
CMakeLists.txt Add Remove Buff Behavior and patch infinite use Imagination Backpack(#845) 2022-11-27 16:40:14 -08:00
DamageAbsorptionBehavior.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
DamageAbsorptionBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
DamageReductionBehavior.cpp format codebase 2022-07-28 08:39:57 -05:00
DamageReductionBehavior.h format codebase 2022-07-28 08:39:57 -05:00
DurationBehavior.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
DurationBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
EmptyBehavior.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
EmptyBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
EndBehavior.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
EndBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
ForceMovementBehavior.cpp Cleanup behavior bitstream reads (#888) 2022-12-16 15:23:02 -06:00
ForceMovementBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
HealBehavior.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
HealBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
ImaginationBehavior.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
ImaginationBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
ImmunityBehavior.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
ImmunityBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
InterruptBehavior.cpp Cleanup behavior bitstream reads (#888) 2022-12-16 15:23:02 -06:00
InterruptBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
JetPackBehavior.cpp Implement flying command (#713) 2022-08-06 01:19:34 -07:00
JetPackBehavior.h format codebase 2022-07-28 08:39:57 -05:00
KnockbackBehavior.cpp Cleanup behavior bitstream reads (#888) 2022-12-16 15:23:02 -06:00
KnockbackBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
LootBuffBehavior.cpp format codebase 2022-07-28 08:39:57 -05:00
LootBuffBehavior.h format codebase 2022-07-28 08:39:57 -05:00
MovementSwitchBehavior.cpp Cleanup behavior bitstream reads (#888) 2022-12-16 15:23:02 -06:00
MovementSwitchBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
NpcCombatSkillBehavior.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
NpcCombatSkillBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
OverTimeBehavior.cpp format codebase 2022-07-28 08:39:57 -05:00
OverTimeBehavior.h format codebase 2022-07-28 08:39:57 -05:00
PlayEffectBehavior.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
PlayEffectBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
ProjectileAttackBehavior.cpp Cleanup behavior bitstream reads (#888) 2022-12-16 15:23:02 -06:00
ProjectileAttackBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
PullToPointBehavior.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
PullToPointBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
RemoveBuffBehavior.cpp Add Remove Buff Behavior and patch infinite use Imagination Backpack(#845) 2022-11-27 16:40:14 -08:00
RemoveBuffBehavior.h Add Remove Buff Behavior and patch infinite use Imagination Backpack(#845) 2022-11-27 16:40:14 -08:00
RepairBehavior.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
RepairBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
SkillCastFailedBehavior.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
SkillCastFailedBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
SkillEventBehavior.cpp format codebase 2022-07-28 08:39:57 -05:00
SkillEventBehavior.h format codebase 2022-07-28 08:39:57 -05:00
SpawnBehavior.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
SpawnBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
SpawnQuickbuildBehavior.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
SpawnQuickbuildBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
SpeedBehavior.cpp format codebase 2022-07-28 08:39:57 -05:00
SpeedBehavior.h format codebase 2022-07-28 08:39:57 -05:00
StartBehavior.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
StartBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
StunBehavior.cpp Cleanup behavior bitstream reads (#888) 2022-12-16 15:23:02 -06:00
StunBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
SwitchBehavior.cpp Cleanup behavior bitstream reads (#888) 2022-12-16 15:23:02 -06:00
SwitchBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
SwitchMultipleBehavior.cpp Cleanup behavior bitstream reads (#888) 2022-12-16 15:23:02 -06:00
SwitchMultipleBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
TacArcBehavior.cpp Cleanup behavior bitstream reads (#888) 2022-12-16 15:23:02 -06:00
TacArcBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
TargetCasterBehavior.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
TargetCasterBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00
TauntBehavior.cpp format codebase 2022-07-28 08:39:57 -05:00
TauntBehavior.h format codebase 2022-07-28 08:39:57 -05:00
VentureVisionBehavior.cpp format codebase 2022-07-28 08:39:57 -05:00
VentureVisionBehavior.h format codebase 2022-07-28 08:39:57 -05:00
VerifyBehavior.cpp convert to unix line endings 2022-08-05 22:01:59 -05:00
VerifyBehavior.h convert to unix line endings 2022-08-05 22:01:59 -05:00