Jump to content
Sign in to follow this  
canis lupus

Grenade model stuck in the air

Recommended Posts

I've been making a pipebomb as a handgrenade and everything is working fine except it gets stuck where the grenade leaves the hand

 

I found a number of configs but this one should work. I'm not sure if its a problem with the config or the model itself.

class CfgPatches
{
	class Cl_pipebomb  
	{
		units[] = {};
		weapons[] = {"Cl_pipebomb_throw"};
		requiredAddons[] = { A3_characters_F};	
	};
};

class CfgAmmo 
{
	class Default;	// External class reference
	class Grenade : Default {};
	class GrenadeHand : Grenade {};
	class Cl_pipebomb_ammo  : GrenadeHand 
	{
		scope = 1;
		hit = 10.001;
		indirectHit = 0.001;
		indirectHitRange = 0.01;
		model = "\Cl_pipebomb\Cl_pipebomb.p3d";
		visibleFire = 0.5;
		audibleFire = 0.05;
		visibleFireTime = 1;
		fuseDistance = 8;
	};
};

class cfgMagazines
{
	class Default;	// External class reference
	class CA_Magazine : Default {};
	class HandGrenade : CA_Magazine {};
	class Cl_pipebomb :  HandGrenade
	{
	    model = "\Cl_pipebomb\Cl_pipebomb.p3d";
		displayName = "Cl_pipebomb";
		picture = "";
		displayNameShort = "pipebomb";
		ammo = "Cl_pipebomb_ammo";
	};
};


class CfgWeapons 
{
	class Default;
	class GrenadeLauncher : Default {};
	class Throw : GrenadeLauncher {};
	class Cl_pipebomb_Throw : Throw 
	{
		displayname = "Throw";
		muzzles[] = {"Cl_pipebomb_Muzzle"};
		class  ThrowMuzzle: GrenadeLauncher
		{
			aidispersioncoefx = 6;
			aidispersioncoefy = 6;
			autoreload = 1;
			cursor = "EmptyCursor";
			cursoraim = "throw";
			enableattack = 0;
			keepininventory = 1;
			magazinereloadtime = 0;
			maxrange = 60;
			maxrangeprobab = 0.03;
			midrange = 45;
			midrangeprobab = 0.9;
			minrange = 10;
			minrangeprobab = 0.2;
			modeloptics = "";
			reloadsound[] = {"", 0.000316228, 1};
			reloadtime = 0;
			showempty = 0;
			sound[] = {"", 0.000316228, 1};
			
		};
		
		class Cl_pipebomb_Muzzle: ThrowMuzzle
		{
			magazines[] = {"Cl_pipebomb"};
		};
	};
};

Share this post


Link to post
Share on other sites

does it have any mass in geolod?

Share this post


Link to post
Share on other sites

does it have any mass in geolod?

This. Its probably the model at fault rather than the config as it appears to be fine (at least to my tired eyes).

Share this post


Link to post
Share on other sites

thanks granq it was the geolod mass I missed it works perfectly now, it even bounces different because of the cylinder shape

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  

×