22 float randomresp ) :
Order( ttype, stype )
25 , moodswingyness( moodswingyness )
26 , randomresponse( randomresp )
33 if ( (anger > 665 && anger < 667) || (anger > -667 && anger < -665) ) {
37 if (moodswingyness > 665 && moodswingyness < 667) {
39 this->moodswingyness = ang1;
41 if (randomresp > 665 && moodswingyness < 667) {
50 "LowestPositiveCommChoice",
53 "LowestNegativeCommChoice",
58 std::vector< unsigned int >::const_iterator iend = n->edges.end();
59 for (std::vector< unsigned int >::const_iterator
i = n->edges.begin();
i != iend; ++
i) {
60 if (c.
fsm->
nodes[*
i].messagedelta >= pos_limit && relationship >= 0)
62 if (c.
fsm->
nodes[*
i].messagedelta <= neg_limit && relationship < 0)
71 float relationship = 0;
94 for (
int i = 0;
i < numhits;
i++)
101 static float contraband_assist_range =
110 delta = minrel-relation;
119 if (ally->
faction == faction) {
141 unsigned char gender;
145 if (contraband_detected) {
178 static unsigned int contraband_search_batch_update =
180 for (
unsigned int rep = 0; rep < contraband_search_batch_update; ++rep) {
188 static bool use_hidden_cargo_space =
190 static float speed_course_change =
193 unsigned char gender;
205 if (
InList( item, contrabandlist ) > 0) {
207 if (HiddenTotal == 0 || u->
GetCargo( which_carg_item_bak ).
quantity > HiddenTotal) {
211 unsigned int quantity = 0;
212 for (
unsigned int i = 0;
i <
max; ++
i)
215 if (quantity > HiddenTotal) {
266 unsigned char gender;
290 float oRlyFactor = factor;
302 oRlyFactor = factor*0.5;
347 static float unitRad =
350 #ifdef VS_ENABLE_COLLIDE_KEY
352 if (iter != cm->
end() && (*iter)->
radius > 0)
353 if ( (*iter)->ref.unit !=
parent )
357 Unit *target = unitLocator.retval.unit;
358 if (target == NULL || target ==
parent)
369 if (target != NULL) {
375 Unit *un = (*i)->sender.GetUnit();
382 unsigned char gender;
391 if (0 &&
mood == 0) {
394 return rand()%n->
edges.size();
400 static float staticrelmul =
418 if ( n->
edges.size() ) {
423 unsigned char gender;