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(ent, EV_INT_effects)
switch(entfx)
{
case EF_NODRAW: // func_bomb_target have only this flag making it invisible
{
entity_set_int(ent, EV_INT_effects, EF_NONE)
entity_set_int(ent, EV_INT_rendermode, kRenderTransAdd)
entity_set_float(ent, EV_FL_renderamt, 64.0) // 64.0 is almost 25% opacity
}
case EF_NONE:
{
entity_set_int(ent, EV_INT_effects, EF_NODRAW)
entity_set_int(ent, EV_INT_rendermode, kRenderNormal)
entity_set_float(ent, EV_FL_renderamt, 0.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
__________________