Raised This Month: $45 Target: $400
 11% 

Possible to create fade away silent kill effect in TF2?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
The Gaben
Junior Member
Join Date: Aug 2016
Location: Texas
Old 04-05-2018 , 20:40   Possible to create fade away silent kill effect in TF2?
Reply With Quote #1

How do you recreate the Y.E.R./Wanga Prick kill effect and make the player make absolutely no noise on death?

Last edited by The Gaben; 04-05-2018 at 20:42.
The Gaben is offline
ThatKidWhoGames
Veteran Member
Join Date: Jun 2013
Location: IsValidClient()
Old 04-09-2018 , 11:57   Re: Possible to create fade away silent kill effect in TF2?
Reply With Quote #2

The only thing I can think of is using TF2Attributes to apply the silent killer attribute to each player's weapon. The problem however is that the kills are only silent with a backstab, so it won't work with all weapons except for spy knives.
ThatKidWhoGames is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 04-09-2018 , 12:08   Re: Possible to create fade away silent kill effect in TF2?
Reply With Quote #3

You can hook the player's damage and determine if the player dies, and use a sound hook to prevent the death sound if it's done by a certain player or weapon.
Mitchell is offline
ThatKidWhoGames
Veteran Member
Join Date: Jun 2013
Location: IsValidClient()
Old 04-09-2018 , 12:29   Re: Possible to create fade away silent kill effect in TF2?
Reply With Quote #4

Quote:
Originally Posted by Mitchell View Post
You can hook the player's damage and determine if the player dies, and use a sound hook to prevent the death sound if it's done by a certain player or weapon.
Didn't even think of that, nice method!
ThatKidWhoGames is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 04-09-2018 , 13:39   Re: Possible to create fade away silent kill effect in TF2?
Reply With Quote #5

Quote:
Originally Posted by ThatKidWhoGames View Post
Didn't even think of that, nice method!
Actually i looked up how i do it in my murder gamemode and i just set a bool variable for the player to true on the player_death (pre) event and in the sound hook return Plugin_Stop if the bool is true. I set the variable back to true on player_spawn.
I do some other stuff like emitting my own death sounds on backstab also but the gist of it is the variable and sound hook.
Mitchell is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 04-09-2018 , 21:30   Re: Possible to create fade away silent kill effect in TF2?
Reply With Quote #6

As for the fadeaway of corpses, there is a netprop on tf_ragdoll to do it. However, I haven't played around with ragdoll settings in years... and you have to do it before the game dispatches them because once dispatched, ragdolls are completely client-side.

Edit: I want to say that the netprop is m_bCloaked
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 04-09-2018 at 21:31.
Powerlord 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 03:08.


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