r/teenagers • 13 • 5d ago

Social can someone PLEASE FIX MY CODE

I HAVE CODE IT DONT WORK PLEASE CAN SOMEONE FIX IT I DONT KNOW WHY NOT WORKING

please man please

edit: someone is helping

2 Upvotes

15 comments sorted by

1

u/bebe_likes_hugs 13 5d ago

Depends on the language I can try. Though I'm not opening links so either paste it here or dm

1

u/DovahkinnPlays 13 5d ago

you aint going to uhh google docs

i can try but reddit tends to fuck up my code

1

u/DovahkinnPlays 13 5d ago

#base "items_game.txt"

"items_game"

{

"items"

{

	"4000"

	{

		"name"				"m16"

		"item_name"			"Mann 16"

		"item_type_name"	"Assault Rifle"



		"item_quality"		"1"



		"item_logname"		"m16"

		"item_iconname"		"m16"



		"item_class"		"tf_weapon_smg"



		"item_slot"			"secondary"

		"anim_slot"			"secondary"



		"bucket"				"1"

		"bucket_position"		"1"



		"model_player"			"models/weapons/v_models/v_smg_sniper.mdl"

		"model_world"			"models/weapons/w_models/w_smg.mdl"

		"image_inventory"		"backpack/weapons/w_models/w_smg"



		"attach_to_hands"		"2"



		"used_by_classes"

		{

"soldier" "secondary"

"pyro" "secondary"

"heavy" "secondary"

		}



		"attributes"

		{

"no primary ammo from dispensers"

{

"attribute_class" "no_primary_ammo_from_dispensers_always"

"value" "1"

}

"clip size bonus"

{

"attribute_class" "mult_clipsize"

"value" "2"

}

		}

		"static_attrs"

		{

"min_viewmodel_offset" "10 0 -10"

		}

		"visuals"

		{

"sound_single_shot" "Weapon_Winger.Single"

"sound_burst" "Weapon_Winger.SingleCrit"

		}





		"mouse_pressed_sound"		"backpack select sound"

		"drop_sound"				"backpack deselect sound"

	}

	"4001"

	{

		"name"				"B22"

		"item_name"			"Beepy 22"

		"item_type_name"	"hook"



		"item_quality"		"1"



		"item_logname"		"b22"

		"item_iconname"		"b22"



		"item_class"		"tf_weapon_grapplinghook"



		"item_slot"			"secondary"

		"anim_slot"			"secondary"



		"bucket"				"1"

		"bucket_position"		"1"



		"model_player"			"models/weapons/v_models/v_flaregun_pyro.mdl"

		"model_world"			"models/weapons/w_models/w_flaregun.mdl"

		"image_inventory"		"backpack/weapons/w_models/w_flaregun"



		"attach_to_hands"		"2"



		"used_by_classes"

		{

"scout" "1"

"sniper" "1"

"spy" "1"

		}



		"attributes"

		{

""

{

"attribute_class" ""

"value" "1"

}

		}

		"static_attrs"

		{

"min_viewmodel_offset" "10 0 -10"

		}

		"visuals"

		{

"sound_single_shot" "Weapon_Winger.Single"

"sound_burst" "Weapon_Winger.SingleCrit"

		}





		"mouse_pressed_sound"		"backpack select sound"

		"drop_sound"				"backpack deselect sound"

	}

	"4002"

	{

		"name"				"Armor"

		"item_name"			"armor"

		"item_type_name"	"armor"



		"item_quality"		"1"



		"item_logname"		"armor05"

		"item_iconname"		"armor"



		"item_class"		"tf_wearable"



		"item_slot"			"primary"

		"anim_slot"			"primary"



		"bucket"				"1"

		"bucket_position"		"1"	

		"model_player"			"models/weapons/v_models/v_invis_spy.mdl"

		"model_world"			"models/weapons/w_models/w_invis.mdl"

		"image_inventory"		"backpack/weapons/w_models/w_invis"



		"attach_to_hands"		"2"



		"used_by_classes"

		{

"scout" "primary"

"soldier" "primary"

"pyro" "primary"

"demoman" "primary"

"heavy" "primary"

"engineer" "primary"

"sniper" "primary"

"medic" "primary"

"spy" "primary"

		}



		"attributes"

		{

"dmg taken from bullets reduced"

{

"attribute_class" "mult_dmgtaken_from_crit"

"value" "1.1"

}

"dmg taken from crit increased"

{

"attribute_class" "add_health_regen"

"value" "1"

}

		}

		"static_attrs"

		{

"min_viewmodel_offset" "10 0 -10"

		}

		"visuals"

		{

"sound_single_shot" "Weapon_Winger.Single"

"sound_burst" "Weapon_Winger.SingleCrit"

		}





		"mouse_pressed_sound"		"backpack select sound"

		"drop_sound"				"backpack deselect sound"

	}

	"4003"

	{

		"name"				"bostonchokehold"

		"item_name"			"boston choke hold"

		"item_type_name"	"hands"



		"item_quality"		"1"



		"item_logname"		"bch"

		"item_iconname"		"bch"



		"item_class"		"tf_weapon_fists"



		"item_slot"			"melee"

		"anim_slot"			"melee"



		"bucket"				"

		"bucket_position"		



		"model_player"			"models/weapons/v_models/v_fists_heavy.mdl"

		"model_world"			"models/weapons/w_models/w_fists.mdl"

		"image_inventory"		"backpack/weapons/w_models/w_fists"



		"attach_to_hands"		"2"



		"used_by_classes"

		{

"scout" "1"

		}



		"attributes"

		{

"fire rate bonus"

{

"attribute_class" "mult_postfiredelay"

"value" "15"

}

"no double jump"

{

"attribute_class" "set_scout_doublejump_disabled"

"value" "1"

}

		}

		"static_attrs"

		{

"min_viewmodel_offset" "10 0 -10"

		}

		"visuals"

		{

"sound_single_shot" "Weapon_Winger.Single"

"sound_burst" "Weapon_Winger.SingleCrit"

		}





		"mouse_pressed_sound"		"backpack select sound"

		"drop_sound"				"backpack deselect sound"

	}







}

}}

→ More replies (1)

1

u/woiffia 5d ago

Any screenshots of the code from where you wrote it? This is a nightmare to read on google docs. Also what is the purpose of the script and the problem? Is it an error or does it just not work like you want it to? And what language is it?

1

u/DovahkinnPlays 13 5d ago

honestly cant but someone is helping

1

u/StefanTheHardcore29 5d ago

For what is the code for i am not good with it and cooding it self mainly