Page 1 of 1
Hiding AI for enemies
Posted: Fri Jan 30, 2004 1:02 pm
by vonderbakluft
Guess this is a very basic Q, but cannot find it in the docs
When i hide an AI, (notsolid,hide, disabled and so on). Friendlies still notice him and start shooting at him.
Which parameter makes them unnoticable by enemy AI as well?
(Of course i can make them american, but then axis AI starts shooting at him)
Must be something very obvious but i cannot find
Von
Posted: Fri Jan 30, 2004 2:31 pm
by bdbodger
$ai threatbias ignoreme
then when you make him visible set the threatbias to a number not sure what number maybe try
$ai.oldbias = $ai.threatbias
$ai hide
$ai notsolid
$ai threadbias ignoreme
....
....
$ai show
$ai solid
$ai threatbias = $ai.oldbias
Posted: Fri Jan 30, 2004 3:21 pm
by jv_map
Yup that should do it
$ai threatbias = $ai.oldbias
You could simply set it to 0, like:
$ai threatbias 0
Also make sure to use $ai ai_off and $ai ai_on to save cpu time

Posted: Fri Jan 30, 2004 3:59 pm
by vonderbakluft
Thanks m8's.
threatbias....
Now i remember that i used that once before... very long ago.
Think i'm getting in the stage of ages that my memory is not what it was before
Thanks anyway

(and indeed turning them off with ai_off is the good habit, especially when having 20 of that guys in the map

)
Btw. What does the threatbias value exactly do? Can i use it to give some enemies lower priority to become the favourite enemy of an AI?
Von
Posted: Sat Jan 31, 2004 3:40 am
by nuggets
yeah, that's exactly what it's for
i think it goes from 1 to 1000
Posted: Sat Jan 31, 2004 6:30 am
by bdbodger
yes ai_off I forgot that too same memory trouble I think . I may have a problem with short term memory I don't remember

.
Posted: Sat Jan 31, 2004 8:27 am
by jv_map
nuggets wrote:yeah, that's exactly what it's for
i think it goes from 1 to 1000
You can use negative values too, to make a certain enemy less popular (like medics). And ofcourse 0 is valid as well, still making up my mind wether that is positive or negative

Posted: Sat Jan 31, 2004 12:55 pm
by Angex
Mathmatically 0 is positive, but when computers use singed numbers there is a positive and negative 0, however the negative 0 means negative infinity. Positive infinity depends on the number of bits being used to store the number in memory.