Body part detector [Lua]

HEKPOH - Adventure level - from Android
PlayEdit5 players liked this.Log in to like this level.

The title explains everything. This script detects robot's body parts: head, body and legs. This may be extremely useful for some lua weapons to make them do critical damage on headshot, or slow enemies if you shot them in legs. Many different opportunities!

I tried to explain all script I have there, its pretty easy.

Ver. 1.1 changes
- can detect bodyparts while player is under or on top of robot

Hope this would be useful!

Views: 226 Downloads: 123 Unique objects: 1 Total objects: 16

Discuss this level

Log in to comment on this level.
  • JOELwindows7: @HEKPOH: np
  • HEKPOH: @JOELwindows7: thanks, it does, fortunately, robots ALWAYS have the middle of their bodies as coordinates
  • JOELwindows7: Extremly Duper Juber Awesome real Awesome Awesome AWESOME AWESOME!!!
    I saw your script detects based on pre-defined box area, not by actual defined area.
  • HEKPOH: @Milky_dad: вроде теперь лучше
  • HEKPOH: @Milky_dad: слегка поленился
  • Milky_dad: Форматирование?
    Красивый код?
    - Не, не слышали.
  • dOUBLEbAD: @HEKPOH: I'm not sure if it is even worth fixing, lol
  • HEKPOH: @dOUBLEbAD: yeah, I've noticed that one too, now trying to fix. Thanks!
  • dOUBLEbAD: One very slight bug, not even worth mentioning really but if you walk up to the headless robot there is a tiny spot that registers as a head, lol. Either way, nice job here. :D
  • dOUBLEbAD: Nice!

LEVEL ID: 27517