AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   CS:S DM (https://forums.alliedmods.net/forumdisplay.php?f=77)
-   -   dissolve ragdoll issue (https://forums.alliedmods.net/showthread.php?t=207999)

vatanuki.kun 02-08-2013 22:01

dissolve ragdoll issue
 
Hi,

please update code, always after updates i forgot about this and its take time to remember, so i ask u to fix code:)

here is the issue

config says:
Code:

// Number of seconds to wait before deleting a ragdoll.
// If 0, ragdoll will be deleted instantly.
// If >= 20, ragdoll will never be deleted.
// --
// Default: "2"
cssdm_ragdoll_time "20"

cvar
Code:

ConVar cssdm_ragdoll_time("cssdm_ragdoll_time", "2", 0, "Sets ragdoll stay time", true, 0.0, true, 20.0);
code to be fixed (cssdm_events.cpp:242):
Code:

if (ragdollTime <= 20 && !g_InRoundRestart)
to:
Code:

if (ragdollTime < 20 && !g_InRoundRestart)
because of this dissolve plugin will not ever work
Code:

  new ragdoll = GetEntPropEnt(client, Prop_Send, "m_hRagdoll");
  if (ragdoll<0)
  {
    PrintToServer("[DISSOLVE] Could not get ragdoll for player!");
    return;
  }

very thank you :)

PS: http://forums.alliedmods.net/showpos...&postcount=156


All times are GMT -4. The time now is 11:50.

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