Welcome to the TWC Wiki! You are not logged in. Please log in to the Wiki to vote in polls, change skin preferences, or edit pages. See HERE for details of how to LOG IN.

Difference between revisions of "Descr effects torch fire.txt"

From TWC Wiki
Jump to navigationJump to search
(rough structure)
(hehe - finally worked out way of linking to descriptions of file parts)
Line 11: Line 11:
 
  ; texture models_effects/textures/checker_board.tga
 
  ; texture models_effects/textures/checker_board.tga
 
  sprite_origin 0.0, 0.0
 
  sprite_origin 0.0, 0.0
  [[sprite_size]] 1.0, 1.0
+
  [[Descr_effects_torch_fire.txt#sprite_size|sprite_size]] 1.0, 1.0
 
   
 
   
   [[size_range]]      0.1, 0.1
+
   [[Descr_effects_torch_fire.txt#size_range|size_range]]      0.1, 0.1
  [[age_range]]        0.3, 0.3
+
  [[Descr_effects_torch_fire.txt#age_range|age_range]]        0.3, 0.3
      [[grow_range]] 1.0, 1.0
+
      [[Descr_effects_torch_fire.txt#grow_range|grow_range]] 1.0, 1.0
  [[vel_range]]  0.6, .6
+
  [[Descr_effects_torch_fire.txt#vel_range|vel_range]]  0.6, .6
 
 
 
 
  [[keyframe_colour]]
+
  [[Descr_effects_torch_fire.txt#keyframe_colour|keyframe_colour]]
 
  {
 
  {
 
  ; 0.0 255, 255, 255, 255
 
  ; 0.0 255, 255, 255, 255
Line 27: Line 27:
 
  }
 
  }
 
 
 
 
  [[alpha_max]]   255 ; maximum alpha value
+
  [[Descr_effects_torch_fire.txt#alpha_max|alpha_max]]   255 ; maximum alpha value
  [[initial_size]] 0.2, 0.5
+
  [[Descr_effects_torch_fire.txt#initial_size|initial_size]] 0.2, 0.5
  [[blend_type]] additive
+
  [[Descr_effects_torch_fire.txt#blend_type|blend_type]] additive
  [[offset]] 0.0, 0.0, 0.2
+
  [[Descr_effects_torch_fire.txt#offset|offset]] 0.0, 0.0, 0.2
  [[max_particles]]      3000
+
  [[Descr_effects_torch_fire.txt#max_particles|max_particles]]      3000
 
   
 
   
  [[emitter distance_time]]
+
  [[Descr_effects_torch_fire.txt#emitter distance_timeemitter distance_time]]
 
  {
 
  {
 
  density         200   ; how many particels per second
 
  density         200   ; how many particels per second
Line 43: Line 43:
 
  }
 
  }
 
   
 
   
  [[random_emit_radius]] 0, 0.1
+
  [[Descr_effects_torch_fire.txt#random_emit_radius|random_emit_radius]] 0, 0.1
  [[system_radius]] 2.0     ; radius used for culling
+
  [[Descr_effects_torch_fire.txt#system_radius|system_radius]] 2.0     ; radius used for culling
 
  batched
 
  batched
 
  }
 
  }

Revision as of 08:54, 5 August 2007

Descr_effects_torch_fire.txt is used in BI to determine the effects used for torches in night battles. M2TW has a similarly structured file called descr_torch_fire.txt.

soldier_torch_fire

This section is an examination of what changes to one particular section do, other sections are similar in many respects so the information should be useful for other parts. Vanilla section:

effect soldier_torch_fire
{
	 type particle
	{
		texture				battlefield/fire/#flame_wheel.tga		
;		texture				models_effects/textures/checker_board.tga
		sprite_origin		0.0, 0.0
		sprite_size			1.0, 1.0

 		size_range       	0.1, 0.1
		age_range        	0.3, 0.3
	    grow_range		 	1.0, 1.0
		vel_range  			0.6, .6
		
		keyframe_colour
		{
;				0.0		255, 255, 255, 255
				0.0, 	0,   236, 242,     0
				0.1, 	255, 236,  242,   0
				0.5, 	255, 236,   149,   22
	 			1.0, 	0,   255,   149,   22
		}
		
		alpha_max	   		255			 ; maximum alpha value
		initial_size		0.2, 0.5
		blend_type			additive
		offset				0.0, 0.0, 0.2
		max_particles       3000

		Descr_effects_torch_fire.txt#emitter distance_timeemitter distance_time
		{
			density			        200 	   	; how many particels per second
			emitter_falloff_dist	100			; distance in meters to reduce emission over
			emitter_falloff_bias	0.5			
			distance_scale  		1
			max_distance			0.2	
			age_scale				0.45		
		}

		random_emit_radius		0, 0.1
		system_radius			2.0			    ; radius used for culling
		batched
	}
}

Messing with sprite origin doesn't do anything useful, leave as 0,0

sprite_size

size_range

age_range

grow_range

1.0, 1.0

vel_range

 			0.6, .6

keyframe_colour

alpha_max

255 ; maximum alpha value

initial_size

0.2, 0.5

blend_type

additive

offset

0.0, 0.0, 0.2

max_particles

      3000

emitter distance_time

random_emit_radius

            0, 0.1

system_radius

                 2.0                         ; radius used for culling
               batched