Jump to content
  • 0

AI melee bandits ? Biker gang patrols ?


Crankey

Question

Two questions in 1 here but thought it would be ok to combine them as they are similar topics.

 

1, instead of a UAZ AI patrol with 4 AI bandits in it, is it possible to have 4 or more AI bandits patrolling in a group on motorbikes?

 

 

2, Is it possible to have groups of ai running around with primary weapon being a machete or hatchet, crowbar etc rather than pistols or rifles ?

 

I want to add these to an overpoch server but simply don't know if the AI will use them as weapons or simply ignore them and be unarmed ai.

 

I'm thinking they would represent survivors who have gone mad/berzerk due to hunger or stress etc.

 

I'm particularly interested in setting them as static spawn AI's in smaller towns and villages to be more new player spawn opponents.

 

Looking forward to your replies

 

Crankey o7

 

 

 

Link to comment
Share on other sites

16 answers to this question

Recommended Posts

  • 0

I have AI on my server doing exactly what you are asking (in regards to melee action) they also talk trash to you when you get close to them (people who play the server just crack up when they hear them). I'm at work at the moment and don't have time to get into all the logisitcs behind how to do it. But if you go to my server (the Overpoch one, not the Namaslk Crisis one) you can go to Cherno, Elecktro, NWAF, Stary ect. and find them running around. I gave some of them guns too so watch out, but you'll find plenty of bad guys running around with machete's, axe's and crowbars trying to knock your lights out if you don't pay attention. Server IP is at the bottom with Game Tracker.

Link to comment
Share on other sites

  • 0

All you need to do it equip your AI to have the melee version of a weapon, for instance:

 

_AiWeapon = MeleeMachete,

_AIAmmo = Machete_Swing

 

Then be sure to add the event handler:

 

_aiunit addEventHandler ["fired", {(_this select 0) playActionNow "GestureSwing";}];

 

This will get them to swing the weapon. If you just give them the weapon and ammo without adding the event handler they'll attack you but you won't see the animation of them swinging it at you, they'll just stand there and it will show that you are getting hit without them swinging the weapon.

Link to comment
Share on other sites

  • 0

I have AI on my server doing exactly what you are asking (in regards to melee action) they also talk trash to you when you get close to them (people who play the server just crack up when they hear them). I'm at work at the moment and don't have time to get into all the logisitcs behind how to do it. But if you go to my server (the Overpoch one, not the Namaslk Crisis one) you can go to Cherno, Elecktro, NWAF, Stary ect. and find them running around. I gave some of them guns too so watch out, but you'll find plenty of bad guys running around with machete's, axe's and crowbars trying to knock your lights out if you don't pay attention. Server IP is at the bottom with Game Tracker.

lol was on your server, funny as hell. How did you get them to talk? And what AI are they?

Link to comment
Share on other sites

  • 0

lol was on your server, funny as hell. How did you get them to talk? And what AI are they?

The AI running around on the ground are AI I wrote, the AI driving is actually WAI vehicle patrols that I used a similar code on to get them to talk. All that is happening is that I'm getting the units to play sounds at certain intervals. I loaded the sound files into the mission pbo, define the sounds in the description.ext and have the AI call them. For instance I'll use this code to make them say sounds every 15 seconds

 

_aiunit spawn {

    while {alive _this} do

    {

        sleep 5;

        [nil,_this,rSAY,[["motherfucker","kill","smash","ahhh","asshole","dead","futoo","gun","cheatin","casino","moron","sake","work","screw","punk","piece","name","problems","runaway","fuckyou","what","bitch","whatever","zombie","show","grove","dumped","break","punkass"] call BIS_fnc_selectRandom, 20]] call RE;

        sleep 15;

    };

  };

With the guys driving I use basically the same code but have them also spew obscenities about driving or cars. Everyone who comes to the server dies laughing, I also have invisible AI that play bloodsucker sounds that can be heard across the server and other funny quotes from movies at random intervals. Since most people who play epoch have never played Namalsk Crisis, they really freak out when they hear the bloodsucker sounds. I also use sounds from other video games for added effect.

Link to comment
Share on other sites

  • 0

Nemaconz, these are perfect.

 

The occasional random sound to freak people out and the ai's using meelee weapons and shouting out random expletives are exactly what i was wanting.

 

If you get time to reply with a simple which files to add the codes to etc would be grateful

 

Crankey o7

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...