As no one seems to know the answers, I've decided to ask them here:
"TEX_COLOR" - I used view entities for weapons, and I used to change they color depending on the textures color under players feet.
I was simply tracing under player's feet with SCAN_TEXTURE and then setting entitie's "blue" to "tex_color", but now it doesn't work.
I tried "tex_light" as some one recommended me, but that doesn't work as well, plus "tex_color" works under C-SCRIPT but not with LITE-C.
"PH_CONVEX" - this doesn't work for me... It's different to "PH_POLY" (which has proper hull), convex works like this for me:
I would like to know, what am I probably doing wrong? Model is simply, and it's count isn't more than 256 p.
"PH_HINGE" - I've started learning constants, and it's seems pretty simple, but I found out that I can't understand something...
action obj_motor()
{
VECTOR temp;
set(my,POLYGON|SHADOW);
pXent_settype(my,1,PH_CONVEX);
pXent_setmass(my,0.05);
pXent_setfriction(my,0);
pXent_setiterations(my,15);
pXent_setdamping(my,100,100);
pXent_setskinwidth(my,0);
pXent_setelasticity(my,25);
pXcon_add(PH_HINGE,my,NULL,0);
pXcon_setparams1(my,NULL,vector(0,1,0),nullvector);
pXcon_setparams2(my,vector(-360,360,0),NULL,NULL);
while(1)
{
temp.x = temp.z = 0;
temp.y = 100 * time_step;
pXent_setangvelocity(my,temp);
wait(1);
}
}
I've set no limit's for joint, and I rotate it in it's TILT, plus I apply velocity, so it should turn clock wise, and it works.
But it turns only about 2 times, and then stops.. Didn't I set full limit at hinge? Or what am I doing wrong? Thanks.