Crankey Posted September 13, 2014 Report Share Posted September 13, 2014 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 More sharing options...
0 Tricks Posted September 13, 2014 Report Share Posted September 13, 2014 Haha either would be awesome. Link to comment Share on other sites More sharing options...
0 Crankey Posted September 13, 2014 Author Report Share Posted September 13, 2014 Has anyone perhaps attempted or considered this before ? Looking forward to your views or advise Link to comment Share on other sites More sharing options...
0 Uncle Bad Touch Posted September 14, 2014 Report Share Posted September 14, 2014 I think with the bikes and outfits it wouldn't be very good but I would love the idea on SA if it ever gets remotely being finished. Just you and some friends riding through the streets on Harleys. Link to comment Share on other sites More sharing options...
0 Nemaconz Posted September 15, 2014 Report Share Posted September 15, 2014 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 More sharing options...
0 BetterDeadThanZed Posted September 15, 2014 Report Share Posted September 15, 2014 The AI will drive whatever vehicle you give them. I've had bandits on bikes and motorcycles. jjordo1 1 Link to comment Share on other sites More sharing options...
0 Rocu Posted September 15, 2014 Report Share Posted September 15, 2014 Am also interested in the melee part. Jason mission with a chainsaw and hell of a lot of HP can be quite fun :D . Link to comment Share on other sites More sharing options...
0 Nemaconz Posted September 16, 2014 Report Share Posted September 16, 2014 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 More sharing options...
0 Crankey Posted September 16, 2014 Author Report Share Posted September 16, 2014 Hey guys thankyou very much and Hi Zed o7 long time no see. I'll get on it :) Link to comment Share on other sites More sharing options...
0 MrEnzO Posted September 17, 2014 Report Share Posted September 17, 2014 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 More sharing options...
0 Nemaconz Posted September 19, 2014 Report Share Posted September 19, 2014 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 More sharing options...
0 Crankey Posted September 23, 2014 Author Report Share Posted September 23, 2014 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 More sharing options...
0 Nemaconz Posted September 23, 2014 Report Share Posted September 23, 2014 Sent you a PM Link to comment Share on other sites More sharing options...
0 rhammer2003 Posted October 1, 2014 Report Share Posted October 1, 2014 Nemaconz, I would be interested in the same information please rhammer2003 Link to comment Share on other sites More sharing options...
0 Nemaconz Posted October 1, 2014 Report Share Posted October 1, 2014 Nemaconz, I would be interested in the same information please rhammer2003 Send me a PM with what exactly you are wanting to do and what you have done thus far and I'll help you with what I can. Link to comment Share on other sites More sharing options...
0 chipsandcheese Posted October 3, 2014 Report Share Posted October 3, 2014 Many thanks for this (and the help) sir, a great addition. Link to comment Share on other sites More sharing options...
0 Nemaconz Posted October 3, 2014 Report Share Posted October 3, 2014 Many thanks for this (and the help) sir, a great addition. You're welcome :) Link to comment Share on other sites More sharing options...
Question
Crankey
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now