Raised This Month: $32 Target: $400
 8% 

[TF2] Custom Weapons 3 (Beta 2)


Post New Thread Reply   
 
Thread Tools Display Modes
TastyMedula
Junior Member
Join Date: Aug 2018
Old 08-08-2018 , 12:31   Re: [TF2] Custom Weapons 3 (Beta 2)
Reply With Quote #181

Why does my game crash everytime i shoot a weapon with a custom projectile?
Is there something wrong?(I'm sorry for my ignorance btw)
Code:
"The Drunkard's Wrath"
{
	"classes"
	{
		"demoman"		"0"
	}
	"baseclass"		"grenadelauncher"
	"baseindex"		"19"
	"mag"			"6"
	"ammo"			"16"
	"logname"		"drunkard_wrath"
	"description"	"(+) 50% Larger clip size\n(+) Press your Special Attack key to switch Firing Modes\n(+) Hammer Firing increases firing speed,\ndecreases movement speed and reduces switching speed\nTrigger Firing is the normal firing type\n(+) This weapon deploys and holsters 25% faster\n(+) 25% Increased projectile speed\n \n(-) 60% Smaller blast radius\n(-) 25% Damage penalty\n(-) Grenades shatter on contact with surfaces"
	"attributes"
	{
		"provide on active"
		{
			"plugin"	"tf2attributes"
			"value"		"1"
		}
		"clip size bonus"
		{
			"plugin"	"tf2attributes"
			"value"		"1.5"
		}
		"hammer mechanic"
		{
			"plugin"	"zethax-attributes"
			"value"		"1"
		}
		"Projectile speed increased"
		{
			"plugin"	"tf2attributes"
			"value"		"1.25"
		}
		"single wep deploy time decreased"
		{
			"plugin"	"tf2attributes"
			"value"		"0.75"
		}
		"single wep holster time increased"
		{
			"plugin"	"tf2attributes"
			"value"		"0.75"
		}
		"Blast radius decreased"
		{
			"plugin"	"tf2attributes"
			"value"		"0.4"
		}
		"damage penalty"
		{
			"plugin"	"tf2attributes"
			"value"		"0.75"
		}
		"sticky air burst mode"
		{
			"plugin"	"tf2attributes"
			"value"		"2"
		}
		"grenade no spin"
		{
			"plugin"	"tf2attributes"
			"value"		"1"
		}
                "custom projectile model"
	        {       
	                "plugin"	"tf2attributes"
		        "value"		"models/weapons/c_models/c_drunkard_wrath_projectile/w_grenade_drunkard_wrath.mdl"
                }
        }
        "viewmodel"
	{
		"modelname"		
"models/weapons/c_models/c_drunkard_wrath/c_drunkard_wrath.mdl"
	}
	"worldmodel"
	{
		"modelname"
"models/weapons/c_models/c_drunkard_wrath/c_drunkard_wrath.mdl"
        }
        "sound"
	{                     
		"player"
		{
			"find"		")weapons/grenade_launcher_shoot.wav"
			"replace"	"weapons/drunkards_wrath/grenade_launcher_shoot.wav"
			"pitch"		"75"
		}
		"player"
		{
			"find"		")weapons/grenade_launcher_shoot_crit.wav"
			"replace"	"weapons/drunkards_wrath/grenade_launcher_shoot_crit.wav"
			"pitch"		"150"
		}
        }              
}

Last edited by TastyMedula; 08-08-2018 at 12:42.
TastyMedula is offline
crafting
Senior Member
Join Date: May 2014
Location: Somewhere on Earth
Old 08-29-2018 , 21:14   Re: [TF2] Custom Weapons 3 (Beta 2)
Reply With Quote #182

Quote:
Originally Posted by TastyMedula View Post
Why does my game crash everytime i shoot a weapon with a custom projectile?
Is there something wrong?(I'm sorry for my ignorance btw)
It's due to the attribute "custom projectile model". It's not handled correctly within this version of Custom Weapons.
crafting is offline
trbz_
Junior Member
Join Date: May 2018
Old 10-04-2018 , 20:44   Re: [TF2] Custom Weapons 3 (Beta 2)
Reply With Quote #183

There really needs to be some sort of compendium of all the attributes plugins here and on the Custom Weapons 2 page. I could have sworn someone made an "addcond on hit" attribute but I can't find it for the life of me. I'm trying to make a sort of reverse BFB that slows the user briefly on firing and gives enemies a short speed boost on hit
trbz_ is offline
BlazingDiancie
Member
Join Date: Sep 2014
Old 10-25-2018 , 11:12   Re: [TF2] Custom Weapons 3 (Beta 2)
Reply With Quote #184

Can someone help me with custom models? I have a custom model in the correct folder and I've set the weapon file correctly. And yes, I do have the model in the same place in my TF2 installation.

"The 18-Shot"
{
"classes"
{
"spy" "0"
}
"baseclass" "revolver"
"baseindex" "24"
"nobots" "1"
"quality" "6"
"logname" "18shot"
"description" "Placeholder"
"attributes"
{
"clip size bonus"
{
"plugin" "tf2attributes"
"value" "3"
}
"bullets per shot bonus"
{
"plugin" "tf2attributes"
"value" "3"
}
"damage penalty"
{
"plugin" "tf2attributes"
"value" "0.75"
}
"crit mod disabled"
{
"plugin" "tf2attributes"
"value" "0"
}
"maxammo secondary reduced"
{
"plugin" "tf2attributes"
"value" "0.75"
}
"Reload time increased"
{
"plugin" "tf2attributes"
"value" "1.4"
}
"mod ammo per shot"
{
"plugin" "tf2attributes"
"value" "3"
}
}
"viewmodel" // Custom viewmodel.
{
"modelname" "cw3models/18shot/models/weapons/c_models/c_revolver/c_revolver.mdl" // Location of the viewmodel file.
}
"worldmodel" // Custom viewmodel.
{
"modelname" "cw3models/18shot/models/weapons/c_models/c_revolver/c_revolver.mdl" // Location of the viewmodel file.
}
}
BlazingDiancie is offline
crafting
Senior Member
Join Date: May 2014
Location: Somewhere on Earth
Old 10-25-2018 , 18:54   Re: [TF2] Custom Weapons 3 (Beta 2)
Reply With Quote #185

Quote:
Originally Posted by BlazingDiancie View Post
Can someone help me with custom models? I have a custom model in the correct folder and I've set the weapon file correctly. And yes, I do have the model in the same place in my TF2 installation.
Please re-read the main post for the CW plugin (about half-way down when it says "ABOUT INVISIBLE WEAPONS").

It should only work if you only set the "viewmodel" and if the base weapon is a stock weapon. Other players won't be able to see the custom model, but only in your view.

Last edited by crafting; 10-25-2018 at 18:55.
crafting is offline
BlazingDiancie
Member
Join Date: Sep 2014
Old 10-26-2018 , 08:28   Re: [TF2] Custom Weapons 3 (Beta 2)
Reply With Quote #186

Quote:
Originally Posted by crafting View Post
Please re-read the main post for the CW plugin (about half-way down when it says "ABOUT INVISIBLE WEAPONS").

It should only work if you only set the "viewmodel" and if the base weapon is a stock weapon. Other players won't be able to see the custom model, but only in your view.
I just posted back on your profile. This isnt a worldmodel issue, Im aware of the invisible weapons "thing", aka, Valve being assholes.
BlazingDiancie is offline
Umbrozium
Junior Member
Join Date: Dec 2017
Location: ǝʌɐɹ
Old 11-19-2018 , 04:15   Re: [TF2] Custom Weapons 3 (Beta 2)
Reply With Quote #187

Is there a way to apply sounds to a custom minigun?
__________________
overmind searches for undermeanings

Last edited by Umbrozium; 11-21-2018 at 13:10.
Umbrozium is offline
TastyMedula
Junior Member
Join Date: Aug 2018
Old 11-25-2018 , 14:16   Re: [TF2] Custom Weapons 3 (Beta 2)
Reply With Quote #188

How do you apply custom models to buildings? Is it just like in weapons?
TastyMedula is offline
crafting
Senior Member
Join Date: May 2014
Location: Somewhere on Earth
Old 11-29-2018 , 13:16   Re: [TF2] Custom Weapons 3 (Beta 2)
Reply With Quote #189

Quote:
Originally Posted by Umbrozium View Post
Is there a way to apply sounds to a custom minigun?
Not with this version.
crafting is offline
crafting
Senior Member
Join Date: May 2014
Location: Somewhere on Earth
Old 11-29-2018 , 13:18   Re: [TF2] Custom Weapons 3 (Beta 2)
Reply With Quote #190

Quote:
Originally Posted by TastyMedula View Post
How do you apply custom models to buildings? Is it just like in weapons?
Sadly not. I used an outside plugin to handle that, but it isn't reliable.
crafting is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode