Raised This Month: $ Target: $400
 0% 

game crash (very informative)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kww
Senior Member
Join Date: Feb 2021
Location: Russia
Old 03-25-2022 , 22:50   game crash (very informative)
Reply With Quote #1

UPD: It crashes when I die because of explosion, if I see it but not die, game is not crashing
----
The game crashes on bomb explosion (e.g. site A, de_dust2).
Not on all maps. Wanna ask if someone knows possible fix
Didn't crashed on de_inferno's B site

Error:


This causes the error:
PHP Code:
#define EF_NONE 0

public ClCmd_toggle_triggerbox(id)
{
    new 
ent read_argv_int(1
    new 
entfx entity_get_int(entEV_INT_effects)
    
    switch(
entfx)
    {
        case 
EF_NODRAW// func_bomb_target have only this flag making it invisible
        
{
            
entity_set_int(entEV_INT_effectsEF_NONE)
            
entity_set_int(entEV_INT_rendermodekRenderTransAdd)
            
entity_set_float(entEV_FL_renderamt64.0// 64.0 is almost 25% opacity
        
}
        case 
EF_NONE:
        {
            
entity_set_int(entEV_INT_effectsEF_NODRAW)
            
entity_set_int(entEV_INT_rendermodekRenderNormal)
            
entity_set_float(entEV_FL_renderamt0.0)
        }
    }
    
    
console_print(id"toggled %i's visibility. WARNING! It can crash the game on the bomb explosion!"ent)
    
    return 
PLUGIN_HANDLED

some entities, if someone wanna test
__________________
Now working on: Side Weapons (Very lazy, tbh)
Avatar source: https://bit.ly/3BAk19g
Discord: kww#9951

Last edited by kww; 03-26-2022 at 06:46. Reason: fysiks-sama asked to remove spoilers
kww is offline
 



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 00:19.


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