- Jul 31, 2009
- 1,590
- 410
Question: If there was a way to rename an already-packed map so that soundscapes/particles/cubemaps still worked, would that be worthwhile? My guess is that it doesn't happen often enough, and rebuilding cubemaps etc. doesn't take that long.
___________
For my next trick, this text will go into one of my many non-Irish top-hats. (Fine, you caught me, just the Halo!) And now, with nothing in my pockets, no regular expressions up my sleeves...
And viola!
I may use a similar approach for VMF parsing if VTFLib seems to be too hard to integrate. (I don't really need to access things like mipmap levels or conversion between image formats anyway.)
___________
For my next trick, this text will go into one of my many non-Irish top-hats. (Fine, you caught me, just the Halo!) And now, with nothing in my pockets, no regular expressions up my sleeves...
Code:
{
"world_maxs" "3840 6488 912"
"world_mins" "-3840 -2112 112"
[B]"skyname" "sky_tf2_04"[/B]
"maxpropscreenwidth" "-1"
"detailvbsp" "detail_trainyard.vbsp"
[B]"detailmaterial" "detail/detailsprites_trainyard"[/B]
"classname" "worldspawn"
"mapversion" "671"
"hammerid" "1"
}
{
"origin" "-1664 -1472 504"
"style" "0"
"spawnflags" "0"
"pitch" "-90"
"angles" "-90 0 0"
"_zero_percent_distance" "0"
"_quadratic_attn" "1"
"_linear_attn" "0"
"_lightscaleHDR" "1"
"_lightHDR" "-1 -1 -1 1"
"_light" "201 209 237 300"
"_inner_cone" "45"
"_hardfalloff" "0"
"_fifty_percent_distance" "0"
"_exponent" "1"
"_distance" "0"
"_constant_attn" "0"
"_cone" "60"
"classname" "light_spot"
"hammerid" "40827"
}
And viola!
I may use a similar approach for VMF parsing if VTFLib seems to be too hard to integrate. (I don't really need to access things like mipmap levels or conversion between image formats anyway.)
Last edited: