once again, its that c++ plugin, and I have this line:
PHP Code:
UTIL_MakeVectors(pEntity->v.v_angle);
I know what its saying, but I dont know if I really need it, and beyond that, I dont know HOW to use it. (I refuse to use orpheu on the grounds that I havent fully gone into it and investigated it, if I was to use orpheu, then I would learn nothing from doing this project)
CODEBLOCK:
PHP Code:
// check for pushing sentry
if(entity_get_int(pEntity, EV_INT_playerclass) == PC_ENGINEER && PlayerHasTech(TECH_SENTRY_PUSH, pEntity))
{
//if(pEntity->v.button & IN_USE)
if(Buttons & IN_USE)
{
UTIL_MakeVectors(pEntity->v.v_angle);
TraceResult tr, tr2;
UTIL_TraceLine(pEntity->v.origin + pEntity->v.view_ofs, pEntity->v.origin + pEntity->v.view_ofs + (gpGlobals->v_forward*48), dont_ignore_monsters, pEntity, &tr);
if(tr.flFraction != 1.0 && tr.pHit && tr.pHit->v.classname)
{
if((pSentryPair[ENTINDEX(tr.pHit)] != NULL) && !pSentryPair[ENTINDEX(tr.pHit)]->free)
{
edict_t *pBase = pSentryPair[ENTINDEX(tr.pHit)];
tr.pHit->v.origin = pBase->v.origin + Vector(0, 0, SENTRY_BASE_OFFSET_Z);
pBase->v.velocity = Vector((tr.pHit->v.origin - pEntity->v.origin).x, (tr.pHit->v.origin - pEntity->v.origin).y, 0).Normalize() * 400;
tr.pHit->v.velocity = pBase->v.velocity;
pBase->v.movetype = MOVETYPE_PUSHSTEP;
pBase->v.nextthink = gpGlobals->time + 0.1;
pBase->v.solid = SOLID_SLIDEBOX;
}
}
}
}
my defines and whatnot are existant, I have everything (like, 3 displayed lines) fixed up to that point.
Thanks for atleast reading this, lol.
__________________