OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: CooK on 05 Nov 2002, 06:50:07

Title: M203 or m2 fire a smoke grenade
Post by: CooK on 05 Nov 2002, 06:50:07
is it possible? to have a m203 or a m2 machine gun fire a smoke grenade?
Title: Re:M203 or m2 fire a smoke grenade
Post by: Ranger on 05 Nov 2002, 21:43:01
To my knowledge, all smoke grenades are hand-thrown in this game.  There's nothing to stop you from making your own add-on that allows M203-launched smoke grenades, though.

The M2 is a machine gun that, therefore, cannot fire grenades, smoke or otherwise--at least not without modifying its config entry.
Title: Re:M203 or m2 fire a smoke grenade
Post by: O Neil on 06 Nov 2002, 06:31:32
Soz about this but, I just thought I'd like to say that the sound for the M203 launcher is gay !!!


Soz         :gunman:
Title: Re:M203 or m2 fire a smoke grenade
Post by: Tomb on 06 Nov 2002, 23:57:54







                                                   :hmm:








Title: Re:M203 or m2 fire a smoke grenade
Post by: Wolfrug on 07 Nov 2002, 10:23:03
Yes, yes there is. Should be, anyohow. Try the editor's depot snippets section, under misc or whatever. Somewhere there there should be a script which allows you to turn just about any missile into a smoke grenade of your choosing...possibly you could transform a flare/grenade into a smoke instead then.

Also, I think the addons depot had a bunch of smoke-launching m203-toting lads upped, WAY long ago. I suggest you conduct a search there too :D

As to the M2...hmm, suppose it could somehow be managed, but I really can't imagine why :D If we'd capture the bullets and turn them into smoke 'nades, the computer would crash and burn within moments thanks to the high rate of fire. Only option would be to make a smoke-grenade launching M2....which I don't think would be a likely candidate for the Addon's Depot realism prize  ::)

And I agree on Tombsy's sentiment on the M203.


:hmm:



Wolfrug out.
Title: Re:M203 or m2 fire a smoke grenade
Post by: Dinger on 07 Nov 2002, 20:49:38
nahh, wolf, you can do it; the computer won't crash and burn, but it won't be pretty.


this addeventhandler [Fired, {private ["_bang", "_vector", "_pos"]; _bang = nearestobject [_this select 0, _this select 4]; _pos = getpos _bang; _vector = velocity _bang; deletevehicle _bang; _bang = "SmokeShell" camcreate _pos; _bang setvelocity _vector}]

of course, it can and should be tweaked.  Change SmokeShell to Shell120 and you can raise hell with a pistol.
Title: Re:M203 or m2 fire a smoke grenade
Post by: Tomb on 07 Nov 2002, 23:05:41






                         :noo: You're scary, Dinger!  :help: :noo:





Title: Re:M203 or m2 fire a smoke grenade
Post by: O Neil on 08 Nov 2002, 06:30:09
Hey, I said sorry !