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

Solved [TF2] Enable Voodoo Skin


Post New Thread Reply   
 
Thread Tools Display Modes
Theon32
Member
Join Date: Sep 2018
Location: mvm_isolation_rc3
Old 05-04-2019 , 18:48   Re: [TF2] Enable Voodoo Skin
Reply With Quote #11

Figured it out from this post >> https://forums.alliedmods.net/showthread.php?t=232434

Now it looks right! Thanks guys so much, I just have one last question.
How do you detect when a player upgrades at the upgrade station or touches the resupply locker?
Theon32 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-04-2019 , 19:16   Re: [TF2] Enable Voodoo Skin
Reply With Quote #12

If you're asking what fires when your loadout changes, it's the post_inventory_application event
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Theon32
Member
Join Date: Sep 2018
Location: mvm_isolation_rc3
Old 05-05-2019 , 10:46   Re: [TF2] Enable Voodoo Skin
Reply With Quote #13

It works! Thanks Powerlord and everyone else that helped.
Theon32 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 05-05-2019 , 14:21   Re: [TF2] Enable Voodoo Skin
Reply With Quote #14

I seem to have the opposite problem that you had. I see the voodoo cursed soul skin but the arms and legs are invisible.

Any idea what I'm doing wrong?

Code:
if (IsValidClient(client) && IsPlayerAlive(client) && GetClientTeam(client)==3 && TF2_GetPlayerClass(client) !=TFClass_Spy)
{
	new weapon = GetPlayerWeaponSlot(client, 0); 
	TF2Attrib_SetByName(weapon, "player skin override", 1.0);
	TF2Attrib_SetByName(weapon, "zombiezombiezombiezombie", 1.0);
	TF2Attrib_SetByName(weapon, "SPELL: Halloween voice modulation", 1.0);	
	SetEntProp(client, Prop_Send, "m_bForcedSkin", 1);
	SetEntProp(client, Prop_Send, "m_nForcedSkin", 5);
	TF2_RegeneratePlayer(client);
}
PC Gamer is offline
Theon32
Member
Join Date: Sep 2018
Location: mvm_isolation_rc3
Old 05-08-2019 , 22:32   Re: [TF2] Enable Voodoo Skin
Reply With Quote #15

Sorry I had to remove the last post.

When I am free tomorrow, I can give you the file that I created. For some reason even though I can see myself fine, other players only see half of me, missing the skeleton item. I got from another plugin a way that allowed me to create miscellaneous items and attach it to the player. I didn’t test that plugin though, and it is only meant for bots.

Edit: Here's the file.
Edit2: Sorry if the code doesn't look the cleanest, I'm new to scripting, and I have a lot of timers because if the action activates immediately, nothing happens, it needs to be delayed.
Attached Files
File Type: sp Get Plugin or Get Source (beazombie.sp - 100 views - 6.0 KB)
File Type: smx beazombie.smx (8.0 KB, 78 views)

Last edited by Theon32; 05-09-2019 at 07:09. Reason: Writing Edit2
Theon32 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-09-2019 , 13:30   Re: [TF2] Enable Voodoo Skin
Reply With Quote #16

Quote:
Originally Posted by Theon32 View Post
Sorry I had to remove the last post.

When I am free tomorrow, I can give you the file that I created. For some reason even though I can see myself fine, other players only see half of me, missing the skeleton item. I got from another plugin a way that allowed me to create miscellaneous items and attach it to the player. I didn’t test that plugin though, and it is only meant for bots.

Edit: Here's the file.
Edit2: Sorry if the code doesn't look the cleanest, I'm new to scripting, and I have a lot of timers because if the action activates immediately, nothing happens, it needs to be delayed.
The reason those plugins are only for bots is because for real players, Valve makes both weapons and cosmetic items invisible if you try to equip/attach them to a player.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Theon32
Member
Join Date: Sep 2018
Location: mvm_isolation_rc3
Old 05-09-2019 , 13:50   Re: [TF2] Enable Voodoo Skin
Reply With Quote #17

Quote:
Originally Posted by Powerlord View Post
The reason those plugins are only for bots is because for real players, Valve makes both weapons and cosmetic items invisible if you try to equip/attach them to a player.
But then why can you see it on yourself, and is there any other way to spawn it on the player other than using 'tf_wearable'?
Theon32 is offline
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 05-09-2019 , 19:09   Re: [TF2] Enable Voodoo Skin
Reply With Quote #18

Theon32... I tried testing the plugin but it is missing the be.the.zombie.txt gamedata file.
PC Gamer is offline
Theon32
Member
Join Date: Sep 2018
Location: mvm_isolation_rc3
Old 05-09-2019 , 19:16   Re: [TF2] Enable Voodoo Skin
Reply With Quote #19

My bad, forgot about that. There's a file that I forgot to include. Put this in your gamedata folder.
Attached Files
File Type: txt be.the.zombie.txt (166 Bytes, 95 views)
Theon32 is offline
proerd888
Member
Join Date: Oct 2019
Location: Brazil, SP, Campinas
Old 02-29-2020 , 19:18   Re: [TF2] Enable Voodoo Skin
Reply With Quote #20

Please add targets to admin
proerd888 is offline
Reply



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 09:02.


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