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

[L4D2] how to get when a survivor died by themselves?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tiphong
Member
Join Date: Aug 2022
Location: Taiwan
Old 05-13-2023 , 01:54   [L4D2] how to get when a survivor died by themselves?
Reply With Quote #1

hi, I am trying to get when a player dies either by bleeding out while incapacitated, falling to their death or falling into an instakill zone in the event player_death, basically dying without any surviovr or infected attacking them and then print or call a method after it finds a survivor who has suffered this.I cannot retrieve this, i have tried to do a loop on the survivors and call GetClientHealth() and also !IsPlayerAlive() to check, among many other things, but still nothing.. Any help would be greatly appreciated, thank you

Last edited by tiphong; 05-14-2023 at 16:13.
tiphong is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 05-13-2023 , 15:44   Re: [L4D2] how to get when a survivor died by themselves?
Reply With Quote #2

share your script
__________________
alasfourom is offline
tiphong
Member
Join Date: Aug 2022
Location: Taiwan
Old 05-13-2023 , 16:17   Re: [L4D2] how to get when a survivor died by themselves?
Reply With Quote #3

here is my script
Attached Files
File Type: sp Get Plugin or Get Source (announce.sp - 20 views - 124.4 KB)

Last edited by tiphong; 05-14-2023 at 16:11.
tiphong is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 05-14-2023 , 13:18   Re: [L4D2] how to get when a survivor died by themselves?
Reply With Quote #4

This is not exactly like what you want, but I would say it would be better this way maybe?

Untested
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_survivors_counter.sp - 51 views - 1.5 KB)
__________________
alasfourom is offline
tiphong
Member
Join Date: Aug 2022
Location: Taiwan
Old 05-14-2023 , 18:19   Re: [L4D2] how to get when a survivor died by themselves?
Reply With Quote #5

recently tested, i think it still doesnt seems to work but i did not test properly. i think maybe can try another method
tiphong is offline
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 05-14-2023 , 20:19   Re: [L4D2] how to get when a survivor died by themselves?
Reply With Quote #6

This should show any deaths happens to survivors
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_survivors_counter.sp - 50 views - 1.6 KB)
__________________
alasfourom is offline
tiphong
Member
Join Date: Aug 2022
Location: Taiwan
Old 05-14-2023 , 20:46   Re: [L4D2] how to get when a survivor died by themselves?
Reply With Quote #7

thanks, it seems to be working now, but I will test more, i had a feeling i had to make this check

Last edited by tiphong; 05-14-2023 at 20:46.
tiphong 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 07:42.


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