Created my own alternative to Helghast's ellipsoid collision laugh

The problem with Helghat's snippet was, that removing entities used to cause pointer errors, and I couldn't really figer out how to remove them from structure list. So I decided to create my own version based on his simple idea, to get the closest NPC and push it away, with few improvement. I handle everything (all npcs) in one loop (thank's to Superku for his wonderful idea) and I check for special skill NPC_PUSH to make pushable 'level' + only NPC with FLAG8 set can push others. I'm planning to use this in one of my future projects, where bigger enemies will make their way straight to the player through the crowd grin

Greets!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung