PHP Code:
CEffectData data;
data.m_vOrigin = dmgposition;
data.m_vNormal = dmgforce;
data.m_flScale = spritescale;
data.m_fFlags = 1;
data.m_nColor = (unsigned char)0;
tesystem->DispatchEffect( filter, 0.0f, dmgposition, "bloodimpact", data );
This code works fine under windows server (CSS)
But, under linux I got this errors:
Quote:
DataTable warning: (class prop_physics): Out-of-range value (-4149213097438229521967737090082865152.000000 / 0.000000) in SendPropFloat 'm_CustomColors.m_vecColor1', clamping.
|
I have no idea why, but CEffectData in the hl2sdk-css (under linux) doesn't have some fields:
PHP Code:
bool m_bCustomColors;
te_tf_particle_effects_colors_t m_CustomColors;
bool m_bControlPoint1;
te_tf_particle_effects_control_point_t m_ControlPoint1;
I've replaced these env_detail_controller.cpp/*h with correct ones, and now server crashes each time the code fires.