nowhere, dont care about those two files
Pushing players (shoving)
_Shady
(~Shady~)
#22
Uhm i’ve got an other code but if got a problem
When i put it away my mod compiles with no problem
When i enable it it has syntax errors and other problems
This is the code:
void Cmd_Activate2_f( gentity_t *ent ) {
trace_t tr;
vec3_t end;
gentity_t *traceEnt;
vec3_t forward, right, up, offset;
qboolean found = qfalse;
qboolean pass2 = qfalse;
//if( ent->client->sess.playerType != PC_COVERTOPS ) {
// return;
//}
AngleVectors (ent->client->ps.viewangles, forward, right, up);
CalcMuzzlePointForActivate (ent, forward, right, up, offset);
VectorMA (offset, 96, forward, end);
// look for a guy to push
trap_Trace(&tr,
offset,
NULL,
NULL,
end,
ent->s.number,
CONTENTS_BODY);
if(tr.entityNum >= 0) {
traceEnt = &g_entities[tr.entityNum];
if(traceEnt->client) {
G_PushPlayer(ent, traceEnt);
return;
}
}
It’s from Etpub with a few chances…
Im lost what the problem is tried much
IneQuation
(IneQuation)
#23
As far as I can see you’re missing a closing bracket at the end of the function.
_Shady
(~Shady~)
#24
yeah you’re right but i had it allready i was just going to reply i had found the problem
but thanks =D