OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: filth on 18 Oct 2007, 14:33:13

Title: i have tried the usual comref channels and cannot find the classname for...
Post by: filth on 18 Oct 2007, 14:33:13
the official bis flare gun.

the weapons list for ofp on ofpec states that it is simply called 'flare', but i have tried adding this to an ammo crate to no avail. i've tried flarelauncher, flaregun, flare, flarelaunch, but nadda. anyone know? ta.
Title: Re: i have tried the usual comref channels and cannot find the classname for...
Post by: Denz on 18 Oct 2007, 14:47:37
Isn't it "flarewhite" "flarered"

edit:
Thats because you didn't look in cfg/weapons here is what you need (http://www.ofpec.com/COMREF/weapons.php#Grenades)
Title: Re: i have tried the usual comref channels and cannot find the classname for...
Post by: filth on 18 Oct 2007, 14:54:28
thanks, but i tried these. in an ammo crate's init line i am putting the following: this addweaponcargo ["flare",1] and getting no weapon available.  :dry:
Title: Re: i have tried the usual comref channels and cannot find the classname for...
Post by: Denz on 18 Oct 2007, 15:04:49
Try something like
this addmagazinecargo [{_x},99]" forEach [FlareRed]
and for the gun
this AddWeaponCargo [""FlareGun"", 1]
Not sure if the syntax is right, written off the top of my head
Title: Re: i have tried the usual comref channels and cannot find the classname for...
Post by: filth on 18 Oct 2007, 15:43:10
i'm getting a no entry for "flaregun" in the weapons config.  :(
Title: Re: i have tried the usual comref channels and cannot find the classname for...
Post by: Denz on 18 Oct 2007, 15:50:16
Ok got it, I did a search and found a quote from Planck from 2003
Quote
In the official game the only way to fire flares is with the grenade launcher that can be attached to the M16 or AK74.   You'll get the exact names from the Weapon and Ammo listing in the Ed Depot

You'll need an addon for an actual flaregun.
sebnam and fdf had one
Best standalone addon I could find is this one (http://ofp.gamepark.cz/index.php?showthis=3224)
Title: Re: i have tried the usual comref channels and cannot find the classname for...
Post by: filth on 18 Oct 2007, 15:59:55
ah. ok. it all becomes clear. i must have an addon which gives me a standard 'officer (with flare gun)'. i'll depbo the addon and look for the class name there. thx for your help denz.  :D
Title: Re: i have tried the usual comref channels and cannot find the classname for...
Post by: Mr.Peanut on 22 Oct 2007, 16:16:18
The addon on the LOL server is Kegety's flaregun from his winter pack ("KEGFLAREGUN").  You must also add magazines "KEGFLAREWHITE", "KEGFLARERED".  Unpbo my Running Scared mission and look at the init_west* scripts.
Title: Re: i have tried the usual comref channels and cannot find the classname for...
Post by: filth on 24 Oct 2007, 15:22:33
brilliant. thx nutter.