Home   Help Search Login Register  

Author Topic: Constant fire  (Read 695 times)

0 Members and 1 Guest are viewing this topic.

BrAinOfJ

  • Guest
Constant fire
« on: 05 Sep 2004, 04:27:28 »
Hey Guys,

Im making a short cut scene showing a force taking a town and meeting a small resistance force.
in the cutscene i want to show a machine gunner firing repeatedly, as if laying cover fire. Im a little unsure how to go about this as there is no target, and even if i made one off camera the gunner will stop firing when the target is dead. I could loop a respawn script for the target, but id rather do something else, incase for dramatic effect i wish to show in which direction he's firing.
I was thinking if possible of making him fire towards a gamelogic, using a dotarget dofire script, and looping it...
Im at work at the moment and cant test it, but would the below work if mgdude = the machine gunner and gltarget = the gamelogic acting as a target

_var1 = 1

#loop
~1
_var1 = _var1 + 1

mgdude doTarget gltarget
~0.1
mgdude dofire gltarget


? _var1 < 10 : goto "loop"


If ofcourse all of the above in incorrect, please tell me how to rectify it..

P.S I met Jennifer Hawkins (Miss Universe) Yesterday and got her to sign my business card.. im still stoked :P

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:Constant fire
« Reply #1 on: 05 Sep 2004, 04:32:21 »
i think the main prob is that AI wont fire on gamelogics so u have try somin else :P i think u can use invisible H as ur target... try and report

LCD OUT

P.S if u didnt get her phone number 2, it aint really worth it :P :moon:
« Last Edit: 05 Sep 2004, 04:33:02 by LCD »
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Constant fire
« Reply #2 on: 05 Sep 2004, 10:50:23 »
Quote
P.S if u didnt get her phone number 2, it aint really worth it  

LMAO!


You need the invisible target addon:  search the forums for a link.   You may not need var1 or the loop, just see what he does with doTarget and doFire.
Plenty of reviewed ArmA missions for you to play

Offline The_Mark

  • Members
  • *
Re:Constant fire
« Reply #3 on: 05 Sep 2004, 13:31:14 »
I there's a script like that for static MGs in the ed depot. With some fixing it could solve the problem. Dunno about the fire command though, if the gunner will shoot up in the air with it.. :-\

Or try using some small object as a target, let's say, a telephone.

And maybe add a small random delay, as mgunners rarely fire a shot exactly every 1.1 second.

Quote
Jennifer Hawkins
Damn.
Silent enim leges inter arma.

BrAinOfJ

  • Guest
Re:Constant fire
« Reply #4 on: 05 Sep 2004, 15:46:57 »
There seem to be alot of ways around it, ive just done some tests with civi's running away (as will feature in cut scene) but the machine gunner is very selective... I want brutality, like a constant fire, as if laying down cover fire...

im gunna look through the animation listings available because maybe there is something there...

Offline Mud_Spike

  • Contributing Member
  • **
Re:Constant fire
« Reply #5 on: 05 Sep 2004, 15:57:28 »
The easiest way, which might do the trick depending on how much camera time on target you need, is to give the machine-gunner a DESTROY waypoint on an empty jeep or something (you could play around with other objects). That'll keep him busy for awhile.

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re:Constant fire
« Reply #6 on: 29 Sep 2004, 01:16:52 »
Lester's invisible target addon is the way to go.

I made a scene with 4 west soldiers standing (with various wapons), and then placed an invisible east target out in front of them.  They fired constantantly until they were out of ammo.

If you want your MG to mow down civiilians with constant fire, then write a litte script that transitions the position (setpos) from one civilian to another, with points in between (to make smooth sweeping effect of MG constant fire from one target to another).

Bullets pass thru invisible targets, so placing them between a shooter and a unit, means the unit gets hit.
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 Blanco

  • Former Staff
  • ****
Re:Constant fire
« Reply #7 on: 29 Sep 2004, 05:48:04 »
Quote
I there's a script like that for static MGs in the ed depot.

Do you mean this?
The original was made by MI_fred, changed by Chris Death, modified by Silverfoot, General Barron and me.

It's great for SP missions but laggy in MP.
AFAIK Keycat has made a MPversion for it (with lesters invisible target addon)
« Last Edit: 29 Sep 2004, 05:55:18 by Blanco »
Search or search or search before you ask.

Offline johnnyboy

  • OFPEC Patron
  • ****
  • Matan los Pantalones!!!
Re:Constant fire
« Reply #8 on: 29 Sep 2004, 06:31:22 »
I uploaded a script/mission that demonstrates continuous fire to another similar thread here:

http://www.ofpec.com/yabbse/index.php?board=8;action=display;threadid=19537

It uses Lester's Invisible target addon and is easy to implement.
El Cojon: "Do you like to Tango?"
You: "Only in Bagango."
Download Last Tango in Bagango and discover how El Cojon earned his name...