- scriptified the WeaponGiver.

This commit is contained in:
Christoph Oelckers 2017-01-19 14:00:00 +01:00
commit 6d3b26f94c
6 changed files with 100 additions and 128 deletions

View file

@ -3248,9 +3248,9 @@ void ModifyDropAmount(AInventory *inv, int dropamount)
inv->Amount = amount;
inv->ItemFlags |= flagmask;
}
else if (inv->IsKindOf (RUNTIME_CLASS(AWeaponGiver)))
else if (inv->IsKindOf (PClass::FindActor(NAME_WeaponGiver)))
{
static_cast<AWeaponGiver *>(inv)->DropAmmoFactor = dropammofactor;
inv->FloatVar("AmmoFactor") = dropammofactor;
inv->ItemFlags |= flagmask;
}
else if (inv->IsKindOf (RUNTIME_CLASS(AWeapon)))