Page 1 of 1

Tags in all Halo games

Posted: Thu Feb 19, 2009 8:26 pm
by Domnio
Hey, I'm kinda new at programming, and I was wondering if the tags in the Halo games are structures, for example:

Code: Select all

	struct bipd
	{
	};

	struct mach
	{
	};

	struct weap
	{
	};

Re: Tags in all Halo games

Posted: Thu Feb 19, 2009 10:49 pm
by kornman00
Yeah, they're just made up of many, many C\C++ structs and classes, but are not named like that ^.

Re: Tags in all Halo games

Posted: Thu Feb 19, 2009 11:04 pm
by Domnio
o ok, thnx for answering I appreciate it, I was reading my C++ book and it mentioned that structures were also called tags and I was like "hmmm I wonder..."

Re: Tags in all Halo games

Posted: Fri Feb 20, 2009 3:08 pm
by grimdoomer
Here are some examples from the Halo source code.

Code: Select all

typedef float real;


struct sound_environment 
{ 
     real room_intensity_db; 
     real room_intensity_hf_db; 
     real room_rolloff_factor; 
     real decay_time; 
     real decay_hf_ratio; 
     real reflections_intensity_db; 
     real reflections_delay; 
     real reverb_intensity_db; 
     real reverb_delay; 
     real diffusion; 
     real density; 
     real hf_reference; 
}; 

const unsigned long SOUND_ENVIRONMENT_TAG= 'snde'; 

TAG_GROUP( 
sound_environment, 
SOUND_ENVIRONMENT_TAG, 
sizeof(sound_environment)) 
{ 
     {_field_real, "room intensity"}, 
     {_field_real, "room intensity hf"}, 
     {_field_real, "room rolloff (0 to 10)"}, 
     {_field_real, "decay time (.1 to 20)" }, 
     {_field_real, "decay hf ratio (.1 to 2)"}, 
     {_field_real, "reflections intensity:dB[-100,10]"}, 
     {_field_real, "reflections delay (0 to .3):seconds" }, 
     {_field_real, "reverb intensity:dB[-100,20]"}, 
     {_field_real, "reverb delay (0 to .1):seconds"}, 
     {_field_real, "diffusion"}, 
     {_field_real, "density"}, 
     {_field_real, "hf reference(20 to 20,000)}, 
}; 

Re: Tags in all Halo games

Posted: Sat Feb 21, 2009 3:43 am
by ImpactPro
But not to be confused, those structs are not the actual "tags" in the map file.

Re: Tags in all Halo games

Posted: Sat Feb 21, 2009 4:07 pm
by Domnio
ah, okay. Thank you for your information. Is there anything else to it? I recognize most of that stuff, however I'm still learning programming. Right now I'm just getting into structures, that's why I was asking >.<