Raised This Month: $12 Target: $400
 3% 

CEffectData is incorrect


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 01-04-2016 , 06:57   CEffectData is incorrect
Reply With Quote #1

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->DispatchEffectfilter0.0fdmgposition"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.
kadet.89 is offline
Send a message via Skype™ to kadet.89
psychonic

BAFFLED
Join Date: May 2008
Old 01-04-2016 , 07:49   Re: CEffectData is incorrect
Reply With Quote #2

With very few exceptions, we only bother keeping the headers in public/ up-to-date.

You'll probably have better luck using the itempents.h and effect_dispatch_data.h from the sdk2013 branch for CS:S. Alternatively, do what SourceMod does and send the EffectDispatch tempent manually with PlaybackTempEntity on the public engine iface.
psychonic 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 22:10.


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