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

CEffectData is incorrect


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 06:40.


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