Sponsored Adverts

Author Topic: [RtCW] using "ai_no_sight" clip brush  (Read 2123 times)

0 Members and 1 Guest are viewing this topic.

Offline kat

  • Administrator
  • Hero Member
  • *
  • Posts: 2205
[RtCW] using "ai_no_sight" clip brush
« on: February 14, 2014, 07:52:48 AM »

Scenario
Player walks towards a door in a wall behind which three AI are placed, two of which engage in a (player) triggered conversation.

Problem
The door is in a wall to another area but not another room (think walled garden). This means AI can be inadvertently triggered, or trigger early before AI chat occurs. To prevent this early triggering, ai_no_sight clip brush volume can be used to 'block' AI seeing the player when they inside it. However, if ai_no_sight is placed across the entire opening this results in AI not seeing the player even when standing in an open doorway.

Solution
The fix makes use of limited placement of "ai_no_sight" to give the player an avenue to take towards the door which follows a slightly more stealthy approach along another wall, whilst using a func_inv_user targeted at the door allows the player to open the target door without having to stand directly in front of it.

Additional Info
NPC basics in RtCW


Offline ratty redemption

  • VIP
  • Hero Member
  • *
  • Posts: 952
Re: [RtCW] using "ai_no_sight" clip brush
« Reply #1 on: February 16, 2014, 12:18:08 AM »
interesting. do you know if unity has any native ai triggering like this?

Offline kat

  • Administrator
  • Hero Member
  • *
  • Posts: 2205
Re: [RtCW] using "ai_no_sight" clip brush
« Reply #2 on: February 16, 2014, 02:43:05 PM »
From what I understand there's only a general collision clip for modelled content etc. (like this for example). So far as I'm aware (I've only ever had a cursory look at other game engines and how they work with respect to NPC's and bots so don't quote me on this), there aren't specific 'clips' for monsters or different classes of NPC. As such one would likely need to coded by tagging an association between an AI class and a given surface characteristic - it's one of the reason bot code is notoriously tricky to get working correctly (relative to the differentiation of class based behavioral characteristics).

Offline ratty redemption

  • VIP
  • Hero Member
  • *
  • Posts: 952
Re: [RtCW] using "ai_no_sight" clip brush
« Reply #3 on: February 16, 2014, 04:49:28 PM »
thanks kat, and i vaguely remember some of the unity video tutorials i watched last year covered a grouping system, similar to the layers in blender. i guess those could be used to make specific ai materials and or volumes?

Tags:
 

Sponsored Adverts
RSS Content is copyright © KatsBits™ 2017 unless otherwise stated. All Rights Reserved.
No part of this web site may be reproduced (except for personal use, or otherwise stated) without prior written permission from KatsBits.com. For more infomation on copyright click here.
Web design cpdtAdvertisePrivacy PolicyDMCA (about DMCA) Home Store Workshops Blog Jobs Support About Katsbits Contact Site Search KatsBits Help Site Map RSS feed Forum YouTube FaceBook LinkedIn Twitter IMVU