niesp

Sarge AI tuning

1 post in this topic

Hi, I am fine tuning my Exile server and modified the script for the sarge AI so that they drop a smoke shell when killed - red for bad guys, blue for good guys ... so that I can see who killed whom. And if the bad AI is less than 20m away it detonates its suicide-west. Since many people on my server liked the modification, I like to share it with you:

go to sarge/code/functions and modify fn_AI_hit.sqf at line 24

_aikilled_type = typeof _ai;
_aikilled_side = side _ai;
_aikilled_group_side = side (group _ai);

//Smoke script

if (_aikilled_group_side == SAR_AI_friendly_side) then {
        _marker="SmokeShellBlue" createVehicle (getPos _ai);
} else {
        _marker="SmokeShellRed" createVehicle (getPos _ai);           
        _meters = _aikiller distance _ai;           
        if (_meters<20) then {
            _bomb="R_60mm_HE" createVehicle (getPos _ai);
       };
};

Share this post


Link to post
Share on other sites
Advertisement
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.