91
tastyspleen.net / Re: coop3
« on: April 09, 2009, 09:24:04 AM »Ooops. I copied from the wrong project.
Here it is the way Rogue wants to see it:
if (other->client->pers.weapon != ent->item &&
(other->client->pers.inventory[index] == 1) &&
( !deathmatch->value && autoweaponswitch->value || other->client->pers.weapon == FindItem("blaster")))
other->client->newweapon = ent->item;
Works perfectly. Compiles even without warnigns on my machine.