Phil25 / RTD

Roll The Dice SourceMod plugin for Team Fortress 2
GNU General Public License v3.0
56 stars 20 forks source link

fix Property "m_iPlayerIndex" not found (entity 346/tf_ragdoll) #51

Closed eNNercY1337 closed 1 year ago

eNNercY1337 commented 1 year ago

fix against the latest tf2 vscript update.

[SM] Exception reported: Property "m_iPlayerIndex" not found (entity 243/tf_ragdoll) [SM] Blaming: rtd.smx [SM] Call stack trace: [SM] [0] SetEntProp [SM] [1] Line 458, rtd/stocks.sp::CreateRagdoll [SM] [2] Line 82, rtd/perks/mercsdietwice.sp::MercsDieTwice_FakeDeath [SM] [3] Line 68, rtd/perks/mercsdietwice.sp::MercsDieTwice_PlayerHurt [SM] [4] Line 150, rtd/manager.sp::Forward_PlayerHurt [SM] [5] Line 803, rtd.sp::Event_PlayerHurt

HotoCocoaco commented 1 year ago

It should be SetEntPropEnt instead of SetEntProp https://github.com/Phil25/RTD/pull/52

Phil25 commented 1 year ago

Thanks for the PR and sorry for the delay. However, like @HotoCocoaco said, it does seem like #52 is closer to the solution so I'm gonna close this one.