AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Texture type always returns CNotexture .. (https://forums.alliedmods.net/showthread.php?t=274949)

avril-lavigne 11-18-2015 17:40

Texture type always returns CNotexture ..
 
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.


All times are GMT -4. The time now is 18:12.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.