rehlds/ReAPI

Add natives from: `IsInsideCloudSmoke` & `IsLineBlockedBySmoke`

Opened this issue · 0 comments

With this natives, more features can be used by customized smokegrenades.

https://github.com/s1lentq/ReGameDLL_CS/blob/f57d28fe721ea4d57d10c010d15d45f05f2f5bad/regamedll/game_shared/bot/bot_manager.cpp#L306-L336

https://github.com/s1lentq/ReGameDLL_CS/blob/f57d28fe721ea4d57d10c010d15d45f05f2f5bad/regamedll/game_shared/bot/bot_manager.cpp#L338-L461

For example,

  • Gas/Heal Smoke: check if player is inside the smoke and take him damage or heal him.
  • Shield Smoke: smoke not penetrable to bullets.
  • Invisible Player Smoke: set players invisible when touch/inside smoke.
  • more and more ideas...

IsLineBlockedBySmoke has already ported to amxx pawn: https://dev-cs.ru/threads/222/page-9#post-81227