Home   Help Search Login Register  

Author Topic: Firing at dummy targets. How to with 1.91?  (Read 574 times)

0 Members and 1 Guest are viewing this topic.

Offline jens198

  • Former Staff
  • ****
  • Falcon 3.0 forever!
Firing at dummy targets. How to with 1.91?
« on: 20 Jul 2003, 11:43:33 »
Ok folks,

got the following problem. A year ago, I made a script, which made my units a non-russian-targets like the target dummy or the invisible helopad etc. As far as I remember I did with the "dofire target" or simply the "fire weaponname/ammo) commands. Now (with version 1.91) I simple don't get it. None of this fools wants to fire his rifle.

So my question is: How do I tell my people to fire their weapon if there is no real enemy to shoot at? The script itself will be used for my riflerange map.

Any hints welcome. Thanks in advance

Jens
Try to look unimportant; the enemy may be low on ammo and not want to waste a bullet on you!

Unnamed

  • Guest
Re:Firing at dummy targets. How to with 1.91?
« Reply #1 on: 21 Jul 2003, 00:16:50 »
Hi,

For infantry try this invisible target addon, mentioned on one of the forums:

http://www.ofp-editing.de/module.php?mod=filestore&op=download&id=37

Let us know how you get on, never used it myself.

O Neil

  • Guest
Re:Firing at dummy targets. How to with 1.91?
« Reply #2 on: 21 Jul 2003, 09:41:14 »
Hey

Really sorry to say this, but I'm sure people that have been here a while, have noticed this come up many times (Not pointing at you jens) but, is there a tut or an ADVANCED scripter that can make this happen?

Cause I've been here......a year ? And I've seen this thread like, 10 times, and nothings happened. now PEACE !!! If it cannot be done, then so be it, but if there are other ways or something, I suggest a tut for reference.

I am strickly saying this as a suggestion, I'm not pissed off here and will admit if I am wrong for any reason.

Peace

O'Neil ;)

PS: jen, you are not a target in this ;) so peace

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Firing at dummy targets. How to with 1.91?
« Reply #3 on: 21 Jul 2003, 10:04:17 »
Jens,

As far as I'm aware, there has been no changes in 1.91 that would affect what you are trying to do. All you need to do is first command the unit to point his weapon at the target, using the "unit dowatch target command. You can either watch a unit, or you can watch a position (in [x,y,z] format). That command will get the unit to look straight at the target. Then, use the unit fire "weapon" command. This will get him to fire his weapon once directly at where he is pointed.

I think the dofire command will only work when you are trying to fire on a living unit, so that may be why you haven't been able to get this to work. Now, keep in mind that, while using the "dofire" command will get the unit to AIM his weapon at the target, and try to compensate for things like distance and elevation so that he actually HITS the target, the above method does none of these things. Basically, using the "dowatch"/"fire" command won't always give you an accurate shot, especially at longer ranges or weird angles.

Hope that helps.
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!

Offline jens198

  • Former Staff
  • ****
  • Falcon 3.0 forever!
Re:Firing at dummy targets. How to with 1.91?
« Reply #4 on: 22 Jul 2003, 21:37:55 »
Hi folks,

thanks for the good hints and advices. I tried them, but none of them gave me full satisfaction. So I had to swallow the pill and made a new addon as you can see in the pic below. The "target" is (via config.cpp) a red tank. I pop them up via setpos etc. Looks pretty cool so far. Oh man I love this game and everything I can do with it ;-)))


Try to look unimportant; the enemy may be low on ammo and not want to waste a bullet on you!