How to make AI not shoot zombies?

it is possible but not sure if it make any bugs
if !(isServer) then {

_entity_array = (position _ai) nearEntities ["CAManBase",_detectrange];
{
if(vehicle _ai == _ai) then { // AI is not in a vehicle, so we trace Zeds

if (_x isKindof "remove that -.-") then {

if(rating _x > -10000) then {
_x addrating -10000;
if(SAR_EXTREME_DEBUG) then {
diag_log "SAR EXTREME DEBUG: Zombie rated down";
in SAR_trace_entities.sqf
 
not going to work. If you really need this before i implement it and officially release it,

use this workaround:

Code:
if (_x isKindof "zZombie_Base") then {
       
                if(rating _x > -10000) then {
                  // _x addrating -10000;                // comment this out to have AI not shoot at Zeds
                    if(SAR_EXTREME_DEBUG) then {
                        diag_log "SAR EXTREME DEBUG: Zombie rated down";
                    };
                };

not tested, but should work.

Sarge
 
not going to work. If you really need this before i implement it and officially release it,

use this workaround:

Code:
if (_x isKindof "zZombie_Base") then {
     
                if(rating _x > -10000) then {
                  // _x addrating -10000;                // comment this out to have AI not shoot at Zeds
                    if(SAR_EXTREME_DEBUG) then {
                        diag_log "SAR EXTREME DEBUG: Zombie rated down";
                    };
                };

not tested, but should work.

Sarge

Where do i need to make these changes? on the same file the other guy said before? In SAR_trave_entities.sqf ?
Thanks for the help guys!
 
SAR_trace_entities.sqf is the only place where you will find that code in my files ... a search would have shown that ;-)

Sarge
 
Back
Top