View Single Post
JeremWatts
Junior Member
Join Date: Apr 2021
Old 04-08-2021 , 07:34   Re: Need help setting up a loadout plugin that piggybacks [TF2items] Give Weapon plug
Reply With Quote #6

WAIT NO YOUR SCRIPT WORKS

alright yeah idk what was going wrong with tf2items but this is just as good, gdi I could kiss you man. Thank you so much lol - ignore my last post.

I've added the other classes to the code

Code:
{
	int client = GetClientOfUserId(GetEventInt(event, "userid"));
	
	if (TF2_GetPlayerClass(client) == TFClass_Scout)
	{
		TF2_RemoveWeaponSlot(client, 0);
		CreateWeapon(client, "tf_weapon_scattergun", 1103, 6);
		
		TF2_RemoveWeaponSlot(client, 1);		
		CreateWeapon(client, "tf_weapon_lunchbox_drink", 163, 6);
		
		TF2_RemoveWeaponSlot(client, 2);		
		CreateWeapon(client, "tf_weapon_bat", 0, 6);
	}

	if (TF2_GetPlayerClass(client) == TFClass_Medic)
	{
		TF2_RemoveWeaponSlot(client, 0);
		CreateWeapon(client, "tf_weapon_shotgun_primary", 9, 6);
		
		TF2_RemoveWeaponSlot(client, 1);		
		CreateWeapon(client, "tf_weapon_medigun", 411, 6);
		
		TF2_RemoveWeaponSlot(client, 2);		
		CreateWeapon(client, "tf_weapon_bonesaw", 413, 6);
	}

	if (TF2_GetPlayerClass(client) == TFClass_Heavy)
	{
		TF2_RemoveWeaponSlot(client, 0);
		CreateWeapon(client, "tf_weapon_rocketlauncher", 414, 6);
		
		TF2_RemoveWeaponSlot(client, 1);		
		CreateWeapon(client, "tf_weapon_shotgun", 425, 6);
		
		TF2_RemoveWeaponSlot(client, 2);		
		CreateWeapon(client, "tf_weapon_stickbomb", 307, 6);
	}
	
	if (TF2_GetPlayerClass(client) == TFClass_Engineer)
	{
		TF2_RemoveWeaponSlot(client, 0);
		CreateWeapon(client, "tf_weapon_shotgun", 1153, 6);
		
		TF2_RemoveWeaponSlot(client, 1);		
		CreateWeapon(client, "tf_weapon_revolver", 61, 6);
		
		TF2_RemoveWeaponSlot(client, 2);		
		CreateWeapon(client, "tf_weapon_robot_arm", 142, 6);
	}
	
	if (TF2_GetPlayerClass(client) == TFClass_Sniper)
	{
		TF2_RemoveWeaponSlot(client, 0);
		CreateWeapon(client, "tf_weapon_sniperrifle_classic", 1098, 6);
		
		TF2_RemoveWeaponSlot(client, 1);		
		CreateWeapon(client, "tf_weapon_jar", 58, 6);
		
		TF2_RemoveWeaponSlot(client, 2);		
		CreateWeapon(client, "tf_weapon_club", 232, 6);
	}
}
With this code the scout and medic are still fine but, what do I change to get the other 3 classes working?

Is there anyway to change attributes with this plugin? If not all good, i'll cope. If so then how would i reduce the clip on the liberty launcher to 2 and increase the movespeed when the cabertoss is active?
JeremWatts is offline