make a more streamlined GUI
LuckyStrike-Rx {l Wrote}:make a more streamlined GUI
I didn't added this to the pool because all I can do for this are mokeup and 2d sprite, as I don't have skill to code them.
fawstoar {l Wrote}:Oh man too many choices...
Abraham Lincoln {l Wrote}:It's often dangerous to use quotes from the internet, as it's hard to tell whether or not they are genuine
SpiritOfOnyx {l Wrote}:One quick quiestion pertaining to the HUD guns, where's the model origin for those? Same spot as the camera?
vec o = vec(third ? d->feetpos() : d->headpos());
if(!third)
{
vec dir;
if(firstpersonsway && !intermission)
{
vecfromyawpitch(d->yaw, 0, 0, 1, dir);
float steps = swaydist/firstpersonswaystep*M_PI;
dir.mul(firstpersonswayside*cosf(steps));
dir.z = firstpersonswayup*(fabs(sinf(steps)) - 1);
o.add(dir).add(swaydir).add(swaypush);
}
if(firstpersondist != 0.f)
{
vecfromyawpitch(yaw, pitch, 1, 0, dir);
dir.mul(focus->radius*firstpersondist);
o.add(dir);
}
if(firstpersonshift != 0.f)
{
vecfromyawpitch(yaw, pitch, 0, -1, dir);
dir.mul(focus->radius*firstpersonshift);
o.add(dir);
}
if(firstpersonadjust != 0.f)
{
vecfromyawpitch(yaw, pitch+90.f, 1, 0, dir);
dir.mul(focus->height*firstpersonadjust);
o.add(dir);
}
}
FVAR(IDF_PERSIST, firstpersondist, -1, -0.25f, 1);
FVAR(IDF_PERSIST, firstpersonshift, -1, 0.3f, 1);
FVAR(IDF_PERSIST, firstpersonadjust, -1, -0.07f, 1);
qreeves {l Wrote}:[. . .] Unfortunately, something on the scale of built-in voice chat just isn't feasible for such a small project.
qreeves {l Wrote}:position, give or take any offsets done by the firstperson vars, which are:
FVAR(IDF_PERSIST, firstpersondist, -1, -0.25f, 1);
Users browsing this forum: No registered users and 0 guests