branchrust_reboot/main/turret_paintball_fixescancel
5 Commits over 28 Days - 0.01cph!
Fix profiler samples in Find and TryGetEntity
- Fix paintball impact effects not always behaving with turrets
- "Impotent" projectiles created just for effects for non instigating clients now know about their source weapon
- Cleanup EntityRealm::TryGetEntity
- Fix paintball impacts instigated by the local player not ignoring max spawn distance
Fixes for how paintball gun behaves with turrets:
- Damage is now increased when a paintball gun in a turret shoots someone wearing paintball overalls, same way when shot by another player wearing overalls
- Last applied paintball colour is now retained when placing the paintball gun in a turret
Misc changes:
- Removed paintball damage scaling in code for hitting different entity types, instead use the protection property assets
- HeldEntity cached item is now usable on both client/server
- Add sourceWeapon to projectiles, so the client can retrieve the source weapon entity from locally instigated projectiles
- HitInfo is now Disposable, same pattern as PooledList
- Remove various unnecessary HitInfo allocations