+
+ if( box->trigger )
+ zone->ptarget_delegated = mdl_node_from_id( mworld, box->trigger );
+ else
+ zone->ptarget_delegated = NULL;
+ }
+ else if( pnode->classtype == k_classtype_audio )
+ {
+ world.audio_things =
+ buffer_reserve( world.audio_things,
+ world.audio_things_count,
+ &world.audio_things_cap, 1,
+ sizeof(struct world_audio_thing) );
+
+ struct world_audio_thing *thing = &world.audio_things[
+ world.audio_things_count ];
+ memset( thing, 0, sizeof(struct world_audio_thing) );
+ struct classtype_audio *aud = mdl_get_entdata(mworld,pnode);
+
+ v3_copy( pnode->co, thing->pos );
+
+ if( aud->flags & AUDIO_FLAG_SPACIAL_3D )
+ thing->volume = aud->volume * pnode->s[0];
+ else
+ thing->volume = aud->volume;
+
+ thing->flags = aud->flags;
+ const char *fp = mdl_pstr( mworld, aud->pstr_file );
+ char *path2 = vg_alloc( strlen(fp)+1 );
+ strcpy( path2, fp );
+ thing->temp_embedded_clip.path = path2;
+ thing->temp_embedded_clip.source_mode = k_audio_source_compressed;
+ audio_clip_load( &thing->temp_embedded_clip );
+ thing->player.name = "[temp]";
+ thing->player.enqued = 0;
+
+ pnode->sub_uid = world.audio_things_count;
+ world.audio_things_count ++;