$keyvalues: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| m (spam revert) | |||
| Line 13: | Line 13: | ||
|   		explosive_damage  100 |   		explosive_damage  100 | ||
|   		explosive_radius  100 |   		explosive_radius  100 | ||
|  	} | |||
|  	[[Prop Data#physgun interactions|physgun_interactions]] | |||
|  	{ | |||
|  		onfirstimpact 	"break" 		 | |||
|  		onfirstimpact 	"paintsplat" 		 | |||
|  		onlaunch 	"spin_zaxis" 		 | |||
|  		onbreak 	"explode_fire" 		 | |||
|   	} |   	} | ||
|   } |   } | ||
| [[Category:QC Commands]] | [[Category:QC Commands]] | ||
Revision as of 19:06, 31 March 2008
The QC command $keyvalues embeds a block of arbitrary keyvalues into the .mdl file.
- The prop_data keyvalues block is used heavily for prop_physics, etc models.
- Since the values are arbitrary, studiomdl can't check that they are correct when it compiles the model.
QC syntax example
$keyvalues { prop_data { base Wooden.Small dmg.bullets 0 explosive_damage 100 explosive_radius 100 } physgun_interactions { onfirstimpact "break" onfirstimpact "paintsplat" onlaunch "spin_zaxis" onbreak "explode_fire" } }