Raised This Month: $32 Target: $400
 8% 

[L4D & L4D2] Emergency Treatment With First Aid Kit And CPR


Post New Thread Reply   
 
Thread Tools Display Modes
Shadowysn
Senior Member
Join Date: Sep 2015
Location: Location:
Old 04-22-2019 , 23:54   Re: [L4D & L4D2] Emergency Treatment With First Aid Kit And CPR
Reply With Quote #51

Found a bug.

If you Crouch+Use inside a person you've recently resuscitated as they die, before the FAINT hint shows up, you instantly reach to 100% CPR progress and resuscitate them again.
This effectively allows two B&W people to stay alive as long as they don't die at the same time or get seperated.

Last edited by Shadowysn; 04-23-2019 at 00:06.
Shadowysn is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 04-24-2019 , 12:20   Re: [L4D & L4D2] Emergency Treatment With First Aid Kit And CPR
Reply With Quote #52

Quote:
/*
Fork by Dragokas.

ChangeLog:

1.0.4 (Dragokas)
- Created global forward: void OnClientCPR(int client, int subject, bool bUseMedkit)

1.0.3 (Dragokas)
- Fixed the case when player died in the air so you unable to help him.

1.0.2 (Dragokas)
- Added translation into Russian
- Translated to new syntax and methodmaps

1.0.1 (Dragokas)
- Added restoring player statictics
*/
Attached Files
File Type: sp Get Plugin or Get Source (l4d_revivecpr.sp - 621 views - 21.1 KB)
File Type: txt revive_cpr.phrases.txt (1.4 KB, 304 views)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 08-22-2019 , 03:39   Re: [L4D & L4D2] Emergency Treatment With First Aid Kit And CPR
Reply With Quote #53

It's very hard to see the default red light flashing over a body to be resuscitated. So if any one here prefers a much larger light that can be seen from greater distances, just replace the old particle effect called "weapon_pipebomb_blinking_light" with either "railroad_light_blink2" (it's a green globe light) or "railroad_light_blink4" (red globe light) - both these particle effects works with l4d1 & 2.

Code line:
PHP Code:
GhostLight[victim]=AddParticle("weapon_pipebomb_blinking_light"DeathPos[victim]);
One thing that would be nice to see on a unconscious-body is some kind of glow effect, so that the other players can see that body through any object, ie through walls etc...maybe something for someone to add to this plugin in the near future perhaps.
Sunyata is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 08-26-2019 , 05:56   Re: [L4D & L4D2] Emergency Treatment With First Aid Kit And CPR
Reply With Quote #54

Updated.

Quote:
1.0.5
- signal light is replaced by more bright ligth (thanks to Sunyata)
- added particle precaching.
- RemoveEdict is replaced by AcceptEntityInput.
- added the sound when you successfully revived the player and when you began to revive.
Attached Files
File Type: zip CPR.zip (23.8 KB, 520 views)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 08-26-2019 , 06:04   Re: [L4D & L4D2] Emergency Treatment With First Aid Kit And CPR
Reply With Quote #55

Thanks for the update Dragokas
Sunyata 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 03:46.


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