along the same lines.. i made a mod that worked for 1.5 that gave every
player all weapons, now in 1.6 it get to 4/5 and crashes, the code im using
is:
for (int i=0;i<MAX_CWEAPONS;i++)
{
edict_t *r = CREATE_NAMED_ENTITY(MAKE_STRING(cWeapons[i]));
r->v.spawnflags |= SF_NORESPAWN;
r->v.origin = a->v.origin + Vector(1,1,1);
pEntity = (CBaseEntity *)GET_PRIVATE(r);
if (pEntity)
{
pEntity->pev->absmin = pEntity->pev->origin - Vector(1,1,1);
pEntity->pev->absmax = pEntity->pev->origin + Vector(1,1,1);
pEntity->Spawn();
}
}
anyone have any ideas why it crashes?
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders