Home   Help Search Login Register  

Author Topic: RPGin' it  (Read 1101 times)

0 Members and 1 Guest are viewing this topic.

kueter

  • Guest
RPGin' it
« on: 14 Jun 2003, 06:11:02 »
Hola ofp bros,  :D
            Hey, I am working on a few new maps, but I can't get the ai to fire on infantry with RPG's...ie like in Vietnam.   ??? Any ideas on how to do this? Could a script do it? Lemme know, fellas. Thanks!

Peace out,
Kueter


Shaggy

  • Guest
Re:RPGin' it
« Reply #1 on: 14 Jun 2003, 06:45:54 »
More information on your problem would be greatful  ;) :cheers:

Ball Zack

  • Guest
Re:RPGin' it
« Reply #2 on: 14 Jun 2003, 06:48:40 »
He wants to know how to force the AI to fire shoulder launched rocket launchers at infantry targets...

kueter

  • Guest
Re:RPGin' it
« Reply #3 on: 14 Jun 2003, 21:16:59 »
Rgr Ball Zack, I want enemy ai to fire on your squad with rpg's...like in bhd.

Peace,
Kueter

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:RPGin' it
« Reply #4 on: 14 Jun 2003, 21:28:42 »
Hmmmm... Is it in a cutscene or in the mission? cause if it is in a cutscene u can fake it.
« Last Edit: 14 Jun 2003, 21:28:58 by The real Armstrong »

kueter

  • Guest
Re:RPGin' it
« Reply #5 on: 14 Jun 2003, 23:22:24 »
 :-\ I know it is a difficult question guys. Rgr, Real Armstrong. I could fake it in a cutscene, but i would like to use it in a mission for added realism. It would be cool to come around a tree and a vc launches an rpg at ya...lol  :o Just wondering if it could be done or not. No big deal if it can't be. :D

Peace,
Kuet

US-NATO_Term

  • Guest
Re:RPGin' it
« Reply #6 on: 17 Jun 2003, 22:29:39 »
it can be done its a code but i cnat remeber it

Ace

  • Guest
Re:RPGin' it
« Reply #7 on: 17 Jun 2003, 23:53:00 »
It would require a script.

And it would resemble something like the "Imrpoved AI scripts" around.

Because in them they have a conditon for somehting like :
"If enemy has 5 or more units than us then we retreat"

It would have to be changed to soemthing like:
"If enemy has 5 or more units than us then we blow their heads off with rockets!"


If you don't know how to edit the scripts to do this I will be able to tomorrow morning (GMT) but not now.

billly

  • Guest
Re:RPGin' it
« Reply #8 on: 18 Jun 2003, 11:09:27 »
Hello Ace
       I'm interested in this RPG on infrantry script, perfeably only attack when the enemy are more then a few guys like you mentioned. Since this is outside of the config.bin i have no idea on scripting.

Offline Burn

  • Members
  • *
Re:RPGin' it
« Reply #9 on: 18 Jun 2003, 11:44:08 »
Did this little script in a couple of minutes for ya. ;D
I'm no scripting pro but this should work ::) :P... Come on give it a try! ;)
Hope it helps :joystick:
 :cheers:

Eviscerator

  • Guest
Re:RPGin' it
« Reply #10 on: 08 Aug 2003, 13:09:03 »
A cpp change can make them fire on infantry:

Quote
class LAW: AT3 // soldier RPG
   {
      hit=500;indirectHit=150;indirectHitRange=2.5;
      minRange=20;minRangeProbab=0.50;
      midRange=75;midRangeProbab=0.95;
      maxRange=250;maxRangeProbab=0.10;
      model=LAW;
      simulation=shotRocket;
      simulationStep=0.05;
      cost=5000;
      soundHit[]={Explosions\explosion_at3,db30,1};
      soundFly[]={objects\noise,db-80,4};
      maxSpeed=350;
      irLock=true; // no lock on soldier
      manualControl=true;
      maxControlRange=0; // max range for manual control

      initTime=0;
      thrustTime=0.2;
      thrust=2000;
      maneuvrability=0;
   };
   class RPG: LAW // soldier RPG
   {
      model=RPG;
   };

Change:

irLock=true; // no lock on soldier

to

irLock=false;

And the ammunition will then target infantry, and of course you then need to make a new rpg weapon cfg that uses the new ammo.
« Last Edit: 08 Aug 2003, 13:10:50 by Eviscerator »

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:RPGin' it
« Reply #11 on: 08 Aug 2003, 13:13:34 »
doesnt work for what i need it for...

i have a cutscene and i want the guy to be holding the rpglauncher for a while and then i'll make him fire the weapon....

does any1 know how to make the guy old it on his shoulder - nothing else...

 ???
Proud Member of the Volunteer Commando Battalion

Offline KJAM

  • Contributing Member
  • **
  • Why Me, Whats it For?
    • Nightstalker mod
Re:RPGin' it
« Reply #12 on: 08 Aug 2003, 16:38:48 »
erm, have him as a law soldier, remove the primary weapon, not the law, the ai usually witch tot heir secondry weaopn straight away

Offline Messiah

  • Honourary OFPEC Patron & Drinking Buddy of Wolfsbane
  • Honoured Contributor
  • ***
  • OFPEC Veteran
    • Project UK Forces
Re:RPGin' it
« Reply #13 on: 09 Aug 2003, 01:37:49 »
nope, tried it... failed  :'(
Proud Member of the Volunteer Commando Battalion

KiwiRanger

  • Guest
Re:RPGin' it
« Reply #14 on: 14 Aug 2003, 09:44:58 »
I had to find out a script for something simmilar this is prehaps all that you need.

Quote
enemyaa2 DoTarget blackhawk2
~3
enemyaa2 Fire [AALauncher, AALauncher]

But change "enemyaa2" to the units name of your unit with the RPG. and change "blackhawk2" to the name of the unit that will be targeted by the RPG soldier. :D

But also you will need to change
Quote
[AALauncher, AALauncher]
To the name of the "weapon & ammo used" Such as

weapon used ==>[RPGLauncher, RPGLauncher
 RPGLauncher] ammunition used.