Raised This Month: $7 Target: $400
 1% 

[L4D2] Server Side Ragdolls


Post New Thread Reply   
 
Thread Tools Display Modes
Dreyson
Member
Join Date: Nov 2019
Location: Utah
Old 07-31-2020 , 23:31   Re: [L4D2] Server Side Ragdolls
Reply With Quote #11

This mod is very good but one problem, are the survivors supposed to disappear when they die because whenever a survivor dies a ragdoll clone of them appears but their death model stays behind?

Last edited by Dreyson; 07-31-2020 at 23:32. Reason: Typos
Dreyson is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 08-01-2020 , 07:50   Re: [L4D2] Server Side Ragdolls
Reply With Quote #12

Updated
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
Dreyson
Member
Join Date: Nov 2019
Location: Utah
Old 08-09-2020 , 19:44   Re: [L4D2] Server Side Ragdolls
Reply With Quote #13

I see you fixed it! The only problem that is left that is happening to me as far as i know is that when a survivor dies their ragdoll has a high velocity (Ragdoll flings when survivor dies) but other than that its good!
Dreyson is offline
Dreyson
Member
Join Date: Nov 2019
Location: Utah
Old 08-10-2020 , 20:37   Re: [L4D2] Server Side Ragdolls
Reply With Quote #14

Oh yeah and it flings in one direction
Dreyson is offline
Forgetest
Member
Join Date: Aug 2020
Old 04-27-2021 , 04:54   Re: [L4D2] Server Side Ragdolls
Reply With Quote #15

Seems broken since somewhat update, crashing server.

PHP Code:
CreateServerRagdoll(CBaseAnimating *, int, const CTakeDamageInfo *, intbool
Tried to fix it, by changing the SDKCall param 3 (which is the const CTakeDamageInfo *) to be passed as pointer, and it works fine now.

PHP Code:
StartPrepSDKCall(SDKCall_Static);
PrepSDKCall_SetFromConf(hDataSDKConf_Signature"CreateServerRagdoll");
PrepSDKCall_AddParameter(SDKType_CBasePlayerSDKPass_Pointer);
PrepSDKCall_AddParameter(SDKType_PlainOldDataSDKPass_Plain);
PrepSDKCall_AddParameter(SDKType_PlainOldDataSDKPass_Pointer);
PrepSDKCall_AddParameter(SDKType_PlainOldDataSDKPass_Plain);
PrepSDKCall_AddParameter(SDKType_BoolSDKPass_Plain);
PrepSDKCall_SetReturnInfo(SDKType_CBaseEntitySDKPass_Pointer);
g_hRagdoll EndPrepSDKCall(); 
In addition, it seems the ragdoll doesn't get removed if people are rescued from rescuable rooms (ensured convar is on). Perhaps the event "survivor_rescued" is unreliable. (or my weird server is to blame? )
Forgetest is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 04-28-2021 , 20:51   Re: [L4D2] Server Side Ragdolls
Reply With Quote #16

Quote:
Originally Posted by Forgetest View Post
Seems broken since somewhat update, crashing server.

PHP Code:
CreateServerRagdoll(CBaseAnimating *, int, const CTakeDamageInfo *, intbool
Tried to fix it, by changing the SDKCall param 3 (which is the const CTakeDamageInfo *) to be passed as pointer, and it works fine now.

PHP Code:
StartPrepSDKCall(SDKCall_Static);
PrepSDKCall_SetFromConf(hDataSDKConf_Signature"CreateServerRagdoll");
PrepSDKCall_AddParameter(SDKType_CBasePlayerSDKPass_Pointer);
PrepSDKCall_AddParameter(SDKType_PlainOldDataSDKPass_Plain);
PrepSDKCall_AddParameter(SDKType_PlainOldDataSDKPass_Pointer);
PrepSDKCall_AddParameter(SDKType_PlainOldDataSDKPass_Plain);
PrepSDKCall_AddParameter(SDKType_BoolSDKPass_Plain);
PrepSDKCall_SetReturnInfo(SDKType_CBaseEntitySDKPass_Pointer);
g_hRagdoll EndPrepSDKCall(); 
In addition, it seems the ragdoll doesn't get removed if people are rescued from rescuable rooms (ensured convar is on). Perhaps the event "survivor_rescued" is unreliable. (or my weird server is to blame? )
I checked only on Windows and everything works as it should, on Linux everything should also work because the class structures were not changed at least all the offsets for CTerrorPlayer remained the same
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
Forgetest
Member
Join Date: Aug 2020
Old 05-01-2021 , 17:11   Re: [L4D2] Server Side Ragdolls
Reply With Quote #17

Quote:
Originally Posted by BHaType View Post
I checked only on Windows and everything works as it should, on Linux everything should also work because the class structures were not changed at least all the offsets for CTerrorPlayer remained the same
It was running on my Linux Server (OS: Ubuntu 18.04).

One of the crash dumps

Guessing this is the case where function prototypes differ on Win and Linux, I have no idea tho. But the function provided above is what I could find in IDA disassembly of the Linux one.

Look forward to kind bros providing more info needed.
Forgetest is offline
Kid_Bandes
Member
Join Date: May 2010
Old 05-02-2021 , 03:11   Re: [L4D2] Server Side Ragdolls
Reply With Quote #18

Whenever I slay the last bot, my game will crash, it is normal?
Kid_Bandes is offline
BHaType
Great Tester of Whatever
Join Date: Jun 2018
Old 05-05-2021 , 22:03   Re: [L4D2] Server Side Ragdolls
Reply With Quote #19

Updated

- Replacing the game CTakeDamageInfo with an custom one
- Fixed ragdoll flint

Notes

- Now required Source Scramble to work
__________________
cry
BHaType is offline
Send a message via AIM to BHaType
cintlex
New Member
Join Date: Feb 2022
Old 02-10-2022 , 17:36   Re: [L4D2] Server Side Ragdolls
Reply With Quote #20

Is there a way you can attach the death camera to the ragdoll when someone dies? At the moment the camera just stays on the static body.
cintlex 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 05:38.


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