View Single Post
Author Message
avril-lavigne
Banned
Join Date: Apr 2009
Old 11-18-2015 , 17:40   Texture type always returns CNotexture ..
Reply With Quote #1

I tried different methods. Viewcontents is shows sky / solid but I need to get wood / wall at least.
Doing like in wiki or "OT" plugin >>

Code:
                new Float:virtualend[3], texture_name[64], texture_type
		
		xs_vec_sub(end, start, virtualend)
		xs_vec_mul_scalar(virtualend, 16000.0, virtualend)
		xs_vec_add(virtualend, start, virtualend)
		
		engfunc(EngFunc_TraceTexture, 0, start, virtualend, texture_name, charsmax(texture_name))
		texture_type = dllfunc(DLLFunc_PM_FindTextureType, texture_name)
always shows "NoTexture cNotexture"

what am I doing wrong? I put start / end coords in the check function.
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline