Jump to content
Sign in to follow this  
Banderas

AI firing without aiming?

Recommended Posts

Hi folks!

I have some theoretical questions

First I really searched after it I swear but couldn't find anything alike

Is it possible to make some script to force a group of AI firing "from the hip" in full auto without any proper aiming? I made some missions when I'm up against gun-slinging civilians/bandits/any other unorganized armed bunch and I think it would be good to have something to make them a bit "unprofessional". I tried SLX mod and it has a similar feature (AI has high dispersion and goes stressing when under intense fire ectect...) but in that mod I cannot set up a skirmish with more than 8 units per side because the dust and smoke they making makes the game going into a comic  (I also don't really like the high armor value - funny to see an "unarmored" man takes five shots in the chest to get brought down with a rifle from 50 meters  -anyway love the mod ) so I decided to live a little longer without it

So what can I do if I want to see an unprofessional group act unprofessionally - firing full auto while running without hitting the lake they are standing in, almost always ignoring getting into cover, making amateur mistakes and so on - while my side's doing their job as trained grunts?

I just thought it would be fun to see the difference when you fighting against weekend rebels or die-hard specnaz.

Share this post


Link to post
Share on other sites

Man1 (bandit) init:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

nil = [this] spawn {_killa = _this select 0;_killa setSkill 0.05;while {alive _killa} do{_killa fire primaryWeapon _killa;sleep 0.9;};};

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

He'll be shooting straight up into the air however, currently there is no easy way to do what your wanting. Trust me, been trying all week. biggrin_o.gif

Share this post


Link to post
Share on other sites

Thank you Herr Generalfeldmarsall biggrin_o.gif

Well then I guess there's no other option than HD weapons and low skill settings, until a less processor-eater SLX version comes out.

Share this post


Link to post
Share on other sites

There is a way.

gameLogicName action ["USEWEAPON", <target vehicle>, <target unit>, <weapon index>]

The important thing is that action should be performed by a game logic. In other case the unit you want to use weapon will play a 'gear' animation.

Share this post


Link to post
Share on other sites

Does this mean he will fire instantly, or will he do something similar to that of "doFire" (useless I reckon.)

Share this post


Link to post
Share on other sites

He will fire instantly no matter the animation he is in. This means he will shoot while running, sitting, pointing his weapon down etc. (very useful I recon wink_o.gif )

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×