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

[L4D2] Use defib animation when respawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Beeee
New Member
Join Date: May 2019
Old 05-20-2019 , 04:03   [L4D2] Use defib animation when respawn
Reply With Quote #1

Hello, I'm here to ask how to respawn using
PHP Code:
SDKCall(hRoundRespawnclient); 
and use the defib animation because without it the respawn is instant.
I tried to find a solution but I didn't find it.I've tried also to remove dead bodies with this code https://forums.alliedmods.net/showthread.php?t=129095 but it gives me errors when compiling

Last edited by Beeee; 05-20-2019 at 06:47.
Beeee is offline
Beeee
New Member
Join Date: May 2019
Old 05-22-2019 , 05:57   Re: [L4D2] Use defib animation when respawn
Reply With Quote #2

Quote:
Originally Posted by Beeee View Post
Hello, I'm here to ask how to respawn using
PHP Code:
SDKCall(hRoundRespawnclient); 
and use the defib animation because without it the respawn is instant.
I tried to find a solution but I didn't find it.I've tried also to remove dead bodies with this code https://forums.alliedmods.net/showthread.php?t=129095 but it gives me errors when compiling
Can someone help me?
Beeee is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 05-22-2019 , 07:08   Re: [L4D2] Use defib animation when respawn
Reply With Quote #3

i dont understand what are you need?

PHP Code:
#include sdktools

public OnPluginStart()
{
    
HookEvent("dead_survivor_visible"SeesDeathPlayer);
}

public 
SeesDeathPlayer(Handle:eventString:event_name[], bool:dontBroadcast)
{
    
int fiksik GetEventInt(event"subject");
    
CreateTimer(0.1vKillEntIndexToEntRef(fiksik))
}

public 
Action vKill(Handle timerint fiksik)
{
    
int iEnt EntRefToEntIndex(fiksik)
    
AcceptEntityInput(iEnt"kill")

BHaType is offline
Send a message via AIM to BHaType
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 05:35.


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