View Single Post
Indarello
Senior Member
Join Date: Nov 2015
Location: Russia
Old 02-08-2019 , 05:38   Re: [Tutorial] Creating brush entities
Reply With Quote #65

Code:
	new entindex = CreateEntityByName("prop_dynamic_override");
	DispatchKeyValue(entindex, "solid", "6");
	SetEntityModel(entindex, "models/props/cs_office/vending_machine.mdl");
	DispatchSpawn(entindex);
	ActivateEntity(entindex);

	//TeleportEntity(entindex, NULL_VECTOR, NULL_VECTOR, NULL_VECTOR);


	new Float:minbounds[3] = {-3023.0, -2552.0, 310.0};
	new Float:maxbounds[3] = {3767.0, 4429.0, 600.0};
	SetEntPropVector(entindex, Prop_Send, "m_vecMins", minbounds);
	SetEntPropVector(entindex, Prop_Send, "m_vecMaxs", maxbounds);
		
	SetEntProp(entindex, Prop_Send, "m_nSolidType", 2);

	new enteffects = GetEntProp(entindex, Prop_Send, "m_fEffects");
	enteffects |= 32;
	SetEntProp(entindex, Prop_Send, "m_fEffects", enteffects);
that what I use in CS:GO for creating walls

Last edited by Indarello; 02-08-2019 at 05:38.
Indarello is offline