[quake2] Original quake2 game bug

Nick Warne nick at linicks.net
Tue Jan 10 14:56:32 EST 2006


On Tuesday 10 January 2006 19:49, Nick Warne wrote:
> I found a Xatrix bug yesterday in that the 'ionripper' was called
> 'ionrippergun' (non-existant) and thus failed on the noAmmoWeapon change.
>
> Testing today, I see that the rocket launcher is not in that list - looking
> at original ID code, it isn't there either.
>
> In p_weapon.c locate the function NoAmmoWeaponChange (edict_t *ent)
>
> You will see the rocket_launcher is missing.

Rocket Launcher, I meant.

> This needs adding to the list:
>
>         if ( ent->client->pers.inventory[ITEM_INDEX(FindItem("rockets"))]
>                 &&  ent->client->pers.inventory[ITEM_INDEX(FindItem("rocket
> launcher"))] )
>         {
>                 ent->client->newweapon = FindItem ("rocket launcher");
>                 return;
>         }


-- 
"Person who say it cannot be done should not interrupt person doing it."
-Chinese Proverb



More information about the quake2 mailing list