View Single Post
Old 09-11-2011, 01:59 AM   #220
-=*Raz0r*=-
Rookie
 
-=*Raz0r*=-'s Avatar
 
Join Date: Oct 2006
Location: Australia
Posts: 243
Credit goes to Didz for finding/fixing this.

In MP, misc_model_static entities' model bounds loading code is incorrect leading to disappearing cliffs and stuff on maps such as t1_surprise and hoth2.

In cg_main.c, search for void CG_CreateModelFromSpawnEnt(cgSpawnEnt_t *ent)

About 44 lines after that inside the function, find:
Code:
	VectorScaleVector(mins, ent->scale, mins);
	VectorScaleVector(maxs, ent->scale, maxs);
Replace these lines with:
Code:
	//[Invalid Model Bounds Fix]
	//VectorScaleVector(mins, ent->scale, mins);
	//VectorScaleVector(maxs, ent->scale, maxs);
	VectorScaleVector(mins, RefEnt->modelScale, mins);
	VectorScaleVector(maxs, RefEnt->modelScale, maxs);
	//[/Invalid Model Bounds Fix]

-=*Raz0r*=- is offline   you may: quote & reply,