AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Solved [TF2] Enable Voodoo Skin (https://forums.alliedmods.net/showthread.php?t=315940)

Theon32 05-02-2019 08:12

[TF2] Enable Voodoo Skin
 
I was attempting to create my own zombie plugin to basically equip the voodoo cursed soul item on the player without having it. So far, this is what I have (with render mode as none):

https://i.imgur.com/Rmpx8Ab.png

however, this plugin only spawns in the voodoo cursed soul miscellaneous item, but it doesn't change your skin, so you only see this (with render mode as normal):

https://i.imgur.com/NEJ5Y2S.png

In the blue circles you can see some bones sticking out, but the player model doesn't have the voodoo textures, so I need to know how to make it have it. I also need to know how to lower the pitch of the voice, and make the the upgrade station not despawn the item.
Anyone know how to do this? And sorry if I'm not specific enough.

Thanks!

Batfoxkid 05-02-2019 10:53

Re: [TF2] Enable Voodoo Skin
 
Attributes 448 and 450 handle skin override, 448 ; 1 ; 450 ; 1

Attributes 1006 or 2048 handles voice pitch.

Theon32 05-02-2019 12:49

Re: [TF2] Enable Voodoo Skin
 
Thanks, but I don't know how to apply Attributes. Sorry I am a beginning coder.

Mitchell 05-02-2019 13:14

Re: [TF2] Enable Voodoo Skin
 
It's easier to just use m_bForceSkin and setting the m_nForceSkin to the correct zombie skin, however the forced skin effects the way disguise kits are seen also.

Theon32 05-02-2019 13:21

Re: [TF2] Enable Voodoo Skin
 
Again, I am just starting out as a coder so I do not know how to put this in the script.

Theon32 05-02-2019 19:40

Re: [TF2] Enable Voodoo Skin
 
Okay well I figured out how to use TF2 Attributes but the only thing that works is the voice pitch attribute.
PHP Code:

TF2Attrib_SetByName(client"player skin override"1.0);
TF2Attrib_SetByName(client"zombiezombiezombiezombie"1.0);
TF2Attrib_SetByName(client"SPELL: Halloween voice modulation"1.0); 


Powerlord 05-03-2019 01:08

Re: [TF2] Enable Voodoo Skin
 
As the TF2 Wiki says:

Quote:

Currently, all Voodoo-Cursed Souls will not change the player's skin when the server has tf_forced_holiday 1, thus showing parts of the soul clipping with the original player model. However, this does not occur on Halloween, Full Moons, or if the server has tf_forced_holiday 2 or tf_forced_holiday 7.
I've taken it to mean that the attributes also don't work unless the correct holiday is set.

Also, note that the holiday numbers listed there are wrong. You need 2 (Halloween) or 8 (Full Moon).

Theon32 05-03-2019 12:54

Re: [TF2] Enable Voodoo Skin
 
Actually I did already. If I didn't you wouldn't see what I saw in the pictures from the first post.
Edit: Just realized I didn't try forced holiday 7/8, only 2.

PC Gamer 05-03-2019 19:35

Re: [TF2] Enable Voodoo Skin
 
Quote:

Originally Posted by Batfoxkid (Post 2649816)
Attributes 448 and 450 handle skin override, 448 ; 1 ; 450 ; 1

Attributes 1006 or 2048 handles voice pitch.

When I set 448 and 450 to 1.0 all it does is change my HUD character to Zombie. When I view myself in thirdperson I don't see the voodoo skin. I have the voodoo skin in my inventory, but I don't have it equipped in my loadout.

I tried with tf_forced_holiday 2 and 8. No luck seeing the voodoo skin unless I physically equip it.

Theon32 05-03-2019 20:35

Re: [TF2] Enable Voodoo Skin
 
I might have to go to this guy's suggestion:
Quote:

Originally Posted by Mitchell (Post 2649836)
It's easier to just use m_bForceSkin and setting the m_nForceSkin to the correct zombie skin, however the forced skin effects the way disguise kits are seen also.

But I don't know how to do it.


All times are GMT -4. The time now is 05:46.

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