Raised This Month: $51 Target: $400
 12% 

[TF2] Tell is a death was fake


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Unreal1
AlliedModders Donor
Join Date: Dec 2010
Old 04-30-2012 , 07:54   [TF2] Tell is a death was fake
Reply With Quote #1

How can you tell is when a player dies they are still alive because they are using the dead ringer?
Unreal1 is offline
Cookies.net
Senior Member
Join Date: Jan 2011
Old 04-30-2012 , 08:24   Re: [TF2] Tell is a death was fake
Reply With Quote #2

I think this might help you:
http://wiki.alliedmods.net/Team_Fort...s#player_death
http://docs.sourcemod.net/api/index....ad=file&id=50&

death_flags in the event and TF_DEATHFLAG_DEADRINGER define
Cookies.net is offline
thediode
Junior Member
Join Date: Apr 2012
Old 05-05-2012 , 09:17   Re: [TF2] Tell is a death was fake
Reply With Quote #3

You could try this:

PHP Code:
public OnPluginStart(){
     
HookEvent("player_death"Player_Death);
}

public 
Action:PlayerDeath(Handle:Event, const string:Name[], const bool:DontBroadcast){
     new 
bool:DeadRingered GetEventInt(event"death_flags") & TF_DEATHFLAG_DEADRINGER// This will be true if they didn't actually die.
     // <code here>

thediode 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 00:58.


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