Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
XCess

Grenade Model

Recommended Posts

Is there a way to get the standard BIS grenade model on the grounds without it exploding? Do I need an addon? Is there on in the editor upgrade?

Share this post


Link to post
Share on other sites

you can try searching for the "Drop" command, but you will probably need to make an addon, because there isn't much you can do with the "drop"ped model.

If you want player to be able to pickup the grenade, and you want it to look like a grenade when lying on ground, then you have to make an addon of a thing object with a useraction, and script it a little, OR you will have to make a "WeaponHolder" class, set it's default model to the grenade.p3d (or whatever it is), and then put the weapon holder on ground with the help of camCreate command, and put the grenade into it as a ammo cargo.

(search the forums for "weaponholder", both the "scripting" and the "addons/discussion" sections)

Share this post


Link to post
Share on other sites

I'm no scripting guru, but I thought drop had to do with particles.

Anyway, this has been done by ECP, etc...I think that there may have already been a few grenade packs that did this as well. A search on ofp.info may show you what you need.

Abs

Share this post


Link to post
Share on other sites

Thanks for the tip, 5133p39, I believe this is what I'm looking for:

weapon = "WeaponHolder" createVehicle [x,y,z]

weapon addweaponCargo [_weapon,1]

weapon addMagazineCargo [_ammo,1]

Share this post


Link to post
Share on other sites

As i remember KyleSarnik made some Grenades, who can roll over the ground and have own models.

Share this post


Link to post
Share on other sites

Yep, but I just want the standard BIS model tounge2.gif

THere is no weaponHolder for a nomral handGrenade, just the ammou pouch thing.

Share this post


Link to post
Share on other sites
Yep, but I just want the standard BIS model tounge2.gif

THere is no weaponHolder for a nomral handGrenade, just the ammou pouch thing.

yes, but you can create addon with a new 'weaponHolder' class, with the default model set to the grenade model (instead of the BIS default ammo pouch thing), and spawn this new weaponholder and it will look like a grenade.

But if you try to put it down (after you take it), OFP will put it into the BIS default ammo pouch thingy again (no known workaround for this).

Share this post


Link to post
Share on other sites
I'm no scripting guru, but I thought drop had to do with particles.

yes, and the particle model can be "almost" anything.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×