Code:
parse(buffer, s_ent, 4, "", 0, "", 0, "", 0, "", 0, "", 0, "", 0, "", 0, "", 0, "", 0, "", 0);
// ->
parse(buffer, s_ent, 4);
Code:
while( (ent=engfunc(EngFunc_FindEntityByString, ent, "classname", "weaponbox"))>0 )
{
if( ent>0 )
//you already check if the ent is >0 in the while loop
Code:
classname = "";
// ->
copy(classname, 1, "");
//poor way to clear an array
Code:
set_task(0.01,
//this just rounds down to 0.0, but look at next comment
don't see a point in modify_death_speed(weaponbox_ent) because you already set the velocity in weaponbox_spawned(weaponbox_ent, owner) so it really isn't doing anything
Code:
buffer = "";
//same as other comment with clearing array
Approval with changes and confirmation that it works.