Home   Help Search Login Register  

Author Topic: hit and miss  (Read 3637 times)

0 Members and 1 Guest are viewing this topic.

Sexy_Beast

  • Guest
hit and miss
« on: 05 Sep 2004, 14:51:01 »
im tired of getting head shot by Ai's 300m distance i there was a script in ofpec that would make Ai's miss but i cant remember the name of it  ???

Ace Productions

  • Guest
Re:hit and miss
« Reply #1 on: 05 Sep 2004, 15:11:07 »
I've prepared a small script to use in a mission I'm making so I thing it's time to BETA test it!  ;)

Offline Mud_Spike

  • Contributing Member
  • **
Re:hit and miss
« Reply #2 on: 05 Sep 2004, 15:16:52 »
The higher their skill, the better they aim, so lower it, that'll give you a break.

Also, you can set a unit's damage to a negative value, that'll make their aim alittle bit wobbley for some reason.
Try 'someEnemy SetDammage -1'.

Last, you could use HD (High Dispersion) weapons/mags.
All JAM weapons/mags come in both a standard and HD version.

Sexy_Beast

  • Guest
Re:hit and miss
« Reply #3 on: 05 Sep 2004, 18:34:38 »
i cant open ur file i need some thing named chopse.exe

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:hit and miss
« Reply #4 on: 05 Sep 2004, 20:50:00 »
Use notepad.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Ace Productions

  • Guest
Re:hit and miss
« Reply #5 on: 09 Sep 2004, 00:17:23 »
@Sexy_Beast

Did the scipt work as you expected?

Offline Wadmann

  • OFPEC Patron
  • ****
  • I'm the next evolutionary step after a llama!
Re:hit and miss
« Reply #6 on: 10 Sep 2004, 21:35:24 »
@ Ace Productions:

I have not tried your script as I am unsure as how to implement it. Is it used in conjuction with the "fired" eventhandler? IIRC the fired EH does provide the five five parameters used in your script (shooter, weapon, muzzle, mode, and shell) but how would one call your script? Something like:

Code: [Select]
this AddEventHandler ["fired", {[_x] exec "scriptname.sqs"}]


Thanks in advance for your reply.

                                                        Wadmann
Check out my Camouflage Collection! New items added 31 July 2005.

Ace Productions

  • Guest
Re:hit and miss
« Reply #7 on: 11 Sep 2004, 22:49:04 »
Ok, here we go...

If your unit is called "MG42" you can write the following in the Init.sqs file, in a trigger, or in any script:

MG42 AddEventHandler ["fired",{_this Exec "scriptname.sqs"}]

If you are going to use it in the unit's init line then:

this AddEventHandler ["fired",{_this Exec "scriptname.sqs"}]

Good luck mate!




Offline andywt

  • Members
  • *
  • I'm a llama!
Re:hit and miss
« Reply #8 on: 13 Sep 2004, 21:10:43 »
Ace Productions, this is excellent.

Please can you explain in detail what each part of your script does?

Thanks in advance.

Ace Productions

  • Guest
Re:hit and miss
« Reply #9 on: 14 Sep 2004, 06:11:59 »
I'm glad you like it andywt.

Just give me a couple of days cause I'm updating it. That was just the initial idea. Different weapons will vary in inaccuracy and the inaccuracy will be base on the skill level you select for your unit.  8)

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re:hit and miss
« Reply #10 on: 23 Sep 2004, 02:54:24 »
This script is clever (i.e., intercepting the bullet and resetting its pos and velocity a little randomly).

A technique I've used is attach an invisible infanrtry target to units in a loop that randomly moves (setpos) that invisible target around the player.  This makes the AI sometimes shoot at you and sometimes at the invisible target near you, simulating near misses.

If you use an invisible armored target, then you get RPGs, tanks and choppers firing on you, which can really get your heart going!

I'm using Lester's invisible target addon.
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...

Ace Productions

  • Guest
Re:hit and miss
« Reply #11 on: 28 Sep 2004, 22:21:03 »
That's quite a nice idea actually!

Can you post a sample so we can try it out?

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re:hit and miss
« Reply #12 on: 29 Sep 2004, 06:25:51 »
Here's a little sample mission for the editor, plus one script "attach_target.sqs".  In this script a civilian paces in front of two buses, while some soldiers shoot at an invisible target attached to the civilian.  He gets killed when the invisible target happens to get placed directly between him and the shooter.

After 30 seconds, a trigger moves an invisible armored target to the civilians position.  This causes the soldier AI to fire their laws.

The example assumes you have Resistance and the Invisible Targets addon by Lester (InvTargets.pbo).
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...

Offline andywt

  • Members
  • *
  • I'm a llama!
Re: hit and miss
« Reply #13 on: 08 Mar 2013, 19:41:56 »
Please could someone post the scripts and/or the mission examples that were once in this thread.