KatsBits Community

[RtCW] hiding behind bushes using ai_no_sight

kat · 2 · 6552

0 Members and 1 Guest are viewing this topic.

Offline kat

  • Administrator
  • Hero Member
  • *
    • Posts: 2692
    • KatsBits

Scenario
Models are not 'solid' so whilst AI might not necessarily be able to shoot through them (a crate or other 'solid' object), they might actually be able to see through. In instances where the AI needs to 'ignore' the players and their location whilst at the same time the player is able to observe what the AI are doing, using the "ai_no_sight" clip brush helps.

Problem
Player needs to be able to observe the movement of AI from behind a hedge model - UV mapped with an alpha channeled TGA so the player can manoeuvr themselves to see through the bushes - without the AI noticing the player due to their proximity settings; which might 'detect' rather than 'see' the player as a result of line-of-sight observation.

Solution
Placing a brush volume covering the model and/or area the player needs to access and move around within allows them to see AI through the bushes without accidentally or inadvertently activating/triggering the AI too early.

Additional Reading
RtCW NPC basics