OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Resources Beta Testing & Submission => Topic started by: Igor Drukov on 07 Jul 2003, 16:57:57

Title: Loonies RPGin' other loonies
Post by: Igor Drukov on 07 Jul 2003, 16:57:57
In the attachment below, you'll find a demo mission with a script for RPG/Law/etc. loonies to shoot un-armored units with their secondary weapons.
It uses a "fired" event handler, calculates each unit's estimated number of rockets left, and comes with the "weapon" animation.
I'd like to beta-test it, because I know you folks will find ways to improve it.

For I have problems with :
* loonies targetting loonies that are at a different altitude. Even though I use the velocity of the latest shot bullet (divided by 10), there is no way I can get the rocket to go higher or lower than its source ;
* reloading animation : what is the move for reloading RPGs/Laws ?

Thanks in advance for your help, any constructive criticism is warmly welcome.

Igor Drukov

Title: Re:Loonies RPGin' other loonies
Post by: Yahoo Reborn on 07 Jul 2003, 18:33:37
Here is the Reload Aniamtion for AT Weapons etc

WeaponReloadAT
Title: Re:Loonies RPGin' other loonies
Post by: Igor Drukov on 07 Jul 2003, 22:46:23
Cheers matey !

So basically, there's only the first issue that remains to be solved now...
Title: Re:Loonies RPGin' other loonies
Post by: O Neil on 08 Jul 2003, 23:21:41
OMFG YOU RULE THIS PLANET !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Thought you wanna know ;)

O'Neil
Title: Re:Loonies RPGin' other loonies
Post by: Igor Drukov on 08 Jul 2003, 23:56:04
Thanks !

But I still wish someone knew an answer to the first question...
Title: Re:Loonies RPGin' other loonies
Post by: adamstanners on 23 Jul 2003, 17:57:50
You mean "this weaponreload ATlaunch"

WeaponreloadAT is to get more rockets from an ammo box!  I think...

Maybe if you ask Dude96 he may post it on our website or our forum (link on my signature).  8)
Title: Re:Loonies RPGin' other loonies
Post by: ste150 on 23 Jul 2003, 19:54:48
Hey -

Could you solve the height problem by getting the hieght of the target  -- 'GetPos target Select 2' --    and create the rocket at that height instead?
Should work  :-\

EDIT: Just realised that it would depend on you knowing the trget you were aiming and naming every man on the map - errr - maybe not then  ::)
Stevo :)
Title: Re:Loonies RPGin' other loonies
Post by: Igor Drukov on 28 Jul 2003, 16:21:54
@ Stanhead :

I was just speaking about the animation, not the action.

@ ste150 :

I had thought about something like that, but there is no "GetTarget" command...

Thank you guys anyway !

Title: Re:Loonies RPGin' other loonies
Post by: Zayfod on 02 Aug 2003, 01:19:42


EDIT: Just realised that it would depend on you knowing the trget you were aiming and naming every man on the map - errr - maybe not then  ::)
Stevo :)

I just did that in my latest script--its quite simple. But the names are local to the script not global.
Title: Re:Loonies RPGin' other loonies
Post by: Igor Drukov on 02 Aug 2003, 01:30:07
Hey Zayfod,
That sounds interesting : could you be a little more specific ? Or rather, what is your latest script ?